Creates a quota. When you activate MaxCompute for the first time, you must first create a pay-as-you-go quota. If you create a subscription quota, automatic payment is deducted.
Operation description
Before using this operation, make sure that you fully understand the billing method and pricing of MaxCompute.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
odps:CreateQuota |
create |
*Quota
|
None | None |
Request syntax
POST /api/v1/quotas HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| chargeType |
string |
Yes |
The billing method. Valid values: payasyougo (pay-as-you-go) and subscription. |
payasyougo |
| commodityData |
string |
No |
The commodity specifications of the quota. Important
|
{"CU":50,"ord_time":"1:Month","autoRenew":false} |
| partNickName |
string |
No |
Important This parameter is required only for subscription quotas. |
MyQuota |
| commodityCode |
string |
Yes |
The commodity code. Example: On Alibaba Cloud China Website (www.aliyun.com), the commodity code for pay-as-you-go is odps and the commodity code for subscription is odpsplus. On Alibaba Cloud International Website (www.alibabacloud.com), the commodity code for pay-as-you-go is odps_intl and the commodity code for subscription is odpsplus_intl. |
odps |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
LxOdpsCreateOrderResponse |
||
| requestId |
string |
The request ID. |
0bc520ad17171208978521777d742c |
| data |
object |
The response parameters. |
|
| nickName |
string |
The alias of the quota. |
os_PayAsYouGoQuota_p |
Examples
Success response
JSON format
{
"requestId": "0bc520ad17171208978521777d742c",
"data": {
"nickName": "os_PayAsYouGoQuota_p"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.