共用方式為


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