KeyVaultClient.UpdateSecretAsync Method (String, String, SecretAttributes, Dictionary<String, String>, CancellationToken)
Asynchronously updates the attributes associated with the specified secret.
Namespace: Microsoft.Azure.KeyVault
Assembly: Microsoft.Azure.KeyVault (in Microsoft.Azure.KeyVault.dll)
Syntax
public Task<Secret> UpdateSecretAsync(
string secretIdentifier,
string contentType = null,
SecretAttributes secretAttributes = null,
Dictionary<string, string> tags = null,
CancellationToken cancellationToken = null
)
public:
Task<Secret^>^ UpdateSecretAsync(
String^ secretIdentifier,
String^ contentType = null,
SecretAttributes^ secretAttributes = null,
Dictionary<String^, String^>^ tags = null,
CancellationToken cancellationToken = null
)
member UpdateSecretAsync :
secretIdentifier:string *
contentType:string = null *
secretAttributes:SecretAttributes = null *
tags:Dictionary<string, string> = null *
cancellationToken:CancellationToken = null -> Task<Secret>
Public Function UpdateSecretAsync (
secretIdentifier As String,
contentType As String,
secretAttributes As SecretAttributes,
tags As Dictionary(Of String, String),
cancellationToken As CancellationToken
) As Task(Of Secret)
Parameters
secretIdentifier
Type: System.StringThe URL of the secret.
contentType
Type: System.StringThe type of the secret value such as password.
secretAttributes
Type: Microsoft.Azure.KeyVault.SecretAttributesThe application-specific metadata in the form of key-value pairs.
tags
Type: System.Collections.Generic.Dictionary<String, String>The attributes for the secret. For more information on possible attributes, see SecretAttributes.
cancellationToken
Type: System.Threading.CancellationTokenOptional cancellation token.
Return Value
Type: System.Threading.Tasks.Task<Secret>
A response message containing the updated secret.
See Also
UpdateSecretAsync Overload
KeyVaultClient Class
Microsoft.Azure.KeyVault Namespace
Return to top