共用方式為


SubscriptionQuotaAllocationCollection.GetAllAsync Method

Definition

Gets all the quota allocated to a subscription for the specific Resource Provider, Location. This will include the GroupQuota and total quota allocated to the subscription. Only the Group quota allocated to the subscription can be allocated back to the MG Group Quota. Use the $filter parameter to filter out the specific resource based on the ResourceProvider/Location. $filter is a required parameter.

  • Request Path: /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocations
  • Operation Id: GroupQuotaSubscriptionAllocation_List
  • Default Api Version: 2023-06-01-preview
  • Resource: SubscriptionQuotaAllocationResource
public virtual Azure.AsyncPageable<Azure.ResourceManager.Quota.SubscriptionQuotaAllocationResource> GetAllAsync (string filter, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Quota.SubscriptionQuotaAllocationResource>
override this.GetAllAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Quota.SubscriptionQuotaAllocationResource>
Public Overridable Function GetAllAsync (filter As String, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of SubscriptionQuotaAllocationResource)

Parameters

filter
String
Field Supported operators

location eq {location} Example: $filter=location eq eastus

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of SubscriptionQuotaAllocationResource that may take multiple service requests to iterate over.

Exceptions

filter is null.

Applies to