Creates a compute quota plan.
Operation description
Make sure that you fully understand the billing methods and pricing of MaxCompute elastic reserved CUs before you call this operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
odps:CreateQuotaPlan |
create |
*Quota
|
None | None |
Request syntax
POST /api/v1/quotas/{nickname}/computeQuotaPlan HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| nickname |
string |
Yes |
The nickname of the level-1 quota. |
os_ComputeQuota_p |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body parameters. |
|
| name |
string |
Yes |
The name of the quota plan. |
planA |
| quota |
object |
No |
The quota properties. |
|
| parameter |
object |
No |
The elastic reserved CU value of the level-1 quota. |
|
| elasticReservedCU |
integer |
Yes |
The elastic reserved CU value. Note
|
50 |
| subQuotaInfoList |
array<object> |
No |
The list of level-2 quotas. |
|
|
array<object> |
No |
The list of level-2 quotas. |
||
| nickName |
string |
Yes |
The nickname of the level-2 quota. |
os_ComputeQuota |
| parameter |
object |
No |
The CU configuration of the level-2 quota. |
|
| elasticReservedCU |
integer |
Yes |
The elastic reserved CU value. Note
|
50 |
| maxCU |
integer |
Yes |
The upper limit of reserved CUs. Note
|
50 |
| minCU |
integer |
Yes |
The guaranteed reserved CUs. Note
|
50 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| requestId |
string |
The request ID. |
0b87b7e716665825896565060e87a4 |
| httpCode |
integer |
The HTTP status code.
|
200 |
| errorCode |
string |
The error code. |
OBJECT_NOT_EXIST |
| errorMsg |
string |
The error message. |
this quota is not exist. |
| data |
string |
The returned result. |
success |
Examples
Success response
JSON format
{
"requestId": "0b87b7e716665825896565060e87a4",
"httpCode": 200,
"errorCode": "OBJECT_NOT_EXIST",
"errorMsg": "this quota is not exist.",
"data": "success"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.