获取Quota列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求语法
GET /api/v1/quotas HTTP/1.1
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
tenantId | string | 否 | 租户 id | 280747109771520 |
region | string | 否 | 地域 id | cn-beijing |
productId | string | 否 | 产品 id | ODPS |
billingType | string | 否 | 付费模式 | subscription |
saleTags | string | 否 | 可以根据费用标签来过滤 quota 对象,费用标签是用户在标签云产品创建的。 | {"tag":"this_is_tag_demo"} |
marker | string | 否 | 设定结果从 marker 之后按字母排序的第一个开始返回。 | cHlvZHBzX3VkZl8xMDExNV8xNDU3NDI4NDkzKg== |
maxItem | long | 否 | 限制返回的最大数。 | 100 |
返回参数
示例
正常返回示例
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": {
"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"
}
错误码
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 |
---|---|---|
2024-10-09 | API 内部配置变更,不影响调用 | 查看变更详情 |
2023-09-21 | OpenAPI 返回结构发生变更 | 查看变更详情 |
2023-08-22 | OpenAPI 返回结构发生变更 | 查看变更详情 |
2022-04-14 | 新增 OpenAPI | 查看变更详情 |