MediaTransformCollection.CreateOrUpdateAsync Method

Definition

Creates or updates a new Transform.

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

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

transformName
String

The Transform name.

data
MediaTransformData

The request parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

transformName is an empty string, and was expected to be non-empty.

transformName or data is null.

Applies to