Call the CreateQuota operation to create a 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. |
|
| 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 IDs of the dedicated resource groups. The following constraints apply:
|
|
|
string |
No |
The ID of the resource group. |
rgl593id9qqwkmbr |
|
| AllocateStrategy |
string |
No |
The allocation strategy for the quota. Only |
ByNodeSpecs |
| Min | ResourceSpec |
No |
The minimum resources for the quota. You can define this in one of the following ways:
Constraints:
|
|
| Description |
string |
No |
The description of the quota. |
this is a test quota |
| Labels |
array |
No |
The tags for the quota. |
|
| Label |
No |
The tag. |
||
| QuotaConfig | QuotaConfig |
No |
Constraints for the
|
|
| QueueStrategy |
string |
No |
The queuing strategy for the quota. Four strategies are supported:
|
PaiStrategyIntelligent |
| ClusterSpec |
ClusterSpec |
No |
The native cluster specification for the quota. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response schema. |
||
| RequestId |
string |
The request ID. |
CBF05F13-B24C-5129-9048-4FA684DCD579 |
| QuotaId |
string |
The quota ID. |
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.