全部產品
Search
文件中心

MaxCompute:ListQuotasPlans - 擷取Quota計劃列表

更新時間:Dec 18, 2025

擷取Quota計劃列表。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

下表是API對應的授權資訊,可以在RAM權限原則語句的Action元素中使用,用來給RAM使用者或RAM角色授予調用此API的許可權。具體說明如下:

  • 操作:是指具體的許可權點。

  • 存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。

  • 資源類型:是指操作中支援授權的資源類型。具體說明如下:

    • 對於必選的資源類型,用前面加 * 表示。

    • 對於不支援資源級授權的操作,用全部資源表示。

  • 條件關鍵字:是指雲產品自身定義的條件關鍵字。

  • 關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。

操作

存取層級

資源類型

條件關鍵字

關聯操作

odps:ListQuotasPlans

get

*Quota

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

請求文法

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

路徑參數

名稱

類型

必填

描述

樣本值

nickname

string

Quota 名稱

quotaA

請求參數

名稱

類型

必填

描述

樣本值

tenantId

string

租戶 id

478403690625249

region

string

地區 id。

cn-beijing

返回參數

名稱

類型

描述

樣本值

object

PopResult

requestId

string

請求 id。

0be3e0bd16661643917136451ebf55

data

object

返回資料。

planList

array<object>

Quota 計劃列表。

array<object>

資料

name

string

Quota 計劃名稱

planA

createTime

string

建立時間。

2022-05-16T06:07:45Z

quota

object

quota 詳情

id

string

quota ID

0

name

string

quota 名稱

quota_a

nickName

string

quota 別名

quota_nickname

type

string

對應控制叢集的 resourceSystemType 欄位

FUXI_ONLINE

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。

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

如果使用者觸發了立即生效且不同於 curr_plan,那麼非空。

planC

onceTime

string

立即生效觸發的時間

1500

operatorName

string

操作者名稱。

userA

parameter

object

quota 的描述資訊

tag

string

quota 的資源標籤

abc

createTime

integer

建立時間。

2022-09-06T02:14:44Z

creatorId

string

資源建立者,雲帳號 UID。

672863518

subQuotaInfoList

array<object>

二級 quota 資訊

array<object>

二級 quota 資訊

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

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

如果使用者觸發了立即生效且不同於 curr_plan,那麼非空。

planC

onceTime

string

立即生效觸發的時間

1500

operatorName

string

操作者名稱。

userA

parameter

object

quota 的描述資訊

tag

string

quota 的資源標籤

abc

createTime

integer

建立時間。

2022-09-06T02:14:44Z

creatorId

string

資源建立者,雲帳號 UID。

672863518

樣本

正常返回樣本

JSON格式

{
  "requestId": "0be3e0bd16661643917136451ebf55",
  "data": {
    "planList": [
      {
        "name": "planA",
        "createTime": "2022-05-16T06:07:45Z\n",
        "quota": {
          "id": "0",
          "name": "quota_a",
          "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\n",
            "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\n"
              },
              "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"
            }
          ]
        }
      }
    ]
  }
}

錯誤碼

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情