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

CreateOrUpdateGroupQuotaSubscriptionAllocationRequest(ManagementGroupResource, WaitUntil, String, String, String, String, QuotaAllocationRequestStatusData, CancellationToken)

Request to assign quota from group quota to a specific Subscription. The assign GroupQuota to subscriptions or reduce the quota allocated to subscription to give back the unused quota ( quota >= usages) to the groupQuota. So, this API can be used to assign Quota to subscriptions and assign back unused quota to group quota, which can be assigned to another subscriptions in the GroupQuota.

  • Request Path: /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocationRequests/{resourceName}
  • Operation Id: GroupQuotaSubscriptionAllocationRequest_CreateOrUpdate
  • Default Api Version: 2023-06-01-preview
  • Resource: QuotaAllocationRequestStatusResource
CreateOrUpdateGroupQuotaSubscriptionAllocationRequestAsync(ManagementGroupResource, WaitUntil, String, String, String, String, QuotaAllocationRequestStatusData, CancellationToken)

Request to assign quota from group quota to a specific Subscription. The assign GroupQuota to subscriptions or reduce the quota allocated to subscription to give back the unused quota ( quota >= usages) to the groupQuota. So, this API can be used to assign Quota to subscriptions and assign back unused quota to group quota, which can be assigned to another subscriptions in the GroupQuota.

  • Request Path: /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocationRequests/{resourceName}
  • Operation Id: GroupQuotaSubscriptionAllocationRequest_CreateOrUpdate
  • Default Api Version: 2023-06-01-preview
  • Resource: QuotaAllocationRequestStatusResource
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: 2023-06-01-preview
  • Resource: CurrentQuotaLimitBaseResource
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: 2023-06-01-preview
  • Resource: CurrentQuotaLimitBaseResource
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. MockingTo mock this method, please mock GetCurrentQuotaLimitBaseResource(ResourceIdentifier) instead.

GetCurrentQuotaLimitBases(ArmClient, ResourceIdentifier)

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

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: 2023-06-01-preview
  • Resource: CurrentUsagesBaseResource
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: 2023-06-01-preview
  • Resource: CurrentUsagesBaseResource
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. MockingTo mock this method, please mock GetCurrentUsagesBaseResource(ResourceIdentifier) instead.

GetCurrentUsagesBases(ArmClient, ResourceIdentifier)

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

GetGroupQuotaEnforcementResource(ArmClient, ResourceIdentifier)

Gets an object representing a GroupQuotaEnforcementResource 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 GroupQuotaEnforcementResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetGroupQuotaEnforcementResource(ResourceIdentifier) instead.

GetGroupQuotaEntities(ManagementGroupResource)

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

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: 2023-06-01-preview
  • Resource: GroupQuotaEntityResource
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: 2023-06-01-preview
  • Resource: GroupQuotaEntityResource
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. MockingTo mock this method, please mock GetGroupQuotaEntityResource(ResourceIdentifier) instead.

GetGroupQuotaLimitResource(ArmClient, ResourceIdentifier)

Gets an object representing a GroupQuotaLimitResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, String) to create a GroupQuotaLimitResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetGroupQuotaLimitResource(ResourceIdentifier) instead.

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. MockingTo mock this method, please mock GetGroupQuotaRequestStatusResource(ResourceIdentifier) instead.

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. MockingTo mock this method, please mock GetGroupQuotaSubscriptionRequestStatusResource(ResourceIdentifier) instead.

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. MockingTo mock this method, please mock GetGroupQuotaSubscriptionResource(ResourceIdentifier) instead.

GetQuotaAllocationRequestStatus(ManagementGroupResource, 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}/quotaAllocationRequests/{allocationId}
  • Operation Id: GroupQuotaSubscriptionAllocationRequest_Get
  • Default Api Version: 2023-06-01-preview
  • Resource: QuotaAllocationRequestStatusResource
GetQuotaAllocationRequestStatusAsync(ManagementGroupResource, 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}/quotaAllocationRequests/{allocationId}
  • Operation Id: GroupQuotaSubscriptionAllocationRequest_Get
  • Default Api Version: 2023-06-01-preview
  • Resource: QuotaAllocationRequestStatusResource
GetQuotaAllocationRequestStatuses(ManagementGroupResource)

Gets a collection of QuotaAllocationRequestStatusResources in the ManagementGroupResource. MockingTo mock this method, please mock GetQuotaAllocationRequestStatuses() instead.

GetQuotaAllocationRequestStatusesByResourceProvider(ManagementGroupResource, String, String, String, String, CancellationToken)

Get all the quotaAllocationRequests for a resourceProvider/location. The filter paramter for location is required.

  • Request Path: /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocationRequests
  • Operation Id: GroupQuotaSubscriptionAllocationRequest_List
  • Default Api Version: 2023-06-01-preview
  • Resource: QuotaAllocationRequestStatusResource
GetQuotaAllocationRequestStatusesByResourceProviderAsync(ManagementGroupResource, String, String, String, String, CancellationToken)

Get all the quotaAllocationRequests for a resourceProvider/location. The filter paramter for location is required.

  • Request Path: /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocationRequests
  • Operation Id: GroupQuotaSubscriptionAllocationRequest_List
  • Default Api Version: 2023-06-01-preview
  • Resource: QuotaAllocationRequestStatusResource
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) to create a QuotaAllocationRequestStatusResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetQuotaAllocationRequestStatusResource(ResourceIdentifier) instead.

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: 2023-06-01-preview
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: 2023-06-01-preview
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: 2023-06-01-preview
  • Resource: QuotaRequestDetailResource
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: 2023-06-01-preview
  • Resource: QuotaRequestDetailResource
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. MockingTo mock this method, please mock GetQuotaRequestDetailResource(ResourceIdentifier) instead.

GetQuotaRequestDetails(ArmClient, ResourceIdentifier)

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

GetSubscriptionQuotaAllocation(ManagementGroupResource, String, String, String, String, CancellationToken)

Gets Quota allocated to a subscription for the specific Resource Provider, Location, ResourceName. 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}/quotaAllocations/{resourceName}
  • Operation Id: GroupQuotaSubscriptionAllocation_Get
  • Default Api Version: 2023-06-01-preview
  • Resource: SubscriptionQuotaAllocationResource
GetSubscriptionQuotaAllocationAsync(ManagementGroupResource, String, String, String, String, CancellationToken)

Gets Quota allocated to a subscription for the specific Resource Provider, Location, ResourceName. 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}/quotaAllocations/{resourceName}
  • Operation Id: GroupQuotaSubscriptionAllocation_Get
  • Default Api Version: 2023-06-01-preview
  • Resource: SubscriptionQuotaAllocationResource
GetSubscriptionQuotaAllocationResource(ArmClient, ResourceIdentifier)

Gets an object representing a SubscriptionQuotaAllocationResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String, String) to create a SubscriptionQuotaAllocationResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetSubscriptionQuotaAllocationResource(ResourceIdentifier) instead.

GetSubscriptionQuotaAllocations(ManagementGroupResource, String, String)

Gets a collection of SubscriptionQuotaAllocationResources in the ManagementGroupResource. MockingTo mock this method, please mock GetSubscriptionQuotaAllocations(String, String) instead.

UpdateGroupQuotaSubscriptionAllocationRequest(ManagementGroupResource, WaitUntil, String, String, String, String, QuotaAllocationRequestStatusData, CancellationToken)

Request to assign quota from group quota to a specific Subscription. The assign GroupQuota to subscriptions or reduce the quota allocated to subscription to give back the unused quota ( quota >= usages) to the groupQuota. So, this API can be used to assign Quota to subscriptions and assign back unused quota to group quota, which can be assigned to another subscriptions in the GroupQuota. User can collect unused quotas from multiple subscriptions within the groupQuota and assign the groupQuota to the subscription, where it's needed.

  • Request Path: /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocationRequests/{resourceName}
  • Operation Id: GroupQuotaSubscriptionAllocationRequest_Update
  • Default Api Version: 2023-06-01-preview
  • Resource: QuotaAllocationRequestStatusResource
UpdateGroupQuotaSubscriptionAllocationRequestAsync(ManagementGroupResource, WaitUntil, String, String, String, String, QuotaAllocationRequestStatusData, CancellationToken)

Request to assign quota from group quota to a specific Subscription. The assign GroupQuota to subscriptions or reduce the quota allocated to subscription to give back the unused quota ( quota >= usages) to the groupQuota. So, this API can be used to assign Quota to subscriptions and assign back unused quota to group quota, which can be assigned to another subscriptions in the GroupQuota. User can collect unused quotas from multiple subscriptions within the groupQuota and assign the groupQuota to the subscription, where it's needed.

  • Request Path: /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocationRequests/{resourceName}
  • Operation Id: GroupQuotaSubscriptionAllocationRequest_Update
  • Default Api Version: 2023-06-01-preview
  • Resource: QuotaAllocationRequestStatusResource

Applies to