共用方式為


ContentKeyPolicyResource.UpdateAsync Method

Definition

Updates an existing Content Key Policy in the Media Services account

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

Parameters

data
ContentKeyPolicyData

The request parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

data is null.

Applies to