共用方式為


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 區域。

providerId
path True

string

Azure 資源提供者標識碼。

resourceName
path True

string

資源提供者的資源名稱,例如 Microsoft.Compute 的 SKU 名稱、Sku 或 Microsoft.MachineLearningServices 的 TotalLowPriorityCores

subscriptionId
path True

string

Azure 訂用帳戶識別碼。

api-version
query True

string

API 版本。

回應

名稱 類型 Description
200 OK

CurrentQuotaLimitBase

正常。 傳回編頁配額資訊。

標題

ETag: string

Other Status Codes

ExceptionResponse

回應中的錯誤描述。

安全性

azure_auth

Azure Active Directory OAuth2 Flow

類型: oauth2
Flow: implicit
授權 URL: https://login.microsoftonline.com/common/oauth2/authorize

範圍

名稱 Description
user_impersonation 模擬您的用戶帳戶

範例

Quotas_Request_ForCompute

範例要求

GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Capacity/resourceProviders/Microsoft.Compute/locations/eastus/serviceLimits/standardNDSFamily?api-version=2020-10-25

範例回覆

{
  "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
CurrentQuotaLimitBase

配額屬性。

ExceptionResponse

API 錯誤。

QuotaProperties

資源的配額屬性。

ResourceName

資源提供者所提供的資源名稱。 將此屬性用於 quotaRequest 參數。

ResourceType

資源類型的名稱。

ServiceError

API 錯誤詳細數據。

ServiceErrorDetail

錯誤詳細資料。

CurrentQuotaLimitBase

配額屬性。

名稱 類型 Description
id

string

配額要求標識碼。

name

string

配額要求的名稱。

properties

QuotaProperties

資源的配額屬性。

type

string

資源類型。 “Microsoft.Capacity/ServiceLimits”

ExceptionResponse

API 錯誤。

名稱 類型 Description
error

ServiceError

API 錯誤詳細數據。

QuotaProperties

資源的配額屬性。

名稱 類型 Description
currentValue

integer

資源的目前使用量值。

limit

integer

配額屬性。

name

ResourceName

資源提供者提供的資源名稱。 將此屬性用於 quotaRequests 資源作業。

properties

object

指定之資源提供者的其他屬性。

quotaPeriod

string

配額使用量值的摘要時間週期。 例如,P1D 每一天 () 、PT1M (每一分鐘) ,以及每一秒的 PT1S () 。 此參數是選擇性的,因為對於某些資源,例如計算,時間周期無關。

resourceType

ResourceType

資源類型的名稱。

unit

string

限制單位,例如 計數位元組。 使用 GET 配額作業回應中提供的單位欄位。

ResourceName

資源提供者所提供的資源名稱。 將此屬性用於 quotaRequest 參數。

名稱 類型 Description
localizedValue

string

資源會顯示本地化的名稱。

value

string

資源名稱。

ResourceType

資源類型的名稱。

名稱 類型 Description
dedicated

string

lowPriority

string

serviceSpecific

string

shared

string

standard

string

ServiceError

API 錯誤詳細數據。

名稱 類型 Description
code

string

錯誤碼。

details

ServiceErrorDetail[]

錯誤詳細數據的清單。

message

string

錯誤訊息文字。

ServiceErrorDetail

錯誤詳細資料。

名稱 類型 Description
code

string

錯誤碼。

message

string

錯誤訊息。