Quota - Update
将此资源的配额(服务限制)更新为请求的值。
• 若要获取特定资源的配额信息,请发送 GET 请求。
• 若要增加配额,请将 GET 响应中的限制字段更新为新值。
• 若要更新配额值,请向配额请求 API 提交 JSON 响应以更新配额。
• 更新配额。 使用 PATCH作。
PATCH https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/resourceProviders/{providerId}/locations/{location}/serviceLimits/{resourceName}?api-version=2020-10-25
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
location
|
path | True |
string |
Azure 区域。 |
|
provider
|
path | True |
string |
Azure 资源提供程序 ID。 |
|
resource
|
path | True |
string |
资源提供程序的资源名称,例如 Microsoft.Compute、Sku 或 totalLowPriorityCores for Microsoft.MachineLearningServices 的 SKU 名称 |
|
subscription
|
path | True |
string |
Azure 订阅 ID。 |
|
api-version
|
query | True |
string |
API 版本。 |
请求正文
| 名称 | 类型 | 说明 |
|---|---|---|
| properties |
资源的配额属性。 |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 OK |
还行。 返回配额请求的详细信息。 |
|
| 201 Created |
请求已接受并正在处理。 使用 requestId 参数检查状态。 |
|
| Other Status Codes |
响应中的错误说明。 |
安全性
azure_auth
Azure Active Directory OAuth2 流
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
| 名称 | 说明 |
|---|---|
| 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": {}
}
}
定义
| 名称 | 说明 |
|---|---|
|
Current |
配额属性。 |
|
Exception |
API 错误。 |
|
Quota |
资源的配额属性。 |
|
Quota |
配额请求状态。 |
|
Quota |
接受配额请求的请求 ID 的响应。 |
|
Resource |
资源提供程序提供的资源名称。 将此属性用于 quotaRequest 参数。 |
|
Resource |
资源类型的名称。 |
|
Service |
API 错误详细信息。 |
|
Service |
错误详细信息。 |
CurrentQuotaLimitBase
配额属性。
| 名称 | 类型 | 说明 |
|---|---|---|
| id |
string |
配额请求 ID。 |
| name |
string |
配额请求的名称。 |
| properties |
资源的配额属性。 |
|
| type |
string |
资源类型。 “Microsoft.Capacity/ServiceLimits” |
ExceptionResponse
API 错误。
| 名称 | 类型 | 说明 |
|---|---|---|
| error |
API 错误详细信息。 |
QuotaProperties
资源的配额属性。
| 名称 | 类型 | 说明 |
|---|---|---|
| currentValue |
integer (int32) |
资源的当前使用值。 |
| limit |
integer (int32) |
配额属性。 |
| name |
资源提供程序提供的资源的名称。 将此属性用于 quotaRequests 资源作。 |
|
| properties |
object |
指定资源提供程序的其他属性。 |
| quotaPeriod |
string |
汇总配额使用情况值的时间段。 例如,P1D(每一天)、PT1M(每一分钟)和 PT1S(每一秒)。 此参数是可选的,因为对于某些资源(如计算),时间段无关紧要。 |
| resourceType |
资源类型的名称。 |
|
| unit |
string |
限制单位,如 计数 和 字节。 使用 GET 配额作响应中提供的单元字段。 |
QuotaRequestState
配额请求状态。
| 值 | 说明 |
|---|---|
| Accepted | |
| Invalid | |
| Succeeded | |
| Failed | |
| InProgress |
QuotaRequestSubmitResponse201
接受配额请求的请求 ID 的响应。
| 名称 | 类型 | 说明 |
|---|---|---|
| id |
string |
配额请求 ID。 使用 requestId 参数检查请求状态。 |
| name |
string |
作 ID |
| properties.message |
string |
用户友好的消息。 |
| properties.provisioningState |
配额请求状态的详细信息。 |
|
| type |
string |
资源类型 |
ResourceName
资源提供程序提供的资源名称。 将此属性用于 quotaRequest 参数。
| 名称 | 类型 | 说明 |
|---|---|---|
| localizedValue |
string |
资源显示本地化名称。 |
| value |
string |
资源名称。 |
ResourceType
资源类型的名称。
| 值 | 说明 |
|---|---|
| standard | |
| dedicated | |
| lowPriority | |
| shared | |
| serviceSpecific |
ServiceError
API 错误详细信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| code |
string |
错误代码。 |
| details |
错误详细信息的列表。 |
|
| message |
string |
错误消息文本。 |
ServiceErrorDetail
错误详细信息。
| 名称 | 类型 | 说明 |
|---|---|---|
| code |
string |
错误代码。 |
| message |
string |
错误消息。 |