Skip to main content
SnapCenter 6.0 cmdlets

Set-SmCredential

Contributors

Modify a credential registered with the SnapCenter Server.

Syntax

Set-SmCredential [-Name]  <String>  [-Type]  <SmAuthMode>  [-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)

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 -ClientSecret 99634c34-6d2a-9jfb-a47b-0jhg9710037d -TenantId 25434c84-982a-9jfb-a47b-0h6f97076037d -ClientId 87dg98hg-6e2a-498b-m33b-0p2a97134756

Example 2: Modify AIX Credential

 Set-SmCredential -Name 'RunAs1' -CredentialType 'AIX'

Example 3: Modify Authentication Type for Linux Credential

 Set-SmCredential -Name LinuxPasswordBasedRunAs -Type Linux -AuthenticationType SshKeyBased -Username scanf -SSHPrivateKeyPath "C:\Users\Administrator\passwordfile.txt"