Subscription Usages - Get
Abonelik kullanım ölçümünü alır.
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/usages/{usageName}?api-version=2023-08-01
URI Parametreleri
| Name | İçinde | Gerekli | Tür | Description |
|---|---|---|---|---|
|
location
|
path | True |
string |
Kaynağın bulunduğu bölgenin adı. |
|
subscription
|
path | True |
string |
Azure aboneliğini tanımlayan abonelik kimliği. |
|
usage
|
path | True |
string |
Döndürülecek kullanım ölçümünün adı. |
|
api-version
|
query | True |
string |
İstek için kullanılacak API sürümü. |
Yanıtlar
| Name | Tür | Description |
|---|---|---|
| 200 OK |
Belirli abonelik konumu kullanımı başarıyla alındı. |
|
| Other Status Codes |
Hata Yanıtları: ***
|
Örnekler
Get specific subscription usage in the given location.
Örnek isteği
Örnek yanıt
{
"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"
}
Tanımlar
| Name | Description |
|---|---|
|
Error |
Kaynak yönetimi hatası ek bilgileri. |
|
Error |
Hata ayrıntısı. |
|
Error |
Hata yanıtı |
|
Subscription |
Bir Konumdaki Aboneliğin Kullanım Ölçümü. |
ErrorAdditionalInfo
Kaynak yönetimi hatası ek bilgileri.
| Name | Tür | Description |
|---|---|---|
| info |
object |
Ek bilgiler. |
| type |
string |
Ek bilgi türü. |
ErrorDetail
Hata ayrıntısı.
| Name | Tür | Description |
|---|---|---|
| additionalInfo |
Hata ek bilgileri. |
|
| code |
string |
Hata kodu. |
| details |
Hata ayrıntıları. |
|
| message |
string |
Hata iletisi. |
| target |
string |
Hata hedefi. |
ErrorResponse
Hata yanıtı
| Name | Tür | Description |
|---|---|---|
| error |
Hata nesnesi. |
SubscriptionUsage
Bir Konumdaki Aboneliğin Kullanım Ölçümü.
| Name | Tür | Description |
|---|---|---|
| id |
string |
Kaynak Kimliği. |
| name |
string |
Kaynak adı. |
| properties.currentValue |
number (double) |
Ölçümün geçerli değeri. |
| properties.displayName |
string |
Ölçümün kullanıcı tarafından okunabilir adı. |
| properties.limit |
number (double) |
Ölçümün sınır değeri. |
| properties.unit |
string |
Ölçümün birimi. |
| type |
string |
Kaynak türü. |