Skip to content

Export-HarborVault

Harbor OnboardNo sign-in neededGenerated from the codeDescribes Onboard 0.59.0

Exports a governance/evidence snapshot of the vault + Harbor’s local registers to a single JSON file.

Terminal window
Export-HarborVault [-OutputPath] <string> [[-ConfigPath] <string>] [[-ConfigProfile] <string>] [-IncludeMembers]

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.

Terminal window
Export-HarborVault -OutputPath .\vault-evidence.json
Terminal window
Export-HarborVault -OutputPath .\full.json -IncludeMembers

Not described in the module help.

Type Required Position Pipeline input
String No 1 No

Not described in the module help.

Type Required Position Pipeline input
String No 2 No

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

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).

Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.