Share via


NetAppVolumeGroupCollection.CreateOrUpdateAsync Method

Definition

Create a volume group along with specified volumes

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/volumeGroups/{volumeGroupName}
  • Operation Id: VolumeGroups_Create
  • Default Api Version: 2023-07-01
  • Resource: NetAppVolumeGroupResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NetApp.NetAppVolumeGroupResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string volumeGroupName, Azure.ResourceManager.NetApp.NetAppVolumeGroupData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.NetApp.NetAppVolumeGroupData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NetApp.NetAppVolumeGroupResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.NetApp.NetAppVolumeGroupData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NetApp.NetAppVolumeGroupResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, volumeGroupName As String, data As NetAppVolumeGroupData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of NetAppVolumeGroupResource))

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
NetAppVolumeGroupData

Volume Group object supplied in the body of the operation.

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