Lista os planos de cota de computação.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
odps:ListQuotasPlans |
list |
*Quota
|
Nenhuma | Nenhuma |
Sintaxe da solicitação
GET /api/v1/quotas/{nickname}/computeQuotaPlan HTTP/1.1
Parâmetros de caminho
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| nickname |
string |
Sim |
O apelido da cota de nível 1. |
os_MyQuota_p |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
Nenhum parâmetro necessário.
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
PopResult. |
||
| requestId |
string |
O ID da solicitação. |
0bc3b4ae16685836687916212e7850 |
| httpCode |
integer |
O código de status HTTP retornado. |
200 |
| errorCode |
string |
O código de erro. |
OBJECT_NOT_EXIST |
| errorMsg |
string |
A mensagem de erro. |
This object does not exist. |
| data |
object |
Os dados retornados. |
|
| planList |
array<object> |
A lista de planos de cota. |
|
|
array<object> |
|||
| name |
string |
The name of the quota plan. |
planA |
| createTime |
string |
The time when the plan was created. |
1731394621890 |
| quota |
object |
The quota properties. |
|
| subQuotaInfoList |
array<object> |
The list of level-2 quotas. |
|
|
array<object> |
|||
| id |
string |
The ID of the level-2 quota. |
6790 |
| name |
string |
The name of the level-2 quota. |
dp_cn_shanghai_1702627945_p |
| nickName |
string |
The nickname of the level-2 quota. |
os_MyQuota |
| type |
string |
The quota type. |
FUXI_ONLINE |
| status |
string |
The resource status. |
ON |
| tenantId |
string |
The tenant ID. |
478403690625249 |
| regionId |
string |
The region ID. |
cn-beijing |
| cluster |
string |
The cluster ID. |
AT-120N |
| version |
string |
The version number. |
2056 |
| parameter |
object |
The quota configuration parameters. |
{ "enablePriority": false, "minCU": 25, "adhocCU": 0, "elasticReservedCU": 0, "forceReservedMin": false, "maxCU": 50, "schedulerType": "Fifo" } |
| minCU |
integer |
||
| elasticReservedCU |
integer |
||
| maxCU |
integer |
||
| createTime |
integer |
The time when the quota was created. |
1730946421757 |
| creatorId |
string |
The creator of the resource. This is the UID of an Alibaba Cloud account. |
672863518 |
| id |
string |
The ID of the level-1 quota. |
186 |
| name |
string |
The name of the level-1 quota. |
dp_cn_hangzhou_1717465943_p |
| nickName |
string |
The nickname of the level-1 quota. |
os_MyQuota_p |
| type |
string |
This corresponds to the resourceSystemType field of the control cluster. |
FUXI_ONLINE |
| status |
string |
The resource status. |
ON |
| tenantId |
string |
The tenant ID. |
478403690625249 |
| regionId |
string |
The region ID. |
cn-beijing |
| cluster |
string |
The cluster ID. |
AT-120N |
| version |
string |
The version. |
2056 |
| parameter |
object |
The quota configuration parameters. |
{ "enablePriority": false, "minCU": 25, "adhocCU": 0, "elasticReservedCU": 0, "forceReservedMin": false, "maxCU": 50, "schedulerType": "Fifo" } |
| minCU |
integer |
||
| elasticReservedCU |
integer |
||
| maxCU |
integer |
||
| createTime |
integer |
The time when the quota was created. |
1730247361356 |
| creatorId |
string |
The creator of the resource. This is the UID of an Alibaba Cloud account. |
672863518 |
Exemplos
Resposta de sucesso
JSON formato
{
"requestId": "0bc3b4ae16685836687916212e7850",
"httpCode": 200,
"errorCode": "OBJECT_NOT_EXIST",
"errorMsg": "This object does not exist.",
"data": {
"planList": [
{
"name": "planA",
"createTime": "1731394621890",
"quota": {
"subQuotaInfoList": [
{
"id": "6790",
"name": "dp_cn_shanghai_1702627945_p",
"nickName": "os_MyQuota",
"type": "FUXI_ONLINE",
"status": "ON",
"tenantId": "478403690625249",
"regionId": "cn-beijing",
"cluster": "AT-120N\n",
"version": "2056",
"parameter": {
"minCU": 0,
"elasticReservedCU": 0,
"maxCU": 0
},
"createTime": 1730946421757,
"creatorId": "672863518"
}
],
"id": "186",
"name": "dp_cn_hangzhou_1717465943_p",
"nickName": "os_MyQuota_p",
"type": "FUXI_ONLINE",
"status": "ON",
"tenantId": "478403690625249",
"regionId": "cn-beijing",
"cluster": "AT-120N\n",
"version": "2056",
"parameter": {
"minCU": 0,
"elasticReservedCU": 0,
"maxCU": 0
},
"createTime": 1730247361356,
"creatorId": "672863518"
}
}
]
}
}
Códigos de erro
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.