Get-PAMConfigHistory
The standards change history: who saved which config document when, with the field-level diff of every save – newest first.
Syntax
Section titled “Syntax”Get-PAMConfigHistory [[-Document] <string>] [[-Tail] <int>] [[-ConfigPath] <string>]Description
Section titled “Description”Reads <ConfigPath>\history\config-history.jsonl, written by Save-HarborConfigDocument on every successful save. Each record carries timestamp, document, actor (null = console/service write), runId, changeCount and the capped change rows (Path / Kind / Old / New). The prior full versions sit beside it as dated .json copies (newest 20 per document) for manual rollback.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Get-PAMConfigHistory -Document naming -Tail 10Parameters
Section titled “Parameters”-ConfigPath
Section titled “-ConfigPath”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 2 | No |
-Document
Section titled “-Document”Filter to one document key: naming, rbac, safe-defaults, policy or sso (the appAuth / identity-provider block, S1 H5).
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 0 | No |
Accepted values: naming, rbac, safe-defaults, policy, sso.
Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
Int32 |
No | 1 | No |
Default: 50.
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 Get-PAMConfigHistory -Full
Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.
