你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Subscription Usages - Get
获取订阅使用情况指标。
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/usages/{usageName}?api-version=2023-08-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
location
|
path | True |
string |
资源所在的区域的名称。 |
subscription
|
path | True |
string |
标识 Azure 订阅的订阅 ID。 |
usage
|
path | True |
string |
要返回的使用情况指标的名称。 |
api-version
|
query | True |
string |
要用于请求的 API 版本。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
已成功检索到特定订阅位置使用情况。 |
|
Other Status Codes |
错误响应: ***
|
示例
Get specific subscription usage in the given location.
示例请求
GET https://management.azure.com/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Sql/locations/WestUS/usages/ServerQuota?api-version=2023-08-01
示例响应
{
"properties": {
"displayName": "Regional Server Quota for West US",
"currentValue": 1,
"limit": 20,
"unit": "Count"
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Sql/locations/Onebox/usages/ServerQuota",
"name": "ServerQuota",
"type": "Microsoft.Sql/locations/usages"
}
定义
名称 | 说明 |
---|---|
Error |
资源管理错误附加信息。 |
Error |
错误详细信息。 |
Error |
错误响应 |
Subscription |
位置中订阅的使用情况指标。 |
ErrorAdditionalInfo
资源管理错误附加信息。
名称 | 类型 | 说明 |
---|---|---|
info |
object |
其他信息。 |
type |
string |
其他信息类型。 |
ErrorDetail
错误详细信息。
名称 | 类型 | 说明 |
---|---|---|
additionalInfo |
错误附加信息。 |
|
code |
string |
错误代码。 |
details |
错误详细信息。 |
|
message |
string |
错误消息。 |
target |
string |
错误目标。 |
ErrorResponse
错误响应
名称 | 类型 | 说明 |
---|---|---|
error |
错误对象。 |
SubscriptionUsage
位置中订阅的使用情况指标。
名称 | 类型 | 说明 |
---|---|---|
id |
string |
资源 ID。 |
name |
string |
资源名称。 |
properties.currentValue |
number (double) |
指标的当前值。 |
properties.displayName |
string |
指标的用户可读名称。 |
properties.limit |
number (double) |
指标的边界值。 |
properties.unit |
string |
指标的单位。 |
type |
string |
资源类型。 |