Export-HarborVault
Exports a governance/evidence snapshot of the vault + Harbor’s local registers to a single JSON file.
Syntax
Section titled “Syntax”Export-HarborVault [-OutputPath] <string> [[-ConfigPath] <string>] [[-ConfigProfile] <string>] [-IncludeMembers]Description
Section titled “Description”Produces an auditor-friendly point-in-time export:
- every safe in the vault (GET /API/Safes, fully paginated),
- the local safe register and account register (what Harbor provisioned),
- optionally each safe’s members (-IncludeMembers; one member scan per safe, so it can be slow on a large vault – off by default).
The vault portions need a live session; the local registers export offline. Returns a summary object; the full snapshot is written to disk.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Export-HarborVault -OutputPath .\vault-evidence.jsonExample 2
Section titled “Example 2”Export-HarborVault -OutputPath .\full.json -IncludeMembersParameters
Section titled “Parameters”-ConfigPath
Section titled “-ConfigPath”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 1 | No |
-ConfigProfile
Section titled “-ConfigProfile”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 2 | No |
-IncludeMembers
Section titled “-IncludeMembers”Also pull every safe’s member list. One API scan per safe – slow on a large estate. Off by default.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
SwitchParameter |
No | Named | No |
-OutputPath
Section titled “-OutputPath”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
Yes | 0 | No |
This command also accepts the PowerShell common parameters (-Verbose, -ErrorAction, and so on).
See also
Section titled “See also”- All Harbor Onboard cmdlets
- In PowerShell:
Get-Help Export-HarborVault -Full
Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.
