CreateQuota
Creates a resource quota.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
pai:CreateQuota |
none |
*All Resource
|
None | None |
Request syntax
POST /api/v1/quotas HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body parameters. |
|
| QuotaName |
string |
No |
The name of the quota. |
test-quota |
| ResourceType |
string |
No |
The resource type of the quota. Valid values: Lingjun, ECS, and ACS. Default value: ECS. |
ECS |
| ParentQuotaId |
string |
No |
The ID of the parent quota.
|
quota1ci8g793pgm |
| ResourceGroupIds |
array |
No |
The list of dedicated resource groups. Constraints:
|
|
|
string |
No |
The ID of the resource group. |
rgl593id9qqwkmbr |
|
| AllocateStrategy |
string |
No |
The allocation strategy of the quota. Currently, only ByNodeSpecs is supported. |
ByNodeSpecs |
| Min | ResourceSpec |
No |
The minimum quota configuration. Details:
|
|
| Description |
string |
No |
The description of the quota. |
this is a test quota |
| Labels |
array |
No |
The labels of the quota. |
|
| Label |
No |
The label. |
||
| QuotaConfig | QuotaConfig |
No |
The quota configuration constraints:
|
|
| QueueStrategy |
string |
No |
Four queuing policies are supported for the quota. Valid values:
|
PaiStrategyIntelligent |
| ClusterSpec | ClusterSpec |
No |
The specifications of the native cluster for the resource quota. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
CBF05F13-B24C-5129-9048-4FA684DCD579 |
| QuotaId |
string |
The ID of the resource quota. |
quotad2kd8ljpsno |
Examples
Success response
JSON format
{
"RequestId": "CBF05F13-B24C-5129-9048-4FA684DCD579",
"QuotaId": "quotad2kd8ljpsno"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.