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 或 totalLowPriorityCores for Microsoft.MachineLearningServices 的 SKU 名稱 |
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
類型:
oauth2
Flow:
implicit
授權 URL:
https://login.microsoftonline.com/common/oauth2/authorize
範圍
名稱 | Description |
---|---|
user_impersonation | 模擬您的用戶帳戶 |
範例
Quotas_Request_PatchForCompute
範例要求
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"
}
}
}
範例回覆
{
"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 (int32) |
資源的目前使用量值。 |
limit |
integer (int32) |
配額屬性。 |
name |
資源提供者提供的資源名稱。 將此屬性用於 quotaRequests 資源作業。 |
|
properties |
object |
指定之資源提供者的其他屬性。 |
quotaPeriod |
string |
摘要說明配額使用量值的時間週期。 例如,P1D(每一天)、PT1M(每一分鐘)和 PT1S(每一秒)。 此參數是選擇性的,因為對於某些資源,例如計算,時間周期無關緊要。 |
resourceType |
資源類型的名稱。 |
|
unit |
string |
限制單位,例如 計數 和 個字節。 使用 GET 配額作業回應中提供的單位欄位。 |
QuotaRequestState
配額要求狀態。
值 | Description |
---|---|
Accepted | |
Failed | |
InProgress | |
Invalid | |
Succeeded |
QuotaRequestSubmitResponse201
要求標識碼為已接受配額要求的回應。
名稱 | 類型 | Description |
---|---|---|
id |
string |
配額要求標識碼。 使用 requestId 參數來檢查要求狀態。 |
name |
string |
作業標識碼 |
properties.message |
string |
用戶易記的訊息。 |
properties.provisioningState |
配額要求狀態的詳細數據。 |
|
type |
string |
資源類型 |
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 |
錯誤訊息。 |