Partilhar via


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