Obtém as informações de um plano de quota.
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}/plans/{planName} HTTP/1.1
Parâmetros de caminho
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| nickname |
string |
Sim |
O nome da quota. |
quotaA |
| planName |
string |
Sim |
O nome do plano de quota. |
planA |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| tenantId |
string |
Não |
O ID do tenant. |
483212237127906 |
| region |
string |
Não |
O ID da região. |
cn-beijing |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
PopResult. |
||
| requestId |
string |
O ID da solicitação. |
0be3e0aa16667684362147582e038f |
| data |
object |
Os dados retornados. |
|
| name |
string |
O nome do plano de quota. |
planA |
| createTime |
string |
A hora em que o plano de quota foi criado. |
2022-05-16T06:07:45Z |
| quota |
object |
Os detalhes da quota. |
|
| id |
string |
The ID of the quota. |
0 |
| name |
string |
The name of the quota. |
quota_a |
| nickName |
string |
The alias of the quota. |
quota_nickname |
| type |
string |
The type of the resource system. This parameter corresponds to the resourceSystemType parameter of the cluster. |
FUXI_ONLINE |
| status |
string |
The status of the resource. |
ON |
| tenantId |
string |
The ID of the tenant. |
478403690625249 |
| regionId |
string |
The ID of the region. |
cn-beijing |
| parentId |
string |
The ID of the parent resource. |
null |
| cluster |
string |
The ID of the cluster. |
AT-120N |
| version |
string |
The version number. |
1 |
| billingPolicy |
object |
The information of the order. |
|
| odpsSpecCode |
string |
The specifications of the order. |
OdpsStandard |
| orderId |
string |
The ID of the order. |
45245678 |
| billingMethod |
string |
The billing method of the quota. Valid values:
|
subscription |
| scheduleInfo |
object |
The information of the scheduling plan. |
|
| currPlan |
string |
The quota plan that takes effect based on the scheduling plan. |
planA |
| currTime |
string |
The time when the current quota plan is scheduled. |
0800 |
| nextPlan |
string |
The next quota plan that will take effect based on the scheduling plan. |
planB |
| nextTime |
string |
The time when the next quota plan is scheduled. |
1700 |
| oncePlan |
string |
If the quota plan that immediately takes effect is different from the current quota plan, this parameter is not empty. |
planC |
| onceTime |
string |
The time when the quota plan immediately takes effect. |
1500 |
| operatorName |
string |
The name of the operator. |
userA |
| parameter |
object |
The description of the quota. |
|
| tag |
string |
The tag of the resource for the quota. |
abc |
| createTime |
integer |
The time when the quota plan was created. |
2022-09-06T02:14:44Z |
| creatorId |
string |
The ID of the Alibaba Cloud account that is used to create the resource. |
672863518 |
| subQuotaInfoList |
array<object> |
The information of the level-2 quota. |
|
|
array<object> |
The information of the level-2 quota. |
||
| id |
string |
The ID of the level-2 quota. |
1000048 |
| name |
string |
The name of the level-2 quota. |
subquotaA |
| nickName |
string |
The alias of the level-2 quota. |
subquotaA |
| type |
string |
The type of the resource system. This parameter corresponds to the resourceSystemType parameter of the cluster. |
FUXI_ONLINE |
| status |
string |
The status of the resource. |
ON |
| tenantId |
string |
The ID of the tenant. |
478403690625249 |
| regionId |
string |
The ID of the region. |
cn-beijing |
| parentId |
string |
The ID of the parent resource. |
0 |
| cluster |
string |
The ID of the cluster. |
AT-120N |
| version |
string |
The version number. |
1 |
| billingPolicy |
object |
The information of the order. |
|
| odpsSpecCode |
string |
The specifications of the order. |
OdpsStandard |
| orderId |
string |
The ID of the order. |
45245678 |
| billingMethod |
string |
The billing method of the quota. Valid values:
|
subscription |
| scheduleInfo |
object |
The information of the scheduling plan. |
|
| currPlan |
string |
The quota plan that takes effect based on the scheduling plan. |
planA |
| currTime |
string |
The time when the current quota plan is scheduled. |
0800 |
| nextPlan |
string |
The next quota plan that will take effect based on the scheduling plan. |
planB |
| nextTime |
string |
The time when the next quota plan is scheduled. |
1700 |
| oncePlan |
string |
If the quota plan that immediately takes effect is different from the current quota plan, this parameter is not empty. |
planC |
| onceTime |
string |
The time when the quota plan immediately takes effect. |
1500 |
| operatorName |
string |
The name of the operator. |
userA |
| parameter |
object |
The description of the quota. |
|
| tag |
string |
The tag of the resource for the quota. |
abc |
| createTime |
integer |
The time when the resource was created. |
2022-09-06T02:14:44Z |
| creatorId |
string |
The ID of the user who created the quota plan. |
672863518 |
Exemplos
Resposta de sucesso
JSON formato
{
"requestId": "0be3e0aa16667684362147582e038f",
"data": {
"name": "planA",
"createTime": "2022-05-16T06:07:45Z",
"quota": {
"id": "0",
"name": "quota_a\n",
"nickName": "quota_nickname",
"type": "FUXI_ONLINE",
"status": "ON",
"tenantId": "478403690625249",
"regionId": "cn-beijing",
"parentId": "null",
"cluster": "AT-120N\n",
"version": "1",
"billingPolicy": {
"odpsSpecCode": "OdpsStandard",
"orderId": "45245678",
"billingMethod": "subscription"
},
"scheduleInfo": {
"currPlan": "planA",
"currTime": "0800",
"nextPlan": "planB",
"nextTime": "1700",
"oncePlan": "planC",
"onceTime": "1500",
"operatorName": "userA"
},
"parameter": {
"test": "test",
"test2": 1
},
"tag": "abc",
"createTime": 0,
"creatorId": "672863518",
"subQuotaInfoList": [
{
"id": "1000048",
"name": "subquotaA",
"nickName": "subquotaA",
"type": "FUXI_ONLINE",
"status": "ON",
"tenantId": "478403690625249",
"regionId": "cn-beijing",
"parentId": "0",
"cluster": "AT-120N\n",
"version": "1",
"billingPolicy": {
"odpsSpecCode": "OdpsStandard",
"orderId": "45245678",
"billingMethod": "subscription"
},
"scheduleInfo": {
"currPlan": "planA",
"currTime": "0800",
"nextPlan": "planB",
"nextTime": "1700",
"oncePlan": "planC",
"onceTime": "1500",
"operatorName": "userA"
},
"parameter": {
"test": "test",
"test2": 1
},
"tag": "abc",
"createTime": 0,
"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.