KeyVaultClient.UpdateKeyWithHttpMessagesAsync Método

Definição

A operação de atualização de chave altera os atributos especificados de uma chave armazenada e pode ser aplicada a qualquer tipo de chave e versão de chave armazenada no Azure Key Vault.

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.KeyVault.Models.KeyBundle>> UpdateKeyWithHttpMessagesAsync (string vaultBaseUrl, string keyName, string keyVersion, System.Collections.Generic.IList<string> keyOps = default, Microsoft.Azure.KeyVault.Models.KeyAttributes keyAttributes = default, System.Collections.Generic.IDictionary<string,string> tags = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateKeyWithHttpMessagesAsync : string * string * string * System.Collections.Generic.IList<string> * Microsoft.Azure.KeyVault.Models.KeyAttributes * System.Collections.Generic.IDictionary<string, string> * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.KeyVault.Models.KeyBundle>>
override this.UpdateKeyWithHttpMessagesAsync : string * string * string * System.Collections.Generic.IList<string> * Microsoft.Azure.KeyVault.Models.KeyAttributes * System.Collections.Generic.IDictionary<string, string> * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.KeyVault.Models.KeyBundle>>
Public Function UpdateKeyWithHttpMessagesAsync (vaultBaseUrl As String, keyName As String, keyVersion As String, Optional keyOps As IList(Of String) = Nothing, Optional keyAttributes As KeyAttributes = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of KeyBundle))

Parâmetros

vaultBaseUrl
String

O nome do cofre, por exemplo https://myvault.vault.azure.net, .

keyName
String

O nome da chave a ser atualizada.

keyVersion
String

A versão da chave a ser atualizada.

keyOps
IList<String>

Operações de chave da Web Json. Para obter mais informações sobre possíveis operações de chave, consulte JsonWebKeyOperation.

keyAttributes
KeyAttributes
tags
IDictionary<String,String>

Metadados específicos do aplicativo na forma de pares chave-valor.

customHeaders
Dictionary<String,List<String>>

Cabeçalhos que serão adicionados à solicitação.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Implementações

Exceções

Gerado quando a operação retornou um código de status inválido

Gerado quando não é possível desserializar a resposta

Gerado quando um parâmetro necessário é nulo

Gerado quando um parâmetro necessário é nulo

Comentários

Para executar esta operação, a chave já deve existir no Cofre de Chaves. Observação: o material criptográfico de uma chave em si não pode ser alterado. Essa operação requer a permissão de atualização/chaves.

Aplica-se a