Share via


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

  • contentType
    Type: System.String

    The type of the secret value such as password.

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