PureStoragePoolCollection.CreateOrUpdateAsync Method

Definition

Create a storage pool

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PureStorage.Block/storagePools/{storagePoolName}.
  • Operation Id. : StoragePools_Create.
  • Default Api Version. : 2024-11-01.
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.PureStorageBlock.PureStoragePoolResource>> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string storagePoolName, Azure.ResourceManager.PureStorageBlock.PureStoragePoolData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.PureStorageBlock.PureStoragePoolData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.PureStorageBlock.PureStoragePoolResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.PureStorageBlock.PureStoragePoolData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.PureStorageBlock.PureStoragePoolResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, storagePoolName As String, data As PureStoragePoolData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of PureStoragePoolResource))

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.

storagePoolName
String

Name of the storage pool.

data
PureStoragePoolData

Resource create parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

storagePoolName or data is null.

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

Applies to