擷取指定一級Quota組資訊。 注意warning: 該介面會在2024年7月31日下線,我們會提供QueryQuota的介面替代,入參,出參,功能完全一樣。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
odps:GetQuota |
get |
*Quota
|
無 | 無 |
請求文法
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 |
| 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 |
| 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 |
| 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 |
| 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"
}
]
}
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。