你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Quota - Get
获取资源的当前配额(服务限制)和使用情况。 可以使用 GET作的响应提交配额更新请求。
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/resourceProviders/{providerId}/locations/{location}/serviceLimits/{resourceName}?api-version=2020-10-25
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
location
|
path | True |
string |
Azure 区域。 |
provider
|
path | True |
string |
Azure 资源提供程序 ID。 |
resource
|
path | True |
string |
资源提供程序的资源名称,例如 Microsoft.Compute、Sku 或 totalLowPriorityCores for Microsoft.MachineLearningServices 的 SKU 名称 |
subscription
|
path | True |
string |
Azure 订阅 ID。 |
api-version
|
query | True |
string |
API 版本。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
还行。 返回分页配额信息。 标头 ETag: string |
|
Other Status Codes |
响应中的错误说明。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
名称 | 说明 |
---|---|
user_impersonation | 模拟用户帐户 |
示例
Quotas_Request_ForCompute
示例请求
示例响应
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Capacity/resourceProviders/Microsoft.Compute/locations/eastus/serviceLimits/standardNDSFamily",
"name": "standardNDSFamily",
"type": "Microsoft.Capacity/ServiceLimits",
"properties": {
"limit": 10,
"unit": "Count",
"currentValue": 0,
"name": {
"value": "standardNDSFamily",
"localizedValue": "Standard NDS Family vCPUs"
}
}
}
定义
名称 | 说明 |
---|---|
Current |
配额属性。 |
Exception |
API 错误。 |
Quota |
资源的配额属性。 |
Resource |
资源提供程序提供的资源名称。 将此属性用于 quotaRequest 参数。 |
Resource |
资源类型的名称。 |
Service |
API 错误详细信息。 |
Service |
错误详细信息。 |
CurrentQuotaLimitBase
配额属性。
名称 | 类型 | 说明 |
---|---|---|
id |
string |
配额请求 ID。 |
name |
string |
配额请求的名称。 |
properties |
资源的配额属性。 |
|
type |
string |
资源类型。 “Microsoft.Capacity/ServiceLimits” |
ExceptionResponse
API 错误。
名称 | 类型 | 说明 |
---|---|---|
error |
API 错误详细信息。 |
QuotaProperties
资源的配额属性。
名称 | 类型 | 说明 |
---|---|---|
currentValue |
integer (int32) |
资源的当前使用值。 |
limit |
integer (int32) |
配额属性。 |
name |
资源提供程序提供的资源的名称。 将此属性用于 quotaRequests 资源作。 |
|
properties |
object |
指定资源提供程序的其他属性。 |
quotaPeriod |
string |
汇总配额使用情况值的时间段。 例如,P1D(每一天)、PT1M(每一分钟)和 PT1S(每一秒)。 此参数是可选的,因为对于某些资源(如计算),时间段无关紧要。 |
resourceType |
资源类型的名称。 |
|
unit |
string |
限制单位,如 计数 和 字节。 使用 GET 配额作响应中提供的单元字段。 |
ResourceName
资源提供程序提供的资源名称。 将此属性用于 quotaRequest 参数。
名称 | 类型 | 说明 |
---|---|---|
localizedValue |
string |
资源显示本地化名称。 |
value |
string |
资源名称。 |
ResourceType
资源类型的名称。
值 | 说明 |
---|---|
dedicated | |
lowPriority | |
serviceSpecific | |
shared | |
standard |
ServiceError
API 错误详细信息。
名称 | 类型 | 说明 |
---|---|---|
code |
string |
错误代码。 |
details |
错误详细信息的列表。 |
|
message |
string |
错误消息文本。 |
ServiceErrorDetail
错误详细信息。
名称 | 类型 | 说明 |
---|---|---|
code |
string |
错误代码。 |
message |
string |
错误消息。 |