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 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
location
|
path | True |
string |
Azure 區域。 |
provider
|
path | True |
string |
Azure 資源提供者標識碼。 |
resource
|
path | True |
string |
資源提供者的資源名稱,例如 Microsoft.Compute、Sku 或 totalLowPriorityCores for Microsoft.MachineLearningServices 的 SKU 名稱 |
subscription
|
path | True |
string |
Azure 訂用帳戶識別碼。 |
api-version
|
query | True |
string |
API 版本。 |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK |
還行。 傳回分頁配額資訊。 標題 ETag: string |
|
Other Status Codes |
回應中的錯誤描述。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow
類型:
oauth2
Flow:
implicit
授權 URL:
https://login.microsoftonline.com/common/oauth2/authorize
範圍
名稱 | Description |
---|---|
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"
}
}
}
定義
名稱 | Description |
---|---|
Current |
配額屬性。 |
Exception |
API 錯誤。 |
Quota |
資源的配額屬性。 |
Resource |
資源提供者所提供的資源名稱。 將此屬性用於 quotaRequest 參數。 |
Resource |
資源類型的名稱。 |
Service |
API 錯誤詳細數據。 |
Service |
錯誤詳細數據。 |
CurrentQuotaLimitBase
配額屬性。
名稱 | 類型 | Description |
---|---|---|
id |
string |
配額要求標識碼。 |
name |
string |
配額要求的名稱。 |
properties |
資源的配額屬性。 |
|
type |
string |
資源類型。 “Microsoft.Capacity/ServiceLimits” |
ExceptionResponse
API 錯誤。
名稱 | 類型 | Description |
---|---|---|
error |
API 錯誤詳細數據。 |
QuotaProperties
資源的配額屬性。
名稱 | 類型 | Description |
---|---|---|
currentValue |
integer (int32) |
資源的目前使用量值。 |
limit |
integer (int32) |
配額屬性。 |
name |
資源提供者提供的資源名稱。 將此屬性用於 quotaRequests 資源作業。 |
|
properties |
object |
指定之資源提供者的其他屬性。 |
quotaPeriod |
string |
摘要說明配額使用量值的時間週期。 例如,P1D(每一天)、PT1M(每一分鐘)和 PT1S(每一秒)。 此參數是選擇性的,因為對於某些資源,例如計算,時間周期無關緊要。 |
resourceType |
資源類型的名稱。 |
|
unit |
string |
限制單位,例如 計數 和 個字節。 使用 GET 配額作業回應中提供的單位欄位。 |
ResourceName
資源提供者所提供的資源名稱。 將此屬性用於 quotaRequest 參數。
名稱 | 類型 | Description |
---|---|---|
localizedValue |
string |
資源會顯示本地化的名稱。 |
value |
string |
資源名稱。 |
ResourceType
資源類型的名稱。
值 | Description |
---|---|
dedicated | |
lowPriority | |
serviceSpecific | |
shared | |
standard |
ServiceError
API 錯誤詳細數據。
名稱 | 類型 | Description |
---|---|---|
code |
string |
錯誤碼。 |
details |
錯誤詳細數據的清單。 |
|
message |
string |
錯誤訊息文字。 |
ServiceErrorDetail
錯誤詳細數據。
名稱 | 類型 | Description |
---|---|---|
code |
string |
錯誤碼。 |
message |
string |
錯誤訊息。 |