Add-EntityDefaultKeyProvider
This cmdlet adds a key provider to entities as default key provider.
Syntax
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required
|
Entity | VIObject[] | 1 |
|
Specifies the entities to which you want to add a default key provider. Only the Cluster type and the HostAndCluster type support this operation. |
required
|
KeyProvider | KeyProvider | named |
|
Specifies the key provider you want to add to the entities. |
optional | ProgressAction | ActionPreference | named |
|
|
optional | Server | VIServer[] | named |
|
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet. |
Output
VMware.VimAutomation.ViCore.Types.V1.Security.KeyProviderExamples
Example 1
$cluster = Get-Cluster -name "MyCluster" Add-EntityDefaultKeyProvider -KeyProvider (Get-KeyProvider)[0] -Entity $cluster
Adds the first key provider to entity "MyCluster" as default key provider.
Related Commands
Entity
This cmdlet remediates an inventory object against the specified baselines.
EntityBaseline
This cmdlet attaches baselines to the specified inventory object.
This cmdlet detaches baselines from the specified inventory objects.
EntityDefaultKeyProvider
This cmdlet adds a key provider to entities as default key provider.
This cmdlet removes the default key provider from the specified entities.