다음을 통해 공유


StorageMoverCollection.CreateOrUpdateAsync Method

Definition

Creates or updates a top-level Storage Mover resource.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}
  • Operation Id: StorageMovers_CreateOrUpdate
  • Default Api Version: 2024-07-01
  • Resource: StorageMoverResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.StorageMover.StorageMoverResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string storageMoverName, Azure.ResourceManager.StorageMover.StorageMoverData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.StorageMover.StorageMoverData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.StorageMover.StorageMoverResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.StorageMover.StorageMoverData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.StorageMover.StorageMoverResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, storageMoverName As String, data As StorageMoverData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of StorageMoverResource))

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.

storageMoverName
String

The name of the Storage Mover resource.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

storageMoverName or data is null.

Applies to