GetQuota - 获取指定一级Quota组信息

获取指定一级Quota组信息。 注意warning: 该接口会在2024731日下线,我们会提供QueryQuota的接口替代,入参,出参,功能完全一样。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。

  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。

  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:

    • 对于必选的资源类型,用前面加 * 表示。

    • 对于不支持资源级授权的操作,用全部资源表示。

  • 条件关键字:是指云产品自身定义的条件关键字。

  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。

操作

访问级别

资源类型

条件关键字

关联操作

odps:GetQuota

get

*Quota

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

请求语法

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

请求参数

名称

类型

必填

描述

示例值

nickname

string

Quota 名称

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

tenantId deprecated

string

region deprecated

string

AkProven deprecated

string

mock

boolean

是否包含子模块。取值:-true:包含。-false(默认值):不包含。

false

返回参数

名称

类型

描述

示例值

object

PopCompatibleResult

billingPolicy

object

订单信息

billingMethod

string

付费模式。

  • subscription,表示是预付费 quota。

  • payasyougo,表示是后付费 quota。

subscription

odpsSpecCode

string

订单规格

OdpsStandard

orderId

string

订单 id。

45245678

saleTag

object

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

resourceIds

array

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

string

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

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

resourceType

string

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

"quota"

cluster

string

集群 id。

AT-120N

createTime

integer

资源的创建时间

2022-09-06T02:14:44Z

creatorId

string

资源创建者,云账号 UID。

672863518

requestId

string

请求 id。

0b87b7a316654730544735643e9200

id

string

quota ID

0

name

string

quota 名称

quota_a

nickName

string

quota 别名

quota_nickname

parameter

object

quota 的描述信息

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

parentId

string

父资源 id。

null

regionId

string

地域 id

cn-beijing

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

status

string

资源状态

ON

subQuotaInfoList

array<object>

二级 quota 信息

object

数据

billingPolicy

object

订单信息

billingMethod

string

付费模式。

  • subscription,表示是预付费 quota。

  • payasyougo,表示是后付费 quota。

subscription

odpsSpecCode

string

订单规格

OdpsStandard

orderId

string

订单 id。

45245678

saleTag

object

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

resourceIds

array

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

string

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

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

resourceType

string

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

"quota"

cluster

string

集群 id。

AT-120N

createTime

integer

资源创建时间

2022-09-06T02:14:44Z

creatorId

string

资源创建者,云账号 UID。

672863518

id

string

二级 quota ID

1000048

name

string

二级 quota 名称

subquotaA

nickName

string

二级 quota 别名

subquotaA

parameter

object

quota 的描述信息

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

enablePriority

boolean

开启优先级。

true

forceReservedMin

boolean

是否独占。

true

maxCU

integer

预留 CU 上限。

50

minCU

integer

预留 CU 保障。

50

schedulerType

string

调度策略。

Fifo/Fair

singleJobCULimit

integer

单作业 CU 上限。

10

elasticReservedCU

integer

弹性预留 CU 值。

50

parentId

string

父资源 id。

0

regionId

string

地域 id

cn-beijing

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

status

string

资源状态

ON

tag

string

quota 的资源标签

abc

tenantId

string

租户 id。

478403690625249

type

string

对应控制集群的 resourceSystemType 字段

FUXI_ONLINE

version

string

版本号

1

tag

string

quota 的资源标签

abc

tenantId

string

租户 id。

478403690625249

type

string

对应控制集群的 resourceSystemType 字段

FUXI_ONLINE

version

string

版本号。

1

data

object

返回数据。

id

string

quota ID

0

name

string

quota 名称

quota_a

nickName

string

Quota 别名

quota_nickname

type

string

对应控制集群的 resourceSystemType 字段

FUXI_ONLINE

status

string

资源状态

ON

saleTag

object

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

resourceIds

array

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

string

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

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

resourceType

string

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

"quota"

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。

45245678

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

资源创建时间

2022-09-06T02:14:44Z

creatorId

string

资源创建者,云账号 UID。

672863518

subQuotaInfoList

array<object>

二级 quota 信息

object

数据

id

string

二级 quota ID

1000048

name

string

二级 quota 名称

subquotaA

saleTag

object

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

resourceIds

array

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

string

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

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

resourceType

string

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

"quota"

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。

45245678

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 的描述信息

enablePriority

boolean

开启优先级。

true

forceReservedMin

boolean

是否独占。

true

maxCU

integer

预留 CU 上限。

50

minCU

integer

预留 CU 保障。

50

schedulerType

string

调度策略。

Fifo/Fair

singleJobCULimit

integer

单作业 CU 上限。

10

elasticReservedCU

integer

弹性预留 CU 值。

50

tag

string

quota 的资源标签

abc

createTime

integer

资源创建时间

2022-09-06T02:14:44Z

creatorId

string

资源创建者,云账号 UID。

672863518

示例

正常返回示例

JSON格式

{
  "billingPolicy": {
    "billingMethod": "subscription\n",
    "odpsSpecCode": "OdpsStandard",
    "orderId": "45245678"
  },
  "saleTag": {
    "resourceIds": [
      "\"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd\"\n"
    ],
    "resourceType": "\"quota\""
  },
  "cluster": "AT-120N",
  "createTime": 0,
  "creatorId": "672863518\n",
  "requestId": "0b87b7a316654730544735643e9200",
  "id": "0",
  "name": "quota_a\n",
  "nickName": "quota_nickname",
  "parameter": {
    "test": "test",
    "test2": 1
  },
  "parentId": "null",
  "regionId": "cn-beijing",
  "scheduleInfo": {
    "currPlan": "planA",
    "currTime": "0800",
    "nextPlan": "planB",
    "nextTime": "1700",
    "oncePlan": "planC",
    "onceTime": "1500",
    "operatorName": "userA",
    "timezone": "UTC+8"
  },
  "status": "ON",
  "subQuotaInfoList": [
    {
      "billingPolicy": {
        "billingMethod": "subscription",
        "odpsSpecCode": "OdpsStandard\n",
        "orderId": "45245678\n"
      },
      "saleTag": {
        "resourceIds": [
          "\"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd\"\n"
        ],
        "resourceType": "\"quota\""
      },
      "cluster": "AT-120N\n",
      "createTime": 0,
      "creatorId": "672863518\n",
      "id": "1000048\n",
      "name": "subquotaA\n",
      "nickName": "subquotaA\n",
      "parameter": {
        "enablePriority": true,
        "forceReservedMin": true,
        "maxCU": 50,
        "minCU": 50,
        "schedulerType": "Fifo/Fair",
        "singleJobCULimit": 10,
        "elasticReservedCU": 50
      },
      "parentId": "0",
      "regionId": "cn-beijing",
      "scheduleInfo": {
        "currPlan": "planA",
        "currTime": "0800",
        "nextPlan": "planB",
        "nextTime": "1700",
        "oncePlan": "planC",
        "onceTime": "1500",
        "operatorName": "userA\n",
        "timezone": "UTC+8"
      },
      "status": "ON\n",
      "tag": "abc",
      "tenantId": "478403690625249",
      "type": "FUXI_ONLINE",
      "version": "1"
    }
  ],
  "tag": "abc",
  "tenantId": "478403690625249",
  "type": "FUXI_ONLINE",
  "version": "1",
  "data": {
    "id": "0",
    "name": "quota_a",
    "nickName": "quota_nickname",
    "type": "FUXI_ONLINE",
    "status": "ON",
    "saleTag": {
      "resourceIds": [
        "\"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd\"\n"
      ],
      "resourceType": "\"quota\"\n"
    },
    "tenantId": "478403690625249",
    "regionId": "cn-beijing",
    "parentId": "null",
    "cluster": "AT-120N",
    "version": "1",
    "billingPolicy": {
      "odpsSpecCode": "OdpsStandard",
      "orderId": "45245678",
      "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": 0,
    "creatorId": "672863518",
    "subQuotaInfoList": [
      {
        "id": "1000048",
        "name": "subquotaA",
        "saleTag": {
          "resourceIds": [
            "\"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd\"\n"
          ],
          "resourceType": "\"quota\"\n"
        },
        "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": "45245678",
          "billingMethod": "subscription"
        },
        "scheduleInfo": {
          "currPlan": "planA",
          "currTime": "0800",
          "nextPlan": "planB",
          "nextTime": "1700",
          "oncePlan": "planC",
          "onceTime": "1500",
          "operatorName": "userA",
          "timezone": "UTC+8"
        },
        "parameter": {
          "enablePriority": true,
          "forceReservedMin": true,
          "maxCU": 50,
          "minCU": 50,
          "schedulerType": "Fifo/Fair\n",
          "singleJobCULimit": 10,
          "elasticReservedCU": 50
        },
        "tag": "abc",
        "createTime": 0,
        "creatorId": "672863518"
      }
    ]
  }
}

错误码

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情