Partager via


KeyVaultResource.UpdateAccessPolicyAsync Méthode

Définition

Mettez à jour les stratégies d’accès dans un coffre de clés dans l’abonnement spécifié.

  • Chemin/abonnements de la demande/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/accessPolicies/{operationKind}
  • IdVaults_UpdateAccessPolicy d’opération
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))

Paramètres

operationKind
AccessPolicyUpdateKind

Nom de l’opération.

keyVaultAccessPolicyParameters
KeyVaultAccessPolicyParameters

Stratégie d’accès pour fusionner dans le coffre.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

keyVaultAccessPolicyParameters a la valeur null.

S’applique à