Freigeben über


KeyClient.UpdateKeyRotationPolicy Methode

Definition

Updates für KeyRotationPolicy den angegebenen Schlüssel in Key Vault. Die neue Richtlinie wird für die nächste Version des Schlüssels verwendet, wenn sie rotiert wird.

public virtual Azure.Response<Azure.Security.KeyVault.Keys.KeyRotationPolicy> UpdateKeyRotationPolicy (string keyName, Azure.Security.KeyVault.Keys.KeyRotationPolicy policy, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateKeyRotationPolicy : string * Azure.Security.KeyVault.Keys.KeyRotationPolicy * System.Threading.CancellationToken -> Azure.Response<Azure.Security.KeyVault.Keys.KeyRotationPolicy>
override this.UpdateKeyRotationPolicy : string * Azure.Security.KeyVault.Keys.KeyRotationPolicy * System.Threading.CancellationToken -> Azure.Response<Azure.Security.KeyVault.Keys.KeyRotationPolicy>
Public Overridable Function UpdateKeyRotationPolicy (keyName As String, policy As KeyRotationPolicy, Optional cancellationToken As CancellationToken = Nothing) As Response(Of KeyRotationPolicy)

Parameter

keyName
String

Der Name des Schlüssels.

policy
KeyRotationPolicy

Die zu aktualisierende KeyRotationPolicy.

cancellationToken
CancellationToken

Ein CancellationToken , der die Lebensdauer der Anforderung steuert.

Gibt zurück

Ein KeyRotationPolicy für den angegebenen Schlüssel.

Ausnahmen

keyName enthält eine leere Zeichenfolge.

keyName oder policy ist NULL.

Der Server hat einen Fehler zurückgegeben. Weitere Informationen, die vom Server zurückgegeben werden, finden Sie Message unter.

Hinweise

Für diesen Vorgang ist die Berechtigung schlüssel/update erforderlich.

Gilt für: