Share via


GroupQuotaEntityCollection.CreateOrUpdate Method

Definition

Creates a new GroupQuota for the name passed. A RequestId will be returned by the Service. The status can be polled periodically. The status Async polling is using standards defined at - https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/async-api-reference.md#asynchronous-operations. Use the OperationsStatus URI provided in Azure-AsyncOperation header, the duration will be specified in retry-after header. Once the operation gets to terminal state - Succeeded | Failed, then the URI will change to Get URI and full details can be checked.

  • Request Path: /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}
  • Operation Id: GroupQuotas_CreateOrUpdate
  • Default Api Version: 2023-06-01-preview
  • Resource: GroupQuotaEntityResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Quota.GroupQuotaEntityResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string groupQuotaName, Azure.ResourceManager.Quota.GroupQuotaEntityData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Quota.GroupQuotaEntityData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Quota.GroupQuotaEntityResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Quota.GroupQuotaEntityData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Quota.GroupQuotaEntityResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, groupQuotaName As String, data As GroupQuotaEntityData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of GroupQuotaEntityResource)

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.

groupQuotaName
String

The GroupQuota name. The name should be unique for the provided context tenantId/MgId.

data
GroupQuotaEntityData

The GroupQuota body details for creation or update of a GroupQuota entity.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

groupQuotaName or data is null.

Applies to