Partilhar via


KeyVaultResource.UpdateAccessPolicyAsync Método

Definição

Atualize as políticas de acesso em um cofre de chaves na assinatura especificada.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/accessPolicies/{operationKind}
  • Operação IdVaults_UpdateAccessPolicy
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.KeyVault.Models.KeyVaultAccessPolicyParameters>> UpdateAccessPolicyAsync (Azure.ResourceManager.KeyVault.Models.AccessPolicyUpdateKind operationKind, Azure.ResourceManager.KeyVault.Models.KeyVaultAccessPolicyParameters keyVaultAccessPolicyParameters, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAccessPolicyAsync : Azure.ResourceManager.KeyVault.Models.AccessPolicyUpdateKind * Azure.ResourceManager.KeyVault.Models.KeyVaultAccessPolicyParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.KeyVault.Models.KeyVaultAccessPolicyParameters>>
override this.UpdateAccessPolicyAsync : Azure.ResourceManager.KeyVault.Models.AccessPolicyUpdateKind * Azure.ResourceManager.KeyVault.Models.KeyVaultAccessPolicyParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.KeyVault.Models.KeyVaultAccessPolicyParameters>>
Public Overridable Function UpdateAccessPolicyAsync (operationKind As AccessPolicyUpdateKind, keyVaultAccessPolicyParameters As KeyVaultAccessPolicyParameters, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of KeyVaultAccessPolicyParameters))

Parâmetros

operationKind
AccessPolicyUpdateKind

Nome da operação.

keyVaultAccessPolicyParameters
KeyVaultAccessPolicyParameters

Política de acesso para mesclar no cofre.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

keyVaultAccessPolicyParameters é nulo.

Aplica-se a