Dela via


NetAppVolumeQuotaRuleCollection.CreateOrUpdateAsync Method

Definition

Create the specified quota rule within the given volume

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/netAppAccounts/{accountName}/capacityPools/{poolName}/volumes/{volumeName}/volumeQuotaRules/{volumeQuotaRuleName}
  • Operation Id: VolumeQuotaRules_Create
  • Default Api Version: 2024-07-01
  • Resource: NetAppVolumeQuotaRuleResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NetApp.NetAppVolumeQuotaRuleResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string volumeQuotaRuleName, Azure.ResourceManager.NetApp.NetAppVolumeQuotaRuleData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.NetApp.NetAppVolumeQuotaRuleData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NetApp.NetAppVolumeQuotaRuleResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.NetApp.NetAppVolumeQuotaRuleData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.NetApp.NetAppVolumeQuotaRuleResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, volumeQuotaRuleName As String, data As NetAppVolumeQuotaRuleData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of NetAppVolumeQuotaRuleResource))

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.

volumeQuotaRuleName
String

The name of volume quota rule.

data
NetAppVolumeQuotaRuleData

Quota rule object supplied in the body of the operation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

volumeQuotaRuleName or data is null.

Applies to