Obtém informações detalhadas de um único plano 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:GetQuotaPlan |
get |
*Quota
|
Nenhuma | Nenhuma |
Sintaxe da solicitação
GET /api/v1/quotas/{nickname}/computeQuotaPlan/{planName} HTTP/1.1
Parâmetros de caminho
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| nickname |
string |
Sim |
O apelido da cota de computação de nível 1. |
os_ComputeQuota_p |
| planName |
string |
Sim |
O nome do plano de cota. |
planA |
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 |
|||
| requestId |
string |
O ID da solicitação. |
EA1320AB-7766-5EC7-B0F6-8B20E2298567 |
| httpCode |
integer |
O código de status HTTP.\n\n- 1xx: resposta informativa. A solicitação foi recebida e está sendo processada.\n\n- 2xx: sucesso. A solicitação foi recebida, compreendida e aceita com sucesso pelo servidor.\n\n- 3xx: redirecionamento. A solicitação foi redirecionada e ações adicionais são necessárias para concluir a solicitação.\n\n- 4xx: erro do cliente. A solicitação contém parâmetros ou sintaxes de solicitação inválidos, ou condições específicas da solicitação não podem ser atendidas.\n\n- 5xx: erro do servidor. O servidor não pode atender aos requisitos devido a outros motivos. |
200 |
| errorCode |
string |
O código de erro. |
QUOTA_PLAN_NOT_FOUND |
| errorMsg |
string |
A mensagem de erro. |
plan \"***\" does not exist |
| data |
object |
Os dados retornados. |
|
| name |
string |
O nome do plano de cota. |
planA |
| createTime |
string |
A hora em que o plano de cota foi criado. |
1730946421757 |
| quota |
object |
Os detalhes da cota. |
|
| subQuotaInfoList |
array<object> |
The list of level-2 quotas. |
|
|
array<object> |
|||
| id |
string |
The ID of the level-2 quota. |
10940 |
| name |
string |
The name of the level-2 quota. |
dp_cn_shanghai_1696659792_p |
| nickName |
string |
The nickname of the level-2 quota. |
subquotaA |
| type |
string |
The type of quota. |
FUXI_ONLINE |
| status |
string |
Resource status. |
ON |
| tenantId |
string |
Tenant ID. |
478403690625249 |
| regionId |
string |
Region ID. |
cn-beijing |
| cluster |
string |
Cluster ID. |
AT-120N |
| version |
string |
Version number. |
1386 |
| parameter |
object |
The parameters of the level-2 quota. |
|
| elasticReservedCU |
integer |
The value of elastic Reserved CUs. |
50 |
| maxCU |
integer |
The value of maxCU in Reserved CUs. |
50 |
| minCU |
integer |
The value of minCU in Reserved CUs. |
50 |
| schedulerType |
string |
Scheduling policy. |
Fifo/Fair |
| singleJobCULimit |
integer |
The upper limit for CUs that can be concurrently used by a job scheduled to the quota. |
50 |
| forceReservedMin |
boolean |
Whether it is exclusive. |
true/false |
| enablePriority |
boolean |
whether to enable the priority feature. |
true/false |
| createTime |
integer |
Creation time. |
1718155201628 |
| creatorId |
string |
Creator cloud account UID. |
672863518 |
| id |
string |
The ID of the level-1 quota. |
2413 |
| name |
string |
The name of the level-1 quota. |
quota_a |
| nickName |
string |
The nickname of the level-1 quota. |
quota_nickname |
| type |
string |
Corresponds to the |
FUXI_ONLINE |
| status |
string |
Resource status. |
ON |
| tenantId |
string |
Tenant ID. |
478403690625249 |
| regionId |
string |
Region ID. |
cn-beijing |
| cluster |
string |
Cluster ID. |
AT-120N |
| version |
string |
Version number. |
1964 |
| parameter |
object |
CU value parameters for the level-1 quota. |
|
| maxCU |
integer |
The value of maxCU in Reserved CUs. |
50 |
| minCU |
integer |
The value of minCU in Reserved CUs. |
50 |
| elasticReservedCU |
integer |
The value of elastic Reserved CUs. |
50 |
| createTime |
integer |
Creation time. |
1719886322347 |
| creatorId |
string |
Creator's cloud account UID. |
672863518 |
| isEffective |
boolean |
Indica se está atualmente em vigor.\n\n> - Um plano de cota que entrou em vigor não pode ser excluído, ou seja, isEffective=true. |
true/false |
Exemplos
Resposta de sucesso
JSON formato
{
"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
}
}
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.