擷取Quota列表。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
odps:ListQuotas |
get |
*Quota
|
無 | 無 |
請求文法
GET /api/v1/quotas HTTP/1.1
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
tenantId
deprecated
|
string |
否 |
||
region
deprecated
|
string |
否 |
||
productId
deprecated
|
string |
否 |
||
| billingType |
string |
否 |
付費模式 |
subscription |
| saleTags |
string |
否 |
可以根據費用標籤來過濾 quota 對象,費用標籤是使用者在標籤雲產品建立的。 |
{"tag":"this_is_tag_demo"} |
| marker |
string |
否 |
設定結果從 marker 之後按字母排序的第一個開始返回。 |
cHlvZHBzX3VkZl8xMDExNV8xNDU3NDI4NDkzKg== |
| maxItem |
integer |
否 |
限制返回的最大數。 |
100 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
PopCompatibleResult |
||
| requestId |
string |
請求 id。 |
0bc12e6f16677875480593081d2956 |
| quotaInfoList |
array<object> |
quota 列表 |
|
|
array<object> |
quota 列表 |
||
| billingPolicy |
object |
訂單資訊 |
|
| billingMethod |
string |
付費模式。
|
subscription |
| odpsSpecCode |
string |
訂單規格 |
OdpsStandard |
| orderId |
string |
訂單 id。 |
45245678 |
| saleTag |
object |
描述了 MaxCompute quota 對象的標識,這個標識與阿里雲售賣賬單中的標識是一致的。實際使用與標籤情境下。 |
|
| resourceIds |
array |
maxcompute quota 對象的標識,這個標識在阿里雲售賣子系統內也存在。通過這個標識,可以把 quota 對象的費用都關聯到某個標籤上。 |
|
|
string |
maxcompute quota 對象的標識 |
"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd" |
|
| resourceType |
string |
對象的類型,目前僅支援 quota 和 project 兩種類型。 |
"project" |
| cluster |
string |
叢集 id |
AT-120N |
| createTime |
integer |
資源建立時間 |
2022-09-06T02:14:44Z |
| creatorId |
string |
資源建立者,雲帳號 UID。 |
672863518 |
| 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 資訊 |
|
|
array<object> |
二級 quota 資訊 |
||
| saleTag |
object |
描述了 MaxCompute quota 對象的標識,這個標識與阿里雲售賣賬單中的標識是一致的。實際使用與標籤情境下。 |
|
| resourceIds |
array |
maxcompute quota 對象的標識,這個標識在阿里雲售賣子系統內也存在。通過這個標識,可以把 quota 對象的費用都關聯到某個標籤上。 |
|
|
string |
maxcompute quota 對象的標識 |
"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd" |
|
| resourceType |
string |
對象的類型,目前僅支援 quota 和 project 兩種類型。 |
"quota" |
| billingPolicy |
object |
訂單資訊 |
|
| billingMethod |
string |
付費模式。
|
subscription |
| odpsSpecCode |
string |
訂單規格 |
OdpsStandard |
| orderId |
string |
訂單 id。 |
45245678 |
| 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 |
| slotNum |
integer |
||
| adhocSlot |
integer |
||
| minGu |
integer |
||
| maxGu |
integer |
||
| autoScaleCPULimit |
integer |
||
| 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。 |
280747109771520 |
| type |
string |
對應控制叢集的 resourceSystemType 欄位 |
FUXI_ONLINE |
| version |
string |
版本 |
1 |
| tag |
string |
quota 的資源標籤 |
abc |
| tenantId |
string |
租戶 id。 |
280747109771520 |
| type |
string |
對應控制叢集的 resourceSystemType 欄位 |
FUXI_ONLINE |
| version |
string |
版本。 |
1 |
| Tags |
array<object> |
標籤 |
|
|
object |
標籤 |
||
| TagValue |
string |
標籤值。 |
1 |
| TagKey |
string |
標籤鍵。 |
Department |
| marker |
string |
設定結果從 marker 之後按字母排序的第一個開始返回。 |
cHlvZHBzX3VkZl8xMDExNV8xNDU3NDI4NDkzKg== |
| maxItem |
integer |
每頁返回的最大結果數。 |
10 |
| data |
object |
返回資料。 |
|
| quotaInfoList |
array<object> |
quota 列表 |
|
|
array<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。 |
280747109771520 |
| 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 |
| 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 |
| saleTag |
object |
描述了 MaxCompute quota 對象的標識,這個標識與阿里雲售賣賬單中的標識是一致的。實際使用與標籤情境下。 |
|
| resourceIds |
array |
maxcompute quota 對象的標識,這個標識在阿里雲售賣子系統內也存在。通過這個標識,可以把 quota 對象的費用都關聯到某個標籤上。 |
|
|
string |
maxcompute quota 對象的標識 |
"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd" |
|
| resourceType |
string |
對象的類型,目前僅支援 quota 和 project 兩種類型。 |
"quota" |
| 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。 |
280747109771520 |
| 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 |
| 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", } |
| 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 |
| slotNum |
integer |
||
| adhocSlot |
integer |
||
| autoScaleCPULimit |
integer |
||
| minGu |
integer |
||
| maxGu |
integer |
||
| tag |
string |
quota 的資源標籤 |
abc |
| createTime |
integer |
資源建立時間 |
2022-09-06T02:14:44Z |
| creatorId |
string |
資源建立者,雲帳號 UID。 |
672863518 |
| saleTag |
object |
描述了 MaxCompute quota 對象的標識,這個標識與阿里雲售賣賬單中的標識是一致的。實際使用與標籤情境下。 |
|
| resourceIds |
array |
maxcompute quota 對象的標識,這個標識在阿里雲售賣子系統內也存在。通過這個標識,可以把 quota 對象的費用都關聯到某個標籤上。 |
|
|
string |
maxcompute quota 對象的標識 |
"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd" |
|
| resourceType |
string |
對象的類型,目前僅支援 quota 和 project 兩種類型。 |
"quota" |
| Tags |
array<object> |
標籤。 |
|
|
object |
標籤 |
||
| TagValue |
string |
標籤值。 |
a12351qHDP6YEQMt |
| TagKey |
string |
標籤鍵。 |
Department |
| marker |
string |
設定結果從 marker 之後按字母排序的第一個開始返回。 |
cHlvZHBzX3VkZl8xMDExNV8xNDU3NDI4NDkzKg== |
| maxItem |
integer |
每頁返回的最大結果數。 |
10 |
| NextToken |
string |
分頁標識,當前介面僅支援連續翻頁。傳回值 nextToken 非空代表還有剩餘資料。把 nextToken 作為參數繼續查詢會獲得下一頁。 |
"abcde" |
| NextToken |
string |
分頁標識,當前介面僅支援連續翻頁。傳回值 nextToken 非空代表還有剩餘資料。把 nextToken 作為參數繼續查詢會獲得下一頁。 |
AAAAAdDWBF2w6Olxc+cMPjUtUMo/CvPe4IK7f7kIQFrIZjyc |
樣本
正常返回樣本
JSON格式
{
"requestId": "0bc12e6f16677875480593081d2956",
"quotaInfoList": [
{
"billingPolicy": {
"billingMethod": "subscription",
"odpsSpecCode": "OdpsStandard ",
"orderId": "45245678"
},
"saleTag": {
"resourceIds": [
"\"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd\""
],
"resourceType": "\"project\""
},
"cluster": "AT-120N\n",
"createTime": 0,
"creatorId": "672863518\n",
"id": "0",
"name": "quota_a\n",
"nickName": "quota_nickname\n",
"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 \n",
"subQuotaInfoList": [
{
"saleTag": {
"resourceIds": [
"\"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd\"\n"
],
"resourceType": "\"quota\""
},
"billingPolicy": {
"billingMethod": "subscription\n",
"odpsSpecCode": "OdpsStandard ",
"orderId": "45245678\n"
},
"cluster": "AT-120N",
"createTime": 0,
"creatorId": "672863518\n",
"id": "1000048",
"name": "subquotaA\n",
"nickName": "subquotaA\n",
"parameter": {
"enablePriority": true,
"forceReservedMin": true,
"maxCU": 50,
"minCU": 50,
"schedulerType": "Fifo/Fair\n",
"singleJobCULimit": 10,
"elasticReservedCU": 50,
"slotNum": 0,
"adhocSlot": 0,
"minGu": 0,
"maxGu": 0,
"autoScaleCPULimit": 0
},
"parentId": "0",
"regionId": "cn-beijing",
"scheduleInfo": {
"currPlan": "planA",
"currTime": "0800",
"nextPlan": "planB",
"nextTime": "1700",
"oncePlan": "planC",
"onceTime": "1500",
"operatorName": "userA",
"timezone": "UTC+8"
},
"status": "ON",
"tag": "abc",
"tenantId": "280747109771520\n",
"type": "FUXI_ONLINE\n",
"version": "1"
}
],
"tag": "abc",
"tenantId": "280747109771520\n",
"type": "FUXI_ONLINE\n",
"version": "1",
"Tags": [
{
"TagValue": "1",
"TagKey": "Department"
}
]
}
],
"marker": "cHlvZHBzX3VkZl8xMDExNV8xNDU3NDI4NDkzKg==",
"maxItem": 10,
"data": {
"quotaInfoList": [
{
"id": "0\n",
"name": "quota_a\n",
"nickName": "quota_nickname",
"type": "FUXI_ONLINE",
"status": "ON",
"tenantId": "280747109771520",
"regionId": "cn-beijing",
"parentId": "null",
"cluster": "AT-120N",
"version": "1",
"billingPolicy": {
"odpsSpecCode": "OdpsStandard ",
"orderId": "45245678\n",
"billingMethod": "subscription"
},
"scheduleInfo": {
"currPlan": "planA\n",
"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\n",
"saleTag": {
"resourceIds": [
"\"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd\"\n"
],
"resourceType": "\"quota\"\n"
},
"subQuotaInfoList": [
{
"id": "1000048",
"name": "subquotaA\n",
"nickName": "subquotaA\n",
"type": "FUXI_ONLINE\n",
"status": "ON",
"tenantId": "280747109771520\n",
"regionId": "cn-beijing",
"parentId": "0",
"cluster": "AT-120N",
"version": "1",
"billingPolicy": {
"odpsSpecCode": "OdpsStandard ",
"orderId": "45245678\n",
"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,
"slotNum": 0,
"adhocSlot": 0,
"autoScaleCPULimit": 0,
"minGu": 0,
"maxGu": 0
},
"tag": "abc",
"createTime": 0,
"creatorId": "672863518\n",
"saleTag": {
"resourceIds": [
"\"aaaaaaa-bbbb-4fd0-a8eb-50861590f7dd\"\n"
],
"resourceType": "\"quota\"\n"
}
}
],
"Tags": [
{
"TagValue": "a12351qHDP6YEQMt",
"TagKey": "Department"
}
]
}
],
"marker": "cHlvZHBzX3VkZl8xMDExNV8xNDU3NDI4NDkzKg==",
"maxItem": 10,
"NextToken": "\"abcde\""
},
"NextToken": "AAAAAdDWBF2w6Olxc+cMPjUtUMo/CvPe4IK7f7kIQFrIZjyc"
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。