GroupQuotaSubscriptionAllocationRequest interface
表示 GroupQuotaSubscriptionAllocationRequest 的接口。
方法
| begin |
请求将配额从组配额分配给特定订阅。 将 GroupQuota 分配到订阅或减少分配给订阅的配额,以向 groupQuota 提供未使用的配额(配额 >= 使用情况)。 因此,此 API 可用于将配额分配给订阅,并将未使用的配额分配给组配额,该配额可以分配给 GroupQuota 中的另一个订阅。 用户可以从 groupQuota 中的多个订阅收集未使用的配额,并将 groupQuota 分配到需要订阅。 |
| begin |
请求将配额从组配额分配给特定订阅。 将 GroupQuota 分配到订阅或减少分配给订阅的配额,以向 groupQuota 提供未使用的配额(配额 >= 使用情况)。 因此,此 API 可用于将配额分配给订阅,并将未使用的配额分配给组配额,该配额可以分配给 GroupQuota 中的另一个订阅。 用户可以从 groupQuota 中的多个订阅收集未使用的配额,并将 groupQuota 分配到需要订阅。 |
| get(string, string, string, string, Group |
按 allocationId 获取 subscriptionId 的配额分配请求状态。 |
| list(string, string, string, string, Group |
获取 resourceProvider/location 的所有 quotaAllocationRequests。 需要位置的筛选器参数。 |
方法详细信息
beginUpdate(string, string, string, string, SubscriptionQuotaAllocationsList, GroupQuotaSubscriptionAllocationRequestUpdateOptionalParams)
请求将配额从组配额分配给特定订阅。 将 GroupQuota 分配到订阅或减少分配给订阅的配额,以向 groupQuota 提供未使用的配额(配额 >= 使用情况)。 因此,此 API 可用于将配额分配给订阅,并将未使用的配额分配给组配额,该配额可以分配给 GroupQuota 中的另一个订阅。 用户可以从 groupQuota 中的多个订阅收集未使用的配额,并将 groupQuota 分配到需要订阅。
function beginUpdate(managementGroupId: string, groupQuotaName: string, resourceProviderName: string, location: string, allocateQuotaRequest: SubscriptionQuotaAllocationsList, options?: GroupQuotaSubscriptionAllocationRequestUpdateOptionalParams): Promise<SimplePollerLike<OperationState<SubscriptionQuotaAllocationsList>, SubscriptionQuotaAllocationsList>>
参数
- managementGroupId
-
string
管理组 ID。
- groupQuotaName
-
string
GroupQuota 名称。 名称对于提供的上下文 tenantId/MgId 应是唯一的。
- resourceProviderName
-
string
资源提供程序名称,例如 - Microsoft.Compute。 目前仅Microsoft.Compute 资源提供程序支持此 API。
- location
-
string
Azure 区域的名称。
- allocateQuotaRequest
- SubscriptionQuotaAllocationsList
配额请求有效负载。
返回
Promise<@azure/core-lro.SimplePollerLike<OperationState<SubscriptionQuotaAllocationsList>, SubscriptionQuotaAllocationsList>>
beginUpdateAndWait(string, string, string, string, SubscriptionQuotaAllocationsList, GroupQuotaSubscriptionAllocationRequestUpdateOptionalParams)
请求将配额从组配额分配给特定订阅。 将 GroupQuota 分配到订阅或减少分配给订阅的配额,以向 groupQuota 提供未使用的配额(配额 >= 使用情况)。 因此,此 API 可用于将配额分配给订阅,并将未使用的配额分配给组配额,该配额可以分配给 GroupQuota 中的另一个订阅。 用户可以从 groupQuota 中的多个订阅收集未使用的配额,并将 groupQuota 分配到需要订阅。
function beginUpdateAndWait(managementGroupId: string, groupQuotaName: string, resourceProviderName: string, location: string, allocateQuotaRequest: SubscriptionQuotaAllocationsList, options?: GroupQuotaSubscriptionAllocationRequestUpdateOptionalParams): Promise<SubscriptionQuotaAllocationsList>
参数
- managementGroupId
-
string
管理组 ID。
- groupQuotaName
-
string
GroupQuota 名称。 名称对于提供的上下文 tenantId/MgId 应是唯一的。
- resourceProviderName
-
string
资源提供程序名称,例如 - Microsoft.Compute。 目前仅Microsoft.Compute 资源提供程序支持此 API。
- location
-
string
Azure 区域的名称。
- allocateQuotaRequest
- SubscriptionQuotaAllocationsList
配额请求有效负载。
返回
Promise<SubscriptionQuotaAllocationsList>
get(string, string, string, string, GroupQuotaSubscriptionAllocationRequestGetOptionalParams)
按 allocationId 获取 subscriptionId 的配额分配请求状态。
function get(managementGroupId: string, groupQuotaName: string, resourceProviderName: string, allocationId: string, options?: GroupQuotaSubscriptionAllocationRequestGetOptionalParams): Promise<QuotaAllocationRequestStatus>
参数
- managementGroupId
-
string
管理组 ID。
- groupQuotaName
-
string
GroupQuota 名称。 名称对于提供的上下文 tenantId/MgId 应是唯一的。
- resourceProviderName
-
string
资源提供程序名称,例如 - Microsoft.Compute。 目前仅Microsoft.Compute 资源提供程序支持此 API。
- allocationId
-
string
请求 ID。
选项参数。
返回
Promise<QuotaAllocationRequestStatus>
list(string, string, string, string, GroupQuotaSubscriptionAllocationRequestListOptionalParams)
获取 resourceProvider/location 的所有 quotaAllocationRequests。 需要位置的筛选器参数。
function list(managementGroupId: string, groupQuotaName: string, resourceProviderName: string, filter: string, options?: GroupQuotaSubscriptionAllocationRequestListOptionalParams): PagedAsyncIterableIterator<QuotaAllocationRequestStatus, QuotaAllocationRequestStatus[], PageSettings>
参数
- managementGroupId
-
string
管理组 ID。
- groupQuotaName
-
string
GroupQuota 名称。 名称对于提供的上下文 tenantId/MgId 应是唯一的。
- resourceProviderName
-
string
资源提供程序名称,例如 - Microsoft.Compute。 目前仅Microsoft.Compute 资源提供程序支持此 API。
- filter
-
string
| 田 | 支持的运算符 |
|---|
location eq {location}
Example: $filter=location eq eastus