Freigeben über


VaultsOperationsExtensions.UpdateAccessPolicyAsync Methode

Definition

Aktualisieren sie Zugriffsrichtlinien in einem Schlüsseltresor im angegebenen Abonnement.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.KeyVault.Fluent.Models.VaultAccessPolicyParametersInner> UpdateAccessPolicyAsync (this Microsoft.Azure.Management.KeyVault.Fluent.IVaultsOperations operations, string resourceGroupName, string vaultName, Microsoft.Azure.Management.KeyVault.Fluent.Models.AccessPolicyUpdateKind operationKind, Microsoft.Azure.Management.KeyVault.Fluent.Models.VaultAccessPolicyProperties properties, System.Threading.CancellationToken cancellationToken = default);
static member UpdateAccessPolicyAsync : Microsoft.Azure.Management.KeyVault.Fluent.IVaultsOperations * string * string * Microsoft.Azure.Management.KeyVault.Fluent.Models.AccessPolicyUpdateKind * Microsoft.Azure.Management.KeyVault.Fluent.Models.VaultAccessPolicyProperties * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.KeyVault.Fluent.Models.VaultAccessPolicyParametersInner>
<Extension()>
Public Function UpdateAccessPolicyAsync (operations As IVaultsOperations, resourceGroupName As String, vaultName As String, operationKind As AccessPolicyUpdateKind, properties As VaultAccessPolicyProperties, Optional cancellationToken As CancellationToken = Nothing) As Task(Of VaultAccessPolicyParametersInner)

Parameter

operations
IVaultsOperations

Die Vorgangsgruppe für diese Erweiterungsmethode.

resourceGroupName
String

Der Name der Ressourcengruppe, zu der der Tresor gehört.

vaultName
String

Name des Tresors

operationKind
AccessPolicyUpdateKind

Name des Vorgangs. Mögliche Werte: "add", "replace", "remove"

properties
VaultAccessPolicyProperties

Eigenschaften der Zugriffsrichtlinie

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Gilt für: