Get-HarborConfigDocument
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.
Syntax
Section titled “Syntax”Get-HarborConfigDocument [-File] <string> [-ConfigPath <string>]Description
Section titled “Description”-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.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”(Get-HarborConfigDocument naming).Content | ConvertFrom-JsonThe active naming standard as an object.
Example 2
Section titled “Example 2”Get-HarborConfigDocument -File policy -ConfigPath C:\HarborConfig | Select-Object PathParameters
Section titled “Parameters”-ConfigPath
Section titled “-ConfigPath”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).
Outputs
Section titled “Outputs”- PSCustomObject: File, Path, Content (raw JSON string)
See also
Section titled “See also”- All Harbor Onboard cmdlets
- In PowerShell:
Get-Help Get-HarborConfigDocument -Full
Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.
