KeyVaultClient.UpdateSecretAsync Method (String, 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 vault,
string secretName,
string contentType = null,
SecretAttributes secretAttributes = null,
Dictionary<string, string> tags = null,
CancellationToken cancellationToken = null
)
public:
Task<Secret^>^ UpdateSecretAsync(
String^ vault,
String^ secretName,
String^ contentType = null,
SecretAttributes^ secretAttributes = null,
Dictionary<String^, String^>^ tags = null,
CancellationToken cancellationToken = null
)
member UpdateSecretAsync :
vault:string *
secretName:string *
contentType:string = null *
secretAttributes:SecretAttributes = null *
tags:Dictionary<string, string> = null *
cancellationToken:CancellationToken = null -> Task<Secret>
Public Function UpdateSecretAsync (
vault As String,
secretName As String,
contentType As String,
secretAttributes As SecretAttributes,
tags As Dictionary(Of String, String),
cancellationToken As CancellationToken
) As Task(Of Secret)
Parameters
vault
Type: System.StringThe vault name, e.g. https://myvault.vault.azure.net.
secretName
Type: System.StringThe name 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