创建Quota,首次开通MaxCompute 必须先创建后付费类型的Quota,如果创建的是预付费类型的Quota,会进行自动扣款。
接口说明
请确保在使用该接口前,已充分了解 MaxCompute 产品的收费方式和价格。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
POST /api/v1/quotas HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| chargeType |
string |
是 |
计费类型;后付费:payasyougo/预付费:subscription |
payasyougo |
| commodityData |
string |
否 |
配额商品规格 重要
仅在预付费(subscription)情况下需要填写
cu 最小单位为 50
ord_time 支持包月(month)和包年(year)
|
{"CU":50,"ord_time":"1:Month","autoRenew":false} |
| partNickName |
string |
否 |
重要 仅在预付费(subscription)情况下需要填写 |
MyQuota |
| commodityCode |
string |
是 |
商品 code;eg. 中国站: 后付费的商品 code 为 odps, 预付费的商品 code 为 odpsplus ; 国际站 :后付费的商品 code 为 odps_intl, 预付费的商品 code 为 odpsplus_intl; |
odps |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
LxOdpsCreateOrderResponse |
||
| requestId |
string |
请求 id。 |
0bc520ad17171208978521777d742c |
| data |
object |
返回参数 |
|
| nickName |
string |
quota 别名 |
os_PayAsYouGoQuota_p |
示例
正常返回示例
JSON格式
{
"requestId": "0bc520ad17171208978521777d742c",
"data": {
"nickName": "os_PayAsYouGoQuota_p"
}
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。