Freigeben über


ContentKeyPolicyCollection.CreateOrUpdateAsync Methode

Definition

Erstellen oder Aktualisieren einer Inhaltsschlüsselrichtlinie im Media Services-Konto

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/contentKeyPolicies/{contentKeyPolicyName}
  • Vorgang IdContentKeyPolicies_CreateOrUpdate
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Media.ContentKeyPolicyResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string contentKeyPolicyName, Azure.ResourceManager.Media.ContentKeyPolicyData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Media.ContentKeyPolicyData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Media.ContentKeyPolicyResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Media.ContentKeyPolicyData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Media.ContentKeyPolicyResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, contentKeyPolicyName As String, data As ContentKeyPolicyData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of ContentKeyPolicyResource))

Parameter

waitUntil
WaitUntil

Completed , wenn die Methode auf die Rückgabe warten soll, bis der lange ausgeführte Vorgang für den Dienst abgeschlossen ist; Started , wenn es nach dem Starten des Vorgangs zurückgegeben werden soll. Weitere Informationen zu Vorgängen mit langer Ausführung finden Sie unter Beispiele für Azure.Core-Long-Running-Vorgänge.

contentKeyPolicyName
String

Der Name der Inhaltsschlüsselrichtlinie.

data
ContentKeyPolicyData

Die Anforderungsparameter.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

contentKeyPolicyName ist eine leere Zeichenfolge und wurde erwartet, dass sie nicht leer ist.

contentKeyPolicyName oder data ist NULL.

Gilt für: