Set-HarborCpmList
Sets the list of managing CPMs (name + location) that are selectable when creating a safe – stored per-profile in environment.local.json.
Syntax
Section titled “Syntax”Set-HarborCpmList [[-Cpm] <Object[]>] [[-ProfileName] <string>] [[-ConfigPath] <string>] [-WhatIf] [-Confirm]Description
Section titled “Description”Personal safes derive their name’s location segment (e.g. AZR / AWS) from the CPM chosen at create time, so each CPM carries a location; shared / service safes use the CPM name only. Pass an array of CPM entries, each a hashtable or object with name and location. An empty list clears the configured CPMs.
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Set-HarborCpmList -Cpm @(@{ name = 'PasswordManager'; location = 'AZR' }, @{ name = 'CPM-AWS'; location = 'AWS' })Parameters
Section titled “Parameters”-ConfigPath
Section titled “-ConfigPath”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 2 | No |
-Confirm
Section titled “-Confirm”Asks for confirmation before the command changes anything.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
SwitchParameter |
No | Named | No |
Aliases: cf.
Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
Object[] |
No | 0 | No |
Default: @().
-ProfileName
Section titled “-ProfileName”Not described in the module help.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
String |
No | 1 | No |
-WhatIf
Section titled “-WhatIf”Shows what the command would do, without doing it.
| Type | Required | Position | Pipeline input |
|---|---|---|---|
SwitchParameter |
No | Named | No |
Aliases: wi.
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 Set-HarborCpmList -Full
Covers Harbor Onboard 0.59.0 / Harbor Health 0.22.0. On an older release? Upgrading and the release notes list what changed.
