Compartilhar via


NetAppVolumeGroupCollection.CreateOrUpdate 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: 2024-07-01
  • Resource: NetAppVolumeGroupResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NetApp.NetAppVolumeGroupResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string volumeGroupName, Azure.ResourceManager.NetApp.NetAppVolumeGroupData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.NetApp.NetAppVolumeGroupData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NetApp.NetAppVolumeGroupResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.NetApp.NetAppVolumeGroupData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NetApp.NetAppVolumeGroupResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, volumeGroupName As String, data As NetAppVolumeGroupData, Optional cancellationToken As CancellationToken = Nothing) As 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