Compartir a través de


KeyVaultResource.UpdateAccessPolicyAsync Método

Definición

Actualice las directivas de acceso en un almacén de claves de la suscripción especificada.

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/accessPolicies/{operationKind}
  • IdVaults_UpdateAccessPolicy de operaciones
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

Nombre de la operación.

keyVaultAccessPolicyParameters
KeyVaultAccessPolicyParameters

Directiva de acceso para combinar en el almacén.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

keyVaultAccessPolicyParameters es null.

Se aplica a