获取单个计算Quota计划的详细信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
odps:GetQuotaPlan |
get |
*Quota
|
无 | 无 |
请求语法
GET /api/v1/quotas/{nickname}/computeQuotaPlan/{planName} HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| nickname |
string |
是 |
一级 Quota 昵称。 |
os_ComputeQuota_p |
| planName |
string |
是 |
Quota 计划名称。 |
planA |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
当前API无需请求参数
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
请求返回参数。 |
||
| requestId |
string |
请求 ID。 |
EA1320AB-7766-5EC7-B0F6-8B20E2298567 |
| httpCode |
integer |
HTTP 状态码。
|
200 |
| errorCode |
string |
错误码。 |
QUOTA_PLAN_NOT_FOUND |
| errorMsg |
string |
错误信息。 |
plan \"***\" does not exist |
| data |
object |
返回结果。 |
|
| name |
string |
Quota 计划名称。 |
planA |
| createTime |
string |
创建时间。 |
1730946421757 |
| quota |
object |
Quota 属性。 |
|
| subQuotaInfoList |
array<object> |
二级 Quota 列表。 |
|
|
array<object> |
二级 Quota 列表。 |
||
| id |
string |
二级 Quota ID。 |
10940 |
| name |
string |
二级 Quota 名称。 |
dp_cn_shanghai_1696659792_p |
| nickName |
string |
二级 Quota 昵称。 |
subquotaA |
| type |
string |
对应控制集群的 resourceSystemType 字段。 |
FUXI_ONLINE |
| status |
string |
资源状态。 |
ON |
| tenantId |
string |
租户 ID。 |
478403690625249 |
| regionId |
string |
地域 ID。 |
cn-beijing |
| cluster |
string |
集群 ID。 |
AT-120N |
| version |
string |
版本号。 |
1386 |
| parameter |
object |
CU 值参数。 |
|
| elasticReservedCU |
integer |
弹性预留 CU 值。 |
50 |
| maxCU |
integer |
预留 CU 上限。 |
50 |
| minCU |
integer |
预留 CU 保障。 |
50 |
| schedulerType |
string |
调度策略。 |
Fifo/Fair |
| singleJobCULimit |
integer |
单作业 CU 上限。 |
50 |
| forceReservedMin |
boolean |
是否独占。 |
true/false |
| enablePriority |
boolean |
开启优先级。 |
true/false |
| createTime |
integer |
创建时间。 |
1718155201628 |
| creatorId |
string |
创建者云账号 UID。 |
672863518 |
| id |
string |
一级 Quota ID。 |
2413 |
| name |
string |
一级 Quota 名称。 |
quota_a |
| nickName |
string |
一级 Quota 昵称。 |
quota_nickname |
| type |
string |
对应控制集群的 resourceSystemType 字段。 |
FUXI_ONLINE |
| status |
string |
资源状态。 |
ON |
| tenantId |
string |
租户 ID。 |
478403690625249 |
| regionId |
string |
区域 ID。 |
cn-beijing |
| cluster |
string |
集群 ID。 |
AT-120N |
| version |
string |
版本号。 |
1964 |
| parameter |
object |
一级 quota 的 CU 值参数。 |
|
| maxCU |
integer |
预留 CU 上限。 |
50 |
| minCU |
integer |
预留 CU 保障。 |
50 |
| elasticReservedCU |
integer |
弹性预留 CU 值。 |
50 |
| createTime |
integer |
创建时间。 |
1719886322347 |
| creatorId |
string |
创建者云账号 UID。 |
672863518 |
| isEffective |
boolean |
当前是否生效。 说明
|
true/false |
示例
正常返回示例
JSON格式
{
"requestId": "EA1320AB-7766-5EC7-B0F6-8B20E2298567",
"httpCode": 200,
"errorCode": "QUOTA_PLAN_NOT_FOUND",
"errorMsg": "plan \\\"***\\\" does not exist",
"data": {
"name": "planA",
"createTime": "1730946421757",
"quota": {
"subQuotaInfoList": [
{
"id": "10940",
"name": "dp_cn_shanghai_1696659792_p",
"nickName": "subquotaA",
"type": "FUXI_ONLINE",
"status": "ON",
"tenantId": "478403690625249",
"regionId": "cn-beijing",
"cluster": "AT-120N\n",
"version": "1386",
"parameter": {
"elasticReservedCU": 50,
"maxCU": 50,
"minCU": 50,
"schedulerType": "Fifo/Fair",
"singleJobCULimit": 50,
"forceReservedMin": true,
"enablePriority": true
},
"createTime": 1718155201628,
"creatorId": "672863518"
}
],
"id": "2413",
"name": "quota_a\n",
"nickName": "quota_nickname",
"type": "FUXI_ONLINE",
"status": "ON",
"tenantId": "478403690625249",
"regionId": "cn-beijing",
"cluster": "AT-120N\n",
"version": "1964",
"parameter": {
"maxCU": 50,
"minCU": 50,
"elasticReservedCU": 50
},
"createTime": 1719886322347,
"creatorId": "672863518"
},
"isEffective": true
}
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。