All Products
Search
Document Center

MaxCompute:QueryQuota - 获取指定一级Quota组信息

Last Updated:Aug 20, 2026

获取指定一级Quota组信息。

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

odps:QueryQuota

get

*Quota

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

None None

Request syntax

GET /api/v1/quotas/{nickname}/query HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

nickname

string

Yes

Quota 名称。

%E9%BB%98%E8%AE%A4%E9%A2%84%E4%BB%98%E8%B4%B9Quota_p #中文名称需要经过utf8 urlencode编码转义

Request parameters

Parameter

Type

Required

Description

Example

tenantId

string

No

租户 ID。

483212237127906

region

string

No

地域 id。

cn-chengdu

AkProven

string

No

ak 换取凭证。

null

mock

boolean

No

是否包含子模块。取值如下:

  • true:包含。

  • false(默认值):不包含。

false

Response elements

Element

Type

Description

Example

object

PopCompatibleResult

requestId

string

请求 id。

0bc1eeed16675342848904412e08dd

httpCode

integer

返回的 HTTP 状态码。

200

errorCode

string

错误码。

success

errorMsg

string

错误信息。

异常信息

data

object

返回数据。

subQuotaInfoList

array<object>

二级 quota 信息。

array<object>

数据。

id

string

二级 quota ID。

1000048

name

string

二级 quota 名称。

subquotaA

nickName

string

二级 quota 昵称。

subquotaA

type

string

对应控制集群的 resourceSystemType 字段。

FUXI_ONLINE

status

string

资源状态。

ON

tenantId

string

租户 id。

478403690625249

regionId

string

地域 id。

cn-beijing

parentId

string

父资源 id。

0

cluster

string

集群 id。

AT-120N

version

string

版本号。

1

billingPolicy

object

订单信息。

odpsSpecCode

string

订单规格。

OdpsStandard

orderId

string

订单 id。

880c0d0d-5d79-4217-b683-8e8bdd2a2523

instanceId

string

instanceId 与 orderId 在 mc 看来是一样的。

880c0d0d-5d79-4217-b683-8e8bdd2a2523

billingMethod

string

付费模式。

  • subscription:表示是预付费 quota。

  • payasyougo:表示是后付费 quota。

subscription

scheduleInfo

object

分时信息。

currPlan

string

按照调度计划生效的 quota 计划。

planA

currTime

string

currPlan 被调度的时间。

0800

nextPlan

string

按照调度计划将要生效的 quota 计划。

planB

nextTime

string

next_plan 被调度的时间。

1700

oncePlan

string

立即生效的 quota 计划。 如果用户触发了立即生效且不同于 curr_plan,那么非空。

planC

onceTime

string

立即生效触发的时间。

1500

operatorName

string

操作人名称。

userA

timezone

string

时区。

UTC+8

parameter

object

quota 的描述信息。

{'maxCU': 10, 'minCU': 10, 'adhocCU': 0, 'schedulerType': 'Fifo'}

tag

string

quota 的资源标签。

abc

createTime

integer

资源创建时间。

1688653978768

creatorId

string

资源创建者,云账号 UID。

672863518

groupName

string

角色组名称。

abc

saleTag

object

描述了 MaxCompute quota 对象的标识,这个标识与阿里云售卖账单中的标识是一致的。实际使用与标签场景下。

resourceIds

array

maxcompute quota 对象的标识,这个标识在阿里云售卖子系统内也存在。通过这个标识,可以把 quota 对象的费用都关联到某个标签上。

string

maxcompute quota 对象的标识,这个标识在阿里云售卖子系统内也存在。通过这个标识,可以把 quota 对象的费用都关联到某个标签上。

"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd"

resourceType

string

对象的类型,目前仅支持 quota 和 project 两种类型。

"quota"

id

string

quota ID。

2523

name

string

quota 名称。

quota_a

nickName

string

Quota 别名。

quota_nickname

type

string

对应控制集群的 resourceSystemType 字段。

FUXI_OFFLINE

status

string

资源状态。

ON

tenantId

string

租户 id。

478403690625249

regionId

string

地域 id。

cn-beijing

parentId

string

父资源 id。

null

cluster

string

集群 id。

AT-120N

version

string

版本号。

1

billingPolicy

object

订单信息。

odpsSpecCode

string

订单规格。

OdpsStandard

orderId

string

订单 id。

880c0d0d-5d79-4217-b683-8e8bdd2a2523

instanceId

string

instanceId 与 orderId 在 mc 看来是一样的。

880c0d0d-5d79-4217-b683-8e8bdd2a2523

billingMethod

string

付费模式。

  • subscription:表示是预付费 quota。

  • payasyougo:表示是后付费 quota。

subscription

scheduleInfo

object

分时信息。

currPlan

string

按照调度计划生效的 quota 计划。

planA

currTime

string

currPlan 被调度的时间。

0800

nextPlan

string

按照调度计划将要生效的 quota 计划。

planB

nextTime

string

next_plan 被调度的时间。

1700

oncePlan

string

立即生效的 quota 计划。 如果用户触发了立即生效且不同于 curr_plan,那么非空。

planC

onceTime

string

立即生效触发的时间。

1500

operatorName

string

操作人名称。

userA

timezone

string

时区。

UTC+8

parameter

object

quota 的描述信息。

{"minCU":10, "adhocCU":0, "maxCU":10, "schedulerType":"Fair", }

tag

string

quota 的资源标签。

abc

createTime

integer

资源创建时间。

1714356241163

creatorId

string

资源创建者,云账号 UID。

1248953767546358

groupName

string

群名称。

abc

saleTag

object

描述了 MaxCompute quota 对象的标识,这个标识与阿里云售卖账单中的标识是一致的。实际使用与标签场景下。

resourceIds

array

MaxCompute Quota 对象的标识,这个标识在阿里云售卖子系统内也存在。通过这个标识,可以把 Quota 对象的费用都关联到某个标签上。

string

MaxCompute Quota 对象的标识,这个标识在阿里云售卖子系统内也存在。通过这个标识,可以把 Quota 对象的费用都关联到某个标签上。

"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd"

resourceType

string

对象的类型,目前仅支持 quota 和 project 两种类型。

project

Examples

Success response

JSON format

{
  "requestId": "0bc1eeed16675342848904412e08dd",
  "httpCode": 200,
  "errorCode": "success",
  "errorMsg": "异常信息",
  "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"
    }
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.