Compartir a través de


ElasticSanVolumeGroupCollection.CreateOrUpdateAsync Method

Definition

Create a Volume Group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ElasticSan/elasticSans/{elasticSanName}/volumegroups/{volumeGroupName}
  • Operation Id: VolumeGroups_Create
  • Default Api Version: 2024-06-01-preview
  • Resource: ElasticSanVolumeGroupResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ElasticSan.ElasticSanVolumeGroupResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string volumeGroupName, Azure.ResourceManager.ElasticSan.ElasticSanVolumeGroupData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.ElasticSan.ElasticSanVolumeGroupData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ElasticSan.ElasticSanVolumeGroupResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.ElasticSan.ElasticSanVolumeGroupData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ElasticSan.ElasticSanVolumeGroupResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, volumeGroupName As String, data As ElasticSanVolumeGroupData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of ElasticSanVolumeGroupResource))

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.

volumeGroupName
String

The name of the VolumeGroup.

data
ElasticSanVolumeGroupData

Volume Group object.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

volumeGroupName or data is null.

Applies to