다음을 통해 공유


QuotaExtensions Class

Definition

A class to add extension methods to Azure.ResourceManager.Quota.

public static class QuotaExtensions
type QuotaExtensions = class
Public Module QuotaExtensions
Inheritance
QuotaExtensions

Methods

GetCurrentQuotaLimitBase(ArmClient, ResourceIdentifier, String, CancellationToken)

Get the quota limit of a resource. The response can be used to determine the remaining quota to calculate a new quota limit that can be submitted with a PUT request.

  • Request Path: /{scope}/providers/Microsoft.Quota/quotas/{resourceName}
  • Operation Id: Quota_Get
  • Default Api Version: 2025-03-01
  • Resource: CurrentQuotaLimitBaseResource
<item>MockingTo mock this method, please mock GetCurrentQuotaLimitBase(ResourceIdentifier, String, CancellationToken) instead.</item>
GetCurrentQuotaLimitBaseAsync(ArmClient, ResourceIdentifier, String, CancellationToken)

Get the quota limit of a resource. The response can be used to determine the remaining quota to calculate a new quota limit that can be submitted with a PUT request.

  • Request Path: /{scope}/providers/Microsoft.Quota/quotas/{resourceName}
  • Operation Id: Quota_Get
  • Default Api Version: 2025-03-01
  • Resource: CurrentQuotaLimitBaseResource
<item>MockingTo mock this method, please mock GetCurrentQuotaLimitBaseAsync(ResourceIdentifier, String, CancellationToken) instead.</item>
GetCurrentQuotaLimitBaseResource(ArmClient, ResourceIdentifier)

Gets an object representing a CurrentQuotaLimitBaseResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String) to create a CurrentQuotaLimitBaseResourceResourceIdentifier from its components. <item>MockingTo mock this method, please mock GetCurrentQuotaLimitBaseResource(ResourceIdentifier) instead.</item>

GetCurrentQuotaLimitBases(ArmClient, ResourceIdentifier)

Gets a collection of CurrentQuotaLimitBaseResources in the ArmClient. <item>MockingTo mock this method, please mock GetCurrentQuotaLimitBases(ResourceIdentifier) instead.</item>

GetCurrentUsagesBase(ArmClient, ResourceIdentifier, String, CancellationToken)

Get the current usage of a resource.

  • Request Path: /{scope}/providers/Microsoft.Quota/usages/{resourceName}
  • Operation Id: Usages_Get
  • Default Api Version: 2025-03-01
  • Resource: CurrentUsagesBaseResource
<item>MockingTo mock this method, please mock GetCurrentUsagesBase(ResourceIdentifier, String, CancellationToken) instead.</item>
GetCurrentUsagesBaseAsync(ArmClient, ResourceIdentifier, String, CancellationToken)

Get the current usage of a resource.

  • Request Path: /{scope}/providers/Microsoft.Quota/usages/{resourceName}
  • Operation Id: Usages_Get
  • Default Api Version: 2025-03-01
  • Resource: CurrentUsagesBaseResource
<item>MockingTo mock this method, please mock GetCurrentUsagesBaseAsync(ResourceIdentifier, String, CancellationToken) instead.</item>
GetCurrentUsagesBaseResource(ArmClient, ResourceIdentifier)

Gets an object representing a CurrentUsagesBaseResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String) to create a CurrentUsagesBaseResourceResourceIdentifier from its components. <item>MockingTo mock this method, please mock GetCurrentUsagesBaseResource(ResourceIdentifier) instead.</item>

GetCurrentUsagesBases(ArmClient, ResourceIdentifier)

Gets a collection of CurrentUsagesBaseResources in the ArmClient. <item>MockingTo mock this method, please mock GetCurrentUsagesBases(ResourceIdentifier) instead.</item>

GetGroupQuotaEntities(ManagementGroupResource)

Gets a collection of GroupQuotaEntityResources in the ManagementGroupResource. <item>MockingTo mock this method, please mock GetGroupQuotaEntities() instead.</item>

GetGroupQuotaEntity(ManagementGroupResource, String, CancellationToken)

Gets the GroupQuotas for the name passed. It will return the GroupQuotas properties only. The details on group quota can be access from the group quota APIs.

  • Request Path: /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}
  • Operation Id: GroupQuotas_Get
  • Default Api Version: 2025-03-01
  • Resource: GroupQuotaEntityResource
<item>MockingTo mock this method, please mock GetGroupQuotaEntity(String, CancellationToken) instead.</item>
GetGroupQuotaEntityAsync(ManagementGroupResource, String, CancellationToken)

Gets the GroupQuotas for the name passed. It will return the GroupQuotas properties only. The details on group quota can be access from the group quota APIs.

  • Request Path: /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}
  • Operation Id: GroupQuotas_Get
  • Default Api Version: 2025-03-01
  • Resource: GroupQuotaEntityResource
<item>MockingTo mock this method, please mock GetGroupQuotaEntityAsync(String, CancellationToken) instead.</item>
GetGroupQuotaEntityResource(ArmClient, ResourceIdentifier)

Gets an object representing a GroupQuotaEntityResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String) to create a GroupQuotaEntityResourceResourceIdentifier from its components. <item>MockingTo mock this method, please mock GetGroupQuotaEntityResource(ResourceIdentifier) instead.</item>

GetGroupQuotaLimitListResource(ArmClient, ResourceIdentifier)

Gets an object representing a GroupQuotaLimitListResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, AzureLocation) to create a GroupQuotaLimitListResourceResourceIdentifier from its components. <item>MockingTo mock this method, please mock GetGroupQuotaLimitListResource(ResourceIdentifier) instead.</item>

GetGroupQuotaRequestStatusResource(ArmClient, ResourceIdentifier)

Gets an object representing a GroupQuotaRequestStatusResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String) to create a GroupQuotaRequestStatusResourceResourceIdentifier from its components. <item>MockingTo mock this method, please mock GetGroupQuotaRequestStatusResource(ResourceIdentifier) instead.</item>

GetGroupQuotaSubscriptionRequestStatusResource(ArmClient, ResourceIdentifier)

Gets an object representing a GroupQuotaSubscriptionRequestStatusResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String) to create a GroupQuotaSubscriptionRequestStatusResourceResourceIdentifier from its components. <item>MockingTo mock this method, please mock GetGroupQuotaSubscriptionRequestStatusResource(ResourceIdentifier) instead.</item>

GetGroupQuotaSubscriptionResource(ArmClient, ResourceIdentifier)

Gets an object representing a GroupQuotaSubscriptionResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String) to create a GroupQuotaSubscriptionResourceResourceIdentifier from its components. <item>MockingTo mock this method, please mock GetGroupQuotaSubscriptionResource(ResourceIdentifier) instead.</item>

GetQuotaAllocationRequestStatus(ManagementGroupResource, String, String, String, String, CancellationToken)

Get the quota allocation request status for the subscriptionId by allocationId.

  • Request Path: /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocationRequests/{allocationId}
  • Operation Id: GroupQuotaSubscriptionAllocationRequest_Get
  • Default Api Version: 2025-03-01
  • Resource: QuotaAllocationRequestStatusResource
<item>MockingTo mock this method, please mock GetQuotaAllocationRequestStatus(String, String, String, String, CancellationToken) instead.</item>
GetQuotaAllocationRequestStatusAsync(ManagementGroupResource, String, String, String, String, CancellationToken)

Get the quota allocation request status for the subscriptionId by allocationId.

  • Request Path: /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocationRequests/{allocationId}
  • Operation Id: GroupQuotaSubscriptionAllocationRequest_Get
  • Default Api Version: 2025-03-01
  • Resource: QuotaAllocationRequestStatusResource
<item>MockingTo mock this method, please mock GetQuotaAllocationRequestStatusAsync(String, String, String, String, CancellationToken) instead.</item>
GetQuotaAllocationRequestStatuses(ManagementGroupResource, String, String, String)

Gets a collection of QuotaAllocationRequestStatusResources in the ManagementGroupResource. <item>MockingTo mock this method, please mock GetQuotaAllocationRequestStatuses(String, String, String) instead.</item>

GetQuotaAllocationRequestStatusResource(ArmClient, ResourceIdentifier)

Gets an object representing a QuotaAllocationRequestStatusResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, String, String) to create a QuotaAllocationRequestStatusResourceResourceIdentifier from its components. <item>MockingTo mock this method, please mock GetQuotaAllocationRequestStatusResource(ResourceIdentifier) instead.</item>

GetQuotaOperations(TenantResource, CancellationToken)

List all the operations supported by the Microsoft.Quota resource provider.

  • Request Path: /providers/Microsoft.Quota/operations
  • Operation Id: QuotaOperation_List
  • Default Api Version: 2025-03-01
<item>MockingTo mock this method, please mock GetQuotaOperations(CancellationToken) instead.</item>
GetQuotaOperationsAsync(TenantResource, CancellationToken)

List all the operations supported by the Microsoft.Quota resource provider.

  • Request Path: /providers/Microsoft.Quota/operations
  • Operation Id: QuotaOperation_List
  • Default Api Version: 2025-03-01
<item>MockingTo mock this method, please mock GetQuotaOperations(CancellationToken) instead.</item>
GetQuotaRequestDetail(ArmClient, ResourceIdentifier, String, CancellationToken)

Get the quota request details and status by quota request ID for the resources of the resource provider at a specific location. The quota request ID id is returned in the response of the PUT operation.

  • Request Path: /{scope}/providers/Microsoft.Quota/quotaRequests/{id}
  • Operation Id: QuotaRequestStatus_Get
  • Default Api Version: 2025-03-01
  • Resource: QuotaRequestDetailResource
<item>MockingTo mock this method, please mock GetQuotaRequestDetail(ResourceIdentifier, String, CancellationToken) instead.</item>
GetQuotaRequestDetailAsync(ArmClient, ResourceIdentifier, String, CancellationToken)

Get the quota request details and status by quota request ID for the resources of the resource provider at a specific location. The quota request ID id is returned in the response of the PUT operation.

  • Request Path: /{scope}/providers/Microsoft.Quota/quotaRequests/{id}
  • Operation Id: QuotaRequestStatus_Get
  • Default Api Version: 2025-03-01
  • Resource: QuotaRequestDetailResource
<item>MockingTo mock this method, please mock GetQuotaRequestDetailAsync(ResourceIdentifier, String, CancellationToken) instead.</item>
GetQuotaRequestDetailResource(ArmClient, ResourceIdentifier)

Gets an object representing a QuotaRequestDetailResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String) to create a QuotaRequestDetailResourceResourceIdentifier from its components. <item>MockingTo mock this method, please mock GetQuotaRequestDetailResource(ResourceIdentifier) instead.</item>

GetQuotaRequestDetails(ArmClient, ResourceIdentifier)

Gets a collection of QuotaRequestDetailResources in the ArmClient. <item>MockingTo mock this method, please mock GetQuotaRequestDetails(ResourceIdentifier) instead.</item>

GetSubscriptionQuotaAllocationsList(ManagementGroupResource, String, String, String, AzureLocation, CancellationToken)

Gets all the quota allocated to a subscription for the specified resource provider and location for resource names passed in $filter=resourceName eq {SKU}. 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.

  • Request Path: /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocations/{location}
  • Operation Id: GroupQuotaSubscriptionAllocation_List
  • Default Api Version: 2025-03-01
  • Resource: SubscriptionQuotaAllocationsListResource
<item>MockingTo mock this method, please mock GetSubscriptionQuotaAllocationsList(String, String, String, AzureLocation, CancellationToken) instead.</item>
GetSubscriptionQuotaAllocationsListAsync(ManagementGroupResource, String, String, String, AzureLocation, CancellationToken)

Gets all the quota allocated to a subscription for the specified resource provider and location for resource names passed in $filter=resourceName eq {SKU}. 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.

  • Request Path: /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocations/{location}
  • Operation Id: GroupQuotaSubscriptionAllocation_List
  • Default Api Version: 2025-03-01
  • Resource: SubscriptionQuotaAllocationsListResource
<item>MockingTo mock this method, please mock GetSubscriptionQuotaAllocationsListAsync(String, String, String, AzureLocation, CancellationToken) instead.</item>
GetSubscriptionQuotaAllocationsListResource(ArmClient, ResourceIdentifier)

Gets an object representing a SubscriptionQuotaAllocationsListResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, String, AzureLocation) to create a SubscriptionQuotaAllocationsListResourceResourceIdentifier from its components. <item>MockingTo mock this method, please mock GetSubscriptionQuotaAllocationsListResource(ResourceIdentifier) instead.</item>

GetSubscriptionQuotaAllocationsLists(ManagementGroupResource)

Gets a collection of SubscriptionQuotaAllocationsListResources in the ManagementGroupResource. <item>MockingTo mock this method, please mock GetSubscriptionQuotaAllocationsLists() instead.</item>

Applies to