Todos os produtos
Search
Central de documentação

MaxCompute:GetQuotaPlan

Última atualização: Jul 04, 2026

Obtém as informações de um plano de quota.

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:GetQuotaPlan

get

*Quota

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

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

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

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

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

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.