Subscription Usages - List By Location
지정된 위치에 있는 모든 구독 사용 메트릭을 가져옵니다.
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/usages?api-version=2021-11-01
URI 매개 변수
Name | In(다음 안에) | 필수 | 형식 | Description |
---|---|---|---|---|
location
|
path | True |
string |
리소스가 있는 지역의 이름입니다. |
subscription
|
path | True |
string |
Azure 구독을 식별하는 구독 ID입니다. |
api-version
|
query | True |
string |
요청에 사용할 API 버전입니다. |
응답
Name | 형식 | Description |
---|---|---|
200 OK |
구독 위치 사용량을 성공적으로 검색했습니다. |
|
Other Status Codes |
오류 응답: ***
|
예제
List subscription usages in the given location.
샘플 요청
샘플 응답
{
"value": [
{
"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"
},
{
"properties": {
"displayName": "Free Database Count per Subscription for West US",
"currentValue": 0,
"limit": 1,
"unit": "Count"
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Sql/locations/Onebox/usages/SubscriptionFreeDatabaseCount",
"name": "SubscriptionFreeDatabaseCount",
"type": "Microsoft.Sql/locations/usages"
},
{
"properties": {
"displayName": "Free to Basic Database Upgrade count-down in West US",
"currentValue": 365,
"limit": 365,
"unit": "Count"
},
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Sql/locations/Onebox/usages/SubscriptionFreeDatabaseDaysLeft",
"name": "SubscriptionFreeDatabaseDaysLeft",
"type": "Microsoft.Sql/locations/usages"
}
]
}
정의
Name | Description |
---|---|
Subscription |
위치에 있는 구독의 사용 메트릭입니다. |
Subscription |
위치의 구독 사용 메트릭 목록입니다. |
SubscriptionUsage
위치에 있는 구독의 사용 메트릭입니다.
Name | 형식 | Description |
---|---|---|
id |
string |
리소스 ID입니다. |
name |
string |
리소스 이름입니다. |
properties.currentValue |
number |
메트릭의 현재 값입니다. |
properties.displayName |
string |
사용자가 읽을 수 있는 메트릭 이름입니다. |
properties.limit |
number |
메트릭의 경계 값입니다. |
properties.unit |
string |
메트릭의 단위입니다. |
type |
string |
리소스 종류. |
SubscriptionUsageListResult
위치의 구독 사용 메트릭 목록입니다.
Name | 형식 | Description |
---|---|---|
nextLink |
string |
연결하여 결과의 다음 페이지를 검색합니다. |
value |
결과 배열입니다. |