此接口已下线,无法使用。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求语法
PUT /api/v1/quotas/{nickname} HTTP/1.1
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
tenantId | string | 否 | 租户 id | 196871833188896 |
region | string | 否 | 地域 id。 | cn-shanghai |
AkProven | string | 否 | ak 换取凭证 | null |
nickname | string | 是 | 配额名称 | quota_a |
body | string | 否 | 请求体参数 | { "id": "0", "name": "a", "nickName": "VIRTUAL", "type": "", "status": "ON", "tenantId": "10001", "regionId": "cn-hangzhou", "parentId": "0", "cluster": "AT-ODPS-TEST3", "version": "", "billingPolicy": { "odpsSpecCode": "", "billingMethod": "subscription" }, "parameter": { "minCU": 40, "maxCU": 40, "adhocCU": 0, //弹性预留CU "elasticMinCU": 40, //非预留CU "elasticMaxCU": 40, "enablePreemptiveScheduling": false, "forceReservedMin": true, "enablePriority": false, "singleJobCULimit": 100, "adhocQuotaBeginTimeInSec": 1345, "adhocQuotaEndTimeInSec": 1234, "ignoreAdhocQuota": false }, "subQuotaInfoList": [ { "id": "1000048", "nickName": "WlmFuxiSecondaryOnlineQuotaTest", "name": "WlmFuxiSecondaryOnlineQuotaTest", "type": "FUXI_ONLINE", "status": "ON", "tenantId": "10001", "regionId": "cn-hangzhou", "parentId": "0", "cluster": "AT-ODPS-TEST3", "version": "", "billingPolicy": { "odpsSpecCode": "", "billingMethod": "subscription" }, "parameter": { "minCU": 40, "maxCU": 40, "adhocCU": 0, //弹性预留CU "elasticMinCU": 40, //非预留CU "elasticMaxCU": 40, "enablePreemptiveScheduling": false, "forceReservedMin": true, "enablePriority": false, "singleJobCULimit": 100, "adhocQuotaBeginTimeInSec": 1345, "adhocQuotaEndTimeInSec": 1234, "ignoreAdhocQuota": false } } ] } |
返回参数
示例
正常返回示例
JSON
格式
{
"requestId": "0bc12e6a16679892465424670db3eb",
"data": "success"
}
错误码
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 |
---|---|---|
2022-04-14 | 新增 OpenAPI | 查看变更详情 |