Sdílet prostřednictvím


StorageContainerCollection.CreateOrUpdateAsync Method

Definition

The operation to create or update a storage container. Please note some properties can be set only during storage container creation.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/storageContainers/{storageContainerName}
  • Operation Id: StorageContainers_CreateOrUpdate
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Hci.StorageContainerResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string storageContainerName, Azure.ResourceManager.Hci.StorageContainerData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Hci.StorageContainerData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Hci.StorageContainerResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Hci.StorageContainerData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Hci.StorageContainerResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, storageContainerName As String, data As StorageContainerData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of StorageContainerResource))

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.

storageContainerName
String

Name of the storage container.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

storageContainerName or data is null.

Applies to