Queries quotas.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request syntax
GET /api/v1/quotas HTTP/1.1
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
tenantId | string | No | The ID of the tenant. | 280747109771520 |
region | string | No | The ID of the region. | cn-beijing |
productId | string | No | The service ID. | ODPS |
billingType | string | No | The billing method of the quota. | subscription |
saleTags | string | No | The cost tag. You can filter out quota objects based on the cost tag. The cost tag is created when you tag a service. | {"tag":"this_is_tag_demo"} |
marker | string | No | Specifies the marker after which the returned list begins. | cHlvZHBzX3VkZl8xMDExNV8xNDU3NDI4NDkzKg== |
maxItem | long | No | The maximum number of entries to return on each page. | 100 |
Response parameters
Examples
Sample success responses
JSON
format
{
"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": {
"test": "test",
"test2": 1
},
"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": {
"test": "test",
"test2": 1
},
"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"
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-10-09 | The internal configuration of the API is changed, but the call is not affected | View Change Details |
2023-09-21 | The response structure of the API has changed | View Change Details |
2023-08-22 | The response structure of the API has changed | View Change Details |
2022-04-14 | Add Operation | View Change Details |