Skip to content

Get-HarborConfigDocument

Harbor OnboardNo sign-in neededGenerated from the codeDescribes Onboard 0.59.0

Returns the raw JSON text of one of the editable standard files (naming standard / safe permissions standard / safe defaults) so the Settings UI (or a script) can show and edit it.

Terminal window
Get-HarborConfigDocument [-File] <string> [-ConfigPath <string>]

-File picks the document: naming (naming-standard.json), rbac (rbac-map.json), safe-defaults (safe-defaults.json) or policy (policy-rules.json), read from the module’s Config folder or -ConfigPath. The text is returned exactly as stored, so it round-trips through Save-HarborConfigDocument; nothing is validated or changed here.

Terminal window
(Get-HarborConfigDocument naming).Content | ConvertFrom-Json

The active naming standard as an object.

Terminal window
Get-HarborConfigDocument -File policy -ConfigPath C:\HarborConfig | Select-Object Path

Not described in the module help.

Type Required Position Pipeline input
String No Named No

Not described in the module help.

Type Required Position Pipeline input
String Yes 0 No

Accepted values: naming, rbac, safe-defaults, policy.

This command also accepts the PowerShell common parameters (-Verbose, -ErrorAction, and so on).

  • PSCustomObject: File, Path, Content (raw JSON string)

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