调用DescribeCdnSubList查询已定制的报表任务。
接口说明
调用该接口默认返回所有已定制的报表,但目前只支持展示单个定制任务,因此调用结果只会返回一个定制报表任务。
单用户调用频率:3 次/秒。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
cdn:DescribeCdnSubList |
get |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
当前API无需请求参数
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| Content |
object |
已定制的报表任务。 |
{"RequestId":"3250A51D-C11D-46BA-B6B3-95348EEDE652","Description":"成功","Content":{"data":[{"subId":5,"reportId":[1,2,3],"createTime":"2020-09-25T09:39:33Z","domains"["all"],"effectiveFrom":"2020-09-17T00:00:00Z","effectiveEnd":"2020-11-17T00:00:00Z","status":"enable"}]}} |
| data |
array<object> |
||
|
object |
|||
| createTime |
string |
2024-05-16T09:43:38Z |
|
| domains |
array |
||
|
string |
a.b.com |
||
| effectiveEnd |
string |
2024-05-16T09:43:38Z |
|
| effectiveFrom |
string |
2024-05-16T09:43:38Z |
|
| reportId |
array |
||
|
integer |
1 |
||
| status |
string |
enable |
|
| subId |
integer |
1 |
|
| RequestId |
string |
请求 ID。 |
3250A51D-C11D-46BA-B6B3-95348EEDE652 |
data 数据说明
| 参数 | 类型 | 描述 |
| subId | Long | 任务的请求 ID。 |
| reportId | Long[] | 报表 ID 列表。 |
| createTime | String | 报表创建时间。 |
| domains | String[] | 定制报表的域名列表。 |
| effectiveFrom | String | 定制任务开始时间。 |
| effectiveEnd | String | 定制任务结束时间。 |
| status | String | 定制任务状态。取值: enable:启用。 disable:关闭。 |
示例
正常返回示例
JSON格式
{
"Content": {
"data": [
{
"createTime": "2024-05-16T09:43:38Z",
"domains": [
"a.b.com"
],
"effectiveEnd": "2024-05-16T09:43:38Z",
"effectiveFrom": "2024-05-16T09:43:38Z",
"reportId": [
1
],
"status": "enable",
"subId": 1
}
]
},
"RequestId": "3250A51D-C11D-46BA-B6B3-95348EEDE652"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter is invalid. | 参数错误 |
| 400 | TimeParseFailed | Failed to parse the time parameter. | 解析时间参数失败 |
| 400 | SubscriptionAlreadyExists | The subscription already exists. | 定制服务已开通 |
| 400 | SubscriptionNotFound | The subscription is not found. | 未开通定制服务 |
| 400 | NameAlreadyExists | The name already exists. | 名称已存在 |
| 400 | DeliverExceedLimit | The maximum number of subscribed tasks is exceeded. | 订阅任务个数已达上限 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。