Consulta as informações de um grupo de cotas de nível 1 especificado.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
odps:QueryQuota |
get |
*Quota
|
Nenhuma | Nenhuma |
Sintaxe da solicitação
GET /api/v1/quotas/{nickname}/query HTTP/1.1
Parâmetros de caminho
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| nickname |
string |
Sim |
O nome da cota. |
%E9%BB%98%E8%AE%A4%E9%A2%84%E4%BB%98%E8%B4%B9Quota_p # Chinese name needs to be UTF-8 URL-encoded |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| tenantId |
string |
Não |
O ID do locatário. |
483212237127906 |
| region |
string |
Não |
O ID da região. |
cn-chengdu |
| AkProven |
string |
Não |
Os pares de AccessKey confiáveis. |
null |
| mock |
boolean |
Não |
Especifica se os submódulos devem ser incluídos. Valores válidos: true e false. - true: A solicitação inclui submódulos. - false (padrão): A solicitação não inclui submódulos. |
false |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
Os parâmetros de resposta. |
||
| requestId |
string |
O ID da solicitação. |
0bc1eeed16675342848904412e08dd |
| httpCode |
integer |
O código de status HTTP. |
200 |
| errorCode |
string |
O código de erro. |
success |
| errorMsg |
string |
A mensagem de erro. |
Exception information |
| data |
object |
Os dados retornados. |
|
| subQuotaInfoList |
array<object> |
As cotas de nível 2. |
|
|
array<object> |
Os dados retornados. |
||
| id |
string |
The ID of the level-2 quota. |
1000048 |
| name |
string |
The name of the level-2 quota. |
subquotaA |
| nickName |
string |
The nickname of the level-2 quota. |
subquotaA |
| type |
string |
This parameter corresponds to the resourceSystemType field. |
FUXI_ONLINE |
| status |
string |
The status of the resource. |
ON |
| tenantId |
string |
The tenant ID. |
478403690625249 |
| regionId |
string |
The region ID. |
cn-beijing |
| parentId |
string |
The parent resource ID. |
0 |
| cluster |
string |
The cluster ID. |
AT-120N |
| version |
string |
The version number. |
1 |
| billingPolicy |
object |
The order information. |
|
| odpsSpecCode |
string |
The order specifications. |
OdpsStandard |
| orderId |
string |
The order ID. |
880c0d0d-5d79-4217-b683-8e8bdd2a2523 |
| instanceId |
string |
In MaxCompute, instanceId and orderId are considered the same. |
880c0d0d-5d79-4217-b683-8e8bdd2a2523 |
| billingMethod |
string |
The billing method. Valid values:
|
subscription |
| scheduleInfo |
object |
The information about the scheduling plan. |
|
| currPlan |
string |
The current quota plan that has taken effect based on the scheduling plan. |
planA |
| currTime |
string |
The time when the plan specified by currPlan is scheduled. |
0800 |
| nextPlan |
string |
The quota plan that will take effect based on the scheduling plan. |
planB |
| nextTime |
string |
The time when the plan specified by nextPlan is scheduled. |
1700 |
| oncePlan |
string |
The quota plan that immediately takes effect. If the quota plan specified by this parameter is triggered and the plan is different from the plan specified by currPlan, this parameter is not empty. |
planC |
| onceTime |
string |
The time when the quota plan specified by oncePlan is scheduled. |
1500 |
| operatorName |
string |
The operator name. |
userA |
| timezone |
string |
The time zone of the project. |
UTC+8 |
| parameter |
object |
The quota description. |
{'maxCU': 10, 'minCU': 10, 'adhocCU': 0, 'schedulerType': 'Fifo'} |
| tag |
string |
The resource tag of a quota. |
abc |
| createTime |
integer |
The time when the resource was created. |
1688653978768 |
| creatorId |
string |
The ID of the Alibaba Cloud account that is used to create the quota plan. |
672863518 |
| groupName |
string |
The role group name. |
abc |
| saleTag |
object |
The identifiers of MaxCompute quota objects. The identifiers are the same as those in the Alibaba Cloud sales bill. This parameter is used for tags. |
|
| resourceIds |
array |
The identifier of a MaxCompute quota object. This identifier exists in the Alibaba Cloud sales bill. You can use this identifier to associate the cost of a quota object with a tag. |
|
|
string |
The identifier of a MaxCompute quota object. This identifier exists in the Alibaba Cloud sales bill. You can use this identifier to associate the cost of a quota object with a tag. |
"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd" |
|
| resourceType |
string |
The object type. Valid values: quota and project. |
"quota" |
| id |
string |
O ID da cota. |
2523 |
| name |
string |
O nome da cota. |
quota_a |
| nickName |
string |
O alias da cota. |
quota_nickname |
| type |
string |
Este parâmetro corresponde ao campo resourceSystemType. |
FUXI_OFFLINE |
| status |
string |
O status do recurso. |
ON |
| tenantId |
string |
O ID do locatário. |
478403690625249 |
| regionId |
string |
O ID da região. |
cn-beijing |
| parentId |
string |
O ID do recurso pai. |
null |
| cluster |
string |
O ID do cluster do Managed Service for Prometheus. |
AT-120N |
| version |
string |
O número da versão. |
1 |
| billingPolicy |
object |
As informações do pedido. |
|
| odpsSpecCode |
string |
The order specifications. |
OdpsStandard |
| orderId |
string |
The order ID. |
880c0d0d-5d79-4217-b683-8e8bdd2a2523 |
| instanceId |
string |
In MaxCompute, instanceId and orderId are considered the same. |
880c0d0d-5d79-4217-b683-8e8bdd2a2523 |
| billingMethod |
string |
The billing method. Valid values:
|
subscription |
| scheduleInfo |
object |
As informações sobre o plano de agendamento. |
|
| currPlan |
string |
The current quota plan that has taken effect based on the scheduling plan. |
planA |
| currTime |
string |
The time when the plan specified by currPlan is scheduled. |
0800 |
| nextPlan |
string |
The quota plan that will take effect based on the scheduling plan. |
planB |
| nextTime |
string |
The time when the plan specified by nextPlan is scheduled. |
1700 |
| oncePlan |
string |
The quota plan that immediately takes effect. If the quota plan specified by this parameter is triggered and the plan is different from the plan specified by currPlan, this parameter is not empty. |
planC |
| onceTime |
string |
The time when the quota plan specified by oncePlan is scheduled. |
1500 |
| operatorName |
string |
The operator name. |
userA |
| timezone |
string |
The time zone of the project. |
UTC+8 |
| parameter |
object |
A descrição da cota. |
{"minCU":10, "adhocCU":0, "maxCU":10, "schedulerType":"Fair", } |
| tag |
string |
A tag de recurso de uma cota. |
abc |
| createTime |
integer |
A hora em que o recurso foi criado. |
1714356241163 |
| creatorId |
string |
O ID da conta Alibaba Cloud usada para criar o plano de cotas. |
1248953767546358 |
| groupName |
string |
O nome do grupo. |
abc |
| saleTag |
object |
Os identificadores de objetos de cota do MaxCompute. Os identificadores são os mesmos da fatura de vendas da Alibaba Cloud. Este parâmetro é usado para tags. |
|
| resourceIds |
array |
The identifier of a MaxCompute quota object. This identifier exists in the Alibaba Cloud sales bill. You can use this identifier to associate the cost of a quota object with a tag. |
|
|
string |
The identifier of a MaxCompute quota object. This identifier exists in the Alibaba Cloud sales bill. You can use this identifier to associate the cost of a quota object with a tag. |
"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd" |
|
| resourceType |
string |
The object type. Valid values: quota and project. |
project |
Exemplos
Resposta de sucesso
JSON formato
{
"requestId": "0bc1eeed16675342848904412e08dd",
"httpCode": 200,
"errorCode": "success",
"errorMsg": "Exception information",
"data": {
"subQuotaInfoList": [
{
"id": "1000048",
"name": "subquotaA",
"nickName": "subquotaA",
"type": "FUXI_ONLINE",
"status": "ON",
"tenantId": "478403690625249\n",
"regionId": "cn-beijing",
"parentId": "0",
"cluster": "AT-120N\n",
"version": "1",
"billingPolicy": {
"odpsSpecCode": "OdpsStandard",
"orderId": "880c0d0d-5d79-4217-b683-8e8bdd2a2523",
"instanceId": "880c0d0d-5d79-4217-b683-8e8bdd2a2523",
"billingMethod": "subscription"
},
"scheduleInfo": {
"currPlan": "planA",
"currTime": "0800",
"nextPlan": "planB",
"nextTime": "1700",
"oncePlan": "planC",
"onceTime": "1500",
"operatorName": "userA",
"timezone": "UTC+8"
},
"parameter": {
"test": "test",
"test2": 1
},
"tag": "abc",
"createTime": 1688653978768,
"creatorId": "672863518",
"groupName": "abc",
"saleTag": {
"resourceIds": [
"\"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd\"\n"
],
"resourceType": "\"quota\"\n"
}
}
],
"id": "2523",
"name": "quota_a",
"nickName": "quota_nickname",
"type": "FUXI_OFFLINE",
"status": "ON",
"tenantId": "478403690625249",
"regionId": "cn-beijing",
"parentId": "null",
"cluster": "AT-120N",
"version": "1",
"billingPolicy": {
"odpsSpecCode": "OdpsStandard",
"orderId": "880c0d0d-5d79-4217-b683-8e8bdd2a2523",
"instanceId": "880c0d0d-5d79-4217-b683-8e8bdd2a2523",
"billingMethod": "subscription"
},
"scheduleInfo": {
"currPlan": "planA",
"currTime": "0800",
"nextPlan": "planB",
"nextTime": "1700",
"oncePlan": "planC",
"onceTime": "1500",
"operatorName": "userA",
"timezone": "UTC+8"
},
"parameter": {
"test": "test",
"test2": 1
},
"tag": "abc",
"createTime": 1714356241163,
"creatorId": "1248953767546358",
"groupName": "abc",
"saleTag": {
"resourceIds": [
"\"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd\"\n"
],
"resourceType": "project"
}
}
}
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.