Udostępnij za pośrednictwem


ContentKeyPoliciesOperationsExtensions.CreateOrUpdateAsync Method

Definition

Create or update an Content Key Policy

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Media.Models.ContentKeyPolicy> CreateOrUpdateAsync (this Microsoft.Azure.Management.Media.IContentKeyPoliciesOperations operations, string resourceGroupName, string accountName, string contentKeyPolicyName, System.Collections.Generic.IList<Microsoft.Azure.Management.Media.Models.ContentKeyPolicyOption> options, string description = default, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.Media.IContentKeyPoliciesOperations * string * string * string * System.Collections.Generic.IList<Microsoft.Azure.Management.Media.Models.ContentKeyPolicyOption> * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Media.Models.ContentKeyPolicy>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IContentKeyPoliciesOperations, resourceGroupName As String, accountName As String, contentKeyPolicyName As String, options As IList(Of ContentKeyPolicyOption), Optional description As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ContentKeyPolicy)

Parameters

operations
IContentKeyPoliciesOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group within the Azure subscription.

accountName
String

The Media Services account name.

contentKeyPolicyName
String

The Content Key Policy name.

options
IList<ContentKeyPolicyOption>

The Key Policy options.

description
String

A description for the Policy.

cancellationToken
CancellationToken

The cancellation token.

Returns

Remarks

Create or update a Content Key Policy in the Media Services account

Applies to