Share via


DiskPoolCollection.CreateOrUpdateAsync Method

Definition

Create or Update Disk pool. This create or update operation can take 15 minutes to complete. This is expected service behavior.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StoragePool/diskPools/{diskPoolName}
  • Operation Id: DiskPools_CreateOrUpdate
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.StoragePool.DiskPoolResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string diskPoolName, Azure.ResourceManager.StoragePool.Models.DiskPoolCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.StoragePool.Models.DiskPoolCreateOrUpdateContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.StoragePool.DiskPoolResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.StoragePool.Models.DiskPoolCreateOrUpdateContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.StoragePool.DiskPoolResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, diskPoolName As String, content As DiskPoolCreateOrUpdateContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of DiskPoolResource))

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.

diskPoolName
String

The name of the Disk Pool.

content
DiskPoolCreateOrUpdateContent

Request payload for Disk Pool create operation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

diskPoolName or content is null.

Applies to