Set-SmCredential
Contributors
Suggest changes
Modify a credential registered with the SnapCenter Server.
Syntax
Set-SmCredential [-Name] <String> [-Type] <SmAuthMode> [-SubscriptionId] <String> [-ClientSecret] <SecureString> [-TenantId] <String> [-ClientId] <String> [-InstanceName] <String> [-Force] <> [-Credential] <PSCredential>
Detailed Description
Modify a credential registered with the SnapCenter Server. It could be for other plug-ins or for other NetApp cloud storage.
Parameters
Name | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|
Name |
Specifies the name of the Credential Account. |
true |
true (ByPropertyName) |
|
Type |
Specifies the authentication mode. |
true |
true (ByPropertyName) |
|
SubscriptionId |
Specifies the Azure NetApp subscription ID. |
false |
true (ByPropertyName) |
|
ClientSecret |
Specifies the Azure NetApp client secret. |
false |
true (ByPropertyName) |
|
TenantId |
Specifies the Azure NetApp tenant ID. |
false |
true (ByPropertyName) |
|
ClientId |
Specifies the Azure NetApp client ID. |
false |
true (ByPropertyName) |
|
InstanceName |
false |
true (ByPropertyName) |
||
Force |
false |
true (ByPropertyName) |
||
Credential |
true |
true (ByPropertyName) |
Examples
Example 1: Set Azure Credential
Set-SmCredential -Name azure -Type AzureCredential -SubscriptionId 546698hg-6e2a-43fb-a43b-0f2a97108756 -ClientSecret 99634c34-6d2a-9jfb-a47b-0jhg9710037d -TenantId 25434c84-982a-9jfb-a47b-0h6f97076037d -ClientId 87dg98hg-6e2a-498b-m33b-0p2a97134756
Example 1: Modify AIX Credential
Set-SmCredential -Name 'RunAs1' -CredentialType 'AIX'