Quota interface
表示配额的接口。
方法
| begin |
将资源的配额(服务限制)创建或更新为请求的值。 步骤:
|
| begin |
将资源的配额(服务限制)创建或更新为请求的值。 步骤:
|
| begin |
将此资源的配额(服务限制)更新为请求的值。 • 若要获取特定资源的配额信息,请发送 GET 请求。 • 若要增加配额,请将 GET 响应中的限制字段更新为新值。 • 若要更新配额值,请向配额请求 API 提交 JSON 响应以更新配额。 • 更新配额。 使用 PATCH作。 |
| begin |
将此资源的配额(服务限制)更新为请求的值。 • 若要获取特定资源的配额信息,请发送 GET 请求。 • 若要增加配额,请将 GET 响应中的限制字段更新为新值。 • 若要更新配额值,请向配额请求 API 提交 JSON 响应以更新配额。 • 更新配额。 使用 PATCH作。 |
| get(string, string, string, string, Quota |
获取资源的当前配额(服务限制)和使用情况。 可以使用 GET作的响应提交配额更新请求。 |
| list(string, string, string, Quota |
获取所有资源的当前配额(服务限制)和使用情况的列表。 可以利用列表配额作的响应来请求配额更新。 |
方法详细信息
beginCreateOrUpdate(string, string, string, string, CurrentQuotaLimitBase, QuotaCreateOrUpdateOptionalParams)
将资源的配额(服务限制)创建或更新为请求的值。 步骤:
- 发出获取请求以获取特定资源的配额信息。
- 若要增加配额,请将“获取请求”响应中的限制字段更新为新值。
- 将 JSON 提交到配额请求 API 以更新配额。 可以按如下所示构造“创建配额”请求。 PUT作可用于更新配额。
function beginCreateOrUpdate(subscriptionId: string, providerId: string, location: string, resourceName: string, createQuotaRequest: CurrentQuotaLimitBase, options?: QuotaCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<CurrentQuotaLimitBase>, CurrentQuotaLimitBase>>
参数
- subscriptionId
-
string
Azure 订阅 ID。
- providerId
-
string
Azure 资源提供程序 ID。
- location
-
string
Azure 区域。
- resourceName
-
string
资源提供程序的资源名称,例如 Microsoft.Compute、Sku 或 totalLowPriorityCores for Microsoft.MachineLearningServices 的 SKU 名称
- createQuotaRequest
- CurrentQuotaLimitBase
配额请求有效负载。
选项参数。
返回
Promise<@azure/core-lro.SimplePollerLike<OperationState<CurrentQuotaLimitBase>, CurrentQuotaLimitBase>>
beginCreateOrUpdateAndWait(string, string, string, string, CurrentQuotaLimitBase, QuotaCreateOrUpdateOptionalParams)
将资源的配额(服务限制)创建或更新为请求的值。 步骤:
- 发出获取请求以获取特定资源的配额信息。
- 若要增加配额,请将“获取请求”响应中的限制字段更新为新值。
- 将 JSON 提交到配额请求 API 以更新配额。 可以按如下所示构造“创建配额”请求。 PUT作可用于更新配额。
function beginCreateOrUpdateAndWait(subscriptionId: string, providerId: string, location: string, resourceName: string, createQuotaRequest: CurrentQuotaLimitBase, options?: QuotaCreateOrUpdateOptionalParams): Promise<CurrentQuotaLimitBase>
参数
- subscriptionId
-
string
Azure 订阅 ID。
- providerId
-
string
Azure 资源提供程序 ID。
- location
-
string
Azure 区域。
- resourceName
-
string
资源提供程序的资源名称,例如 Microsoft.Compute、Sku 或 totalLowPriorityCores for Microsoft.MachineLearningServices 的 SKU 名称
- createQuotaRequest
- CurrentQuotaLimitBase
配额请求有效负载。
选项参数。
返回
Promise<CurrentQuotaLimitBase>
beginUpdate(string, string, string, string, CurrentQuotaLimitBase, QuotaUpdateOptionalParams)
将此资源的配额(服务限制)更新为请求的值。 • 若要获取特定资源的配额信息,请发送 GET 请求。 • 若要增加配额,请将 GET 响应中的限制字段更新为新值。 • 若要更新配额值,请向配额请求 API 提交 JSON 响应以更新配额。 • 更新配额。 使用 PATCH作。
function beginUpdate(subscriptionId: string, providerId: string, location: string, resourceName: string, createQuotaRequest: CurrentQuotaLimitBase, options?: QuotaUpdateOptionalParams): Promise<SimplePollerLike<OperationState<CurrentQuotaLimitBase>, CurrentQuotaLimitBase>>
参数
- subscriptionId
-
string
Azure 订阅 ID。
- providerId
-
string
Azure 资源提供程序 ID。
- location
-
string
Azure 区域。
- resourceName
-
string
资源提供程序的资源名称,例如 Microsoft.Compute、Sku 或 totalLowPriorityCores for Microsoft.MachineLearningServices 的 SKU 名称
- createQuotaRequest
- CurrentQuotaLimitBase
配额请求的有效负载。
- options
- QuotaUpdateOptionalParams
选项参数。
返回
Promise<@azure/core-lro.SimplePollerLike<OperationState<CurrentQuotaLimitBase>, CurrentQuotaLimitBase>>
beginUpdateAndWait(string, string, string, string, CurrentQuotaLimitBase, QuotaUpdateOptionalParams)
将此资源的配额(服务限制)更新为请求的值。 • 若要获取特定资源的配额信息,请发送 GET 请求。 • 若要增加配额,请将 GET 响应中的限制字段更新为新值。 • 若要更新配额值,请向配额请求 API 提交 JSON 响应以更新配额。 • 更新配额。 使用 PATCH作。
function beginUpdateAndWait(subscriptionId: string, providerId: string, location: string, resourceName: string, createQuotaRequest: CurrentQuotaLimitBase, options?: QuotaUpdateOptionalParams): Promise<CurrentQuotaLimitBase>
参数
- subscriptionId
-
string
Azure 订阅 ID。
- providerId
-
string
Azure 资源提供程序 ID。
- location
-
string
Azure 区域。
- resourceName
-
string
资源提供程序的资源名称,例如 Microsoft.Compute、Sku 或 totalLowPriorityCores for Microsoft.MachineLearningServices 的 SKU 名称
- createQuotaRequest
- CurrentQuotaLimitBase
配额请求的有效负载。
- options
- QuotaUpdateOptionalParams
选项参数。
返回
Promise<CurrentQuotaLimitBase>
get(string, string, string, string, QuotaGetOptionalParams)
获取资源的当前配额(服务限制)和使用情况。 可以使用 GET作的响应提交配额更新请求。
function get(subscriptionId: string, providerId: string, location: string, resourceName: string, options?: QuotaGetOptionalParams): Promise<QuotaGetResponse>
参数
- subscriptionId
-
string
Azure 订阅 ID。
- providerId
-
string
Azure 资源提供程序 ID。
- location
-
string
Azure 区域。
- resourceName
-
string
资源提供程序的资源名称,例如 Microsoft.Compute、Sku 或 totalLowPriorityCores for Microsoft.MachineLearningServices 的 SKU 名称
- options
- QuotaGetOptionalParams
选项参数。
返回
Promise<QuotaGetResponse>
list(string, string, string, QuotaListOptionalParams)
获取所有资源的当前配额(服务限制)和使用情况的列表。 可以利用列表配额作的响应来请求配额更新。
function list(subscriptionId: string, providerId: string, location: string, options?: QuotaListOptionalParams): PagedAsyncIterableIterator<CurrentQuotaLimitBase, CurrentQuotaLimitBase[], PageSettings>
参数
- subscriptionId
-
string
Azure 订阅 ID。
- providerId
-
string
Azure 资源提供程序 ID。
- location
-
string
Azure 区域。
- options
- QuotaListOptionalParams
选项参数。