Quota - Update
將此資源的配額 (服務限制更新為要求的值) 。
• 若要取得特定資源的配額資訊,請傳送 GET 要求。
• 若要增加配額,請將 GET 回應中的限制欄位更新為新的值。
• 若要更新配額值,請將 JSON 回應提交至配額要求 API 以更新配額。
• 更新配額。 使用 PATCH 作業。
PATCH 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 名稱、Sku 或 Microsoft.MachineLearningServices 的 TotalLowPriorityCores |
subscription
|
path | True |
string |
Azure 訂用帳戶識別碼。 |
api-version
|
query | True |
string |
API 版本。 |
要求本文
名稱 | 類型 | Description |
---|---|---|
properties |
資源的配額屬性。 |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK |
正常。 傳回配額要求的詳細數據。 |
|
201 Created |
接受要求並正在處理。 使用 requestId 參數來檢查狀態。 |
|
Other Status Codes |
回應中的錯誤描述。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
名稱 | Description |
---|---|
user_impersonation | 模擬您的用戶帳戶 |
範例
Quotas_Request_PatchForCompute
Sample Request
PATCH https://management.azure.com/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Capacity/resourceProviders/Microsoft.Compute/locations/eastus/serviceLimits/standardFSv2Family?api-version=2020-10-25
{
"properties": {
"limit": 200,
"unit": "Count",
"name": {
"value": "standardFSv2Family"
}
}
}
Sample Response
{
"id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Capacity/resourceProviders/Microsoft.Compute/locations/eastus/serviceLimitsRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605",
"name": "2B5C8515-37D8-4B6A-879B-CD641A2CF605",
"type": "Microsoft.Capacity/ServiceLimits",
"properties": {
"provisioningState": "InProgress",
"message": ""
}
}
{
"id": "/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Capacity/resourceProviders/Microsoft.Compute/locations/eastus/serviceLimitsRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605",
"name": "2B5C8515-37D8-4B6A-879B-CD641A2CF605",
"type": "Microsoft.Capacity/serviceLimits",
"properties": {
"limit": 200,
"unit": "Count",
"currentValue": 160,
"name": {
"value": "standardFSv2Family",
"localizedValue": "Standard FSv2 Family vCPUs"
},
"quotaPeriod": "",
"properties": {}
}
}
定義
名稱 | Description |
---|---|
Current |
配額屬性。 |
Exception |
API 錯誤。 |
Quota |
資源的配額屬性。 |
Quota |
配額要求狀態。 |
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 |
資源的目前使用量值。 |
limit |
integer |
配額屬性。 |
name |
資源提供者提供的資源名稱。 將此屬性用於 quotaRequests 資源作業。 |
|
properties |
object |
指定之資源提供者的其他屬性。 |
quotaPeriod |
string |
配額使用量值的摘要時間週期。 例如,P1D 每一天 () 、PT1M (每一分鐘) ,以及每一秒的 PT1S () 。 此參數是選擇性的,因為對於某些資源,例如計算,時間周期無關。 |
resourceType |
資源類型的名稱。 |
|
unit |
string |
限制單位,例如 計數 和 位元組。 使用 GET 配額作業回應中提供的單位欄位。 |
QuotaRequestState
配額要求狀態。
名稱 | 類型 | Description |
---|---|---|
Accepted |
string |
|
Failed |
string |
|
InProgress |
string |
|
Invalid |
string |
|
Succeeded |
string |
QuotaRequestSubmitResponse201
回應,其中包含已接受配額要求的要求標識符。
名稱 | 類型 | Description |
---|---|---|
id |
string |
配額要求標識碼。 使用 requestId 參數來檢查要求狀態。 |
name |
string |
作業識別碼 |
properties.message |
string |
用戶易記的訊息。 |
properties.provisioningState |
配額要求狀態的詳細數據。 |
|
type |
string |
資源類型 |
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 |
錯誤詳細數據的清單。 |
|
message |
string |
錯誤訊息文字。 |
ServiceErrorDetail
錯誤詳細資料。
名稱 | 類型 | Description |
---|---|---|
code |
string |
錯誤碼。 |
message |
string |
錯誤訊息。 |