Partilhar via


StorageContainerCollection.CreateOrUpdate 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 Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Hci.StorageContainerResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string storageContainerName, Azure.ResourceManager.Hci.StorageContainerData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Hci.StorageContainerData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Hci.StorageContainerResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Hci.StorageContainerData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Hci.StorageContainerResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, storageContainerName As String, data As StorageContainerData, Optional cancellationToken As CancellationToken = Nothing) As 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