Todos os produtos
Search
Central de documentação

MaxCompute:QueryQuota

Última atualização: Jul 04, 2026

Consulta as informações de um grupo de cotas de nível 1 especificado.

Experimente agora

Experimente esta API no OpenAPI Explorer, sem necessidade de assinatura manual. Chamadas bem-sucedidas geram automaticamente código SDK correspondente aos seus parâmetros. Faça o download com segurança de credenciais integrada para uso local.

Testar

Autorização RAM

A tabela abaixo descreve a autorização necessária para chamar esta API. Você pode defini-la em uma política do Resource Access Management (RAM). As colunas da tabela estão detalhadas abaixo:

  • Ação: As ações que podem ser usadas no elemento Action das instruções de política de permissão do RAM para conceder permissões para executar a operação.

  • API: A API que você pode chamar para executar a ação.

  • Nível de acesso: O nível de acesso predefinido concedido para cada API. Valores válidos: create, list, get, update e delete.

  • Tipo de recurso: O tipo de recurso que suporta autorização para executar a ação. Indica se a ação suporta permissão em nível de recurso. O recurso especificado deve ser compatível com a ação. Caso contrário, a política será ineficaz.

    • Para APIs com permissões em nível de recurso, os tipos de recursos obrigatórios são marcados com um asterisco (*). Especifique o Nome de Recurso Alibaba Cloud (ARN) correspondente no elemento Resource da política.

    • Para APIs sem permissões em nível de recurso, é exibido como Todos os Recursos. Use um asterisco (*) no elemento Resource da política.

  • Chave de condição: As chaves de condição definidas pelo serviço. A chave permite controle granular, aplicando-se somente a ações ou a ações associadas a recursos específicos. Além das chaves de condição específicas do serviço, o Alibaba Cloud fornece um conjunto de chaves de condição comuns aplicáveis a todos os serviços compatíveis com RAM.

  • Ação dependente: As ações dependentes necessárias para executar a ação. Para concluir a ação, o usuário RAM ou a função RAM deve ter permissões para executar todas as ações dependentes.

Ação

Nível de acesso

Tipo de recurso

Chave de condição

Ação dependente

odps:QueryQuota

get

*Quota

acs:odps:{#regionId}:{#accountId}:quotas/{#NickName}

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: the subscription quota.

  • payasyougo: the pay-as-you-go quota.

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: the subscription quota.

  • payasyougo: the pay-as-you-go quota.

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.