调用DescribeDcdnSubList查询已定制的报表任务。
说明
- 调用该接口默认返回所有已定制的报表,但目前只支持展示单个定制任务,因此调用结果只会返回一个定制报表任务。
- 单用户调用频率:3次/秒。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DescribeDcdnSubList |
系统规定参数。取值:DescribeDcdnSubList。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Content | String | "data": [{"subId": 336,"reportId": [6,8],"createTime": "2021-07-05T06:18:46Z","domains": ["example.com"],"effectiveFrom": "2021-07-05T06:18:46Z","effectiveEnd": "2021-10-05T06:18:46Z","status": "enable"}] |
已定制的报表任务。 |
RequestId | String | 3250A51D-C11D-46BA-B6B3-95348EEDE652 |
请求ID。 |
参数 |
类型 |
描述 |
---|---|---|
subId |
Long |
任务的请求ID。 |
reportId |
Long[] |
报表ID列表。 |
createTime |
String |
报表创建时间。 |
domains |
String[] |
定制报表的域名列表。 |
effectiveFrom |
String |
定制任务开始时间。 |
effectiveEnd |
String |
定制任务结束时间。 |
status |
String |
定制任务状态。取值: enable:启用。 disable:关闭。 |
示例
请求示例
http(s)://dcdn.aliyuncs.com/?Action=DescribeDcdnSubList
&<公共请求参数>
正常返回示例
XML
格式
<DescribeDcdnSubListResponse>
<RequestId>3250A51D-C11D-46BA-B6B3-95348EEDE652</RequestId>
<Content>
<data>
<subId>336</subId>
<reportId>6</reportId>
<reportId>8</reportId>
<createTime>2021-07-05T06:18:46Z</createTime>
<domains>example.com</domains>
<effectiveFrom>2021-07-05T06:18:46Z</effectiveFrom>
<effectiveEnd>2021-10-05T06:18:46Z</effectiveEnd>
<status>enable</status>
</data>
</Content>
</DescribeDcdnSubListResponse>
JSON
格式
{
"RequestId": "3250A51D-C11D-46BA-B6B3-95348EEDE652",
"Content": {
"data": [
{
"subId": 336,
"reportId": [
6,
8
],
"createTime": "2021-07-05T06:18:46Z",
"domains": [
"example.com"
],
"effectiveFrom": "2021-07-05T06:18:46Z",
"effectiveEnd": "2021-10-05T06:18:46Z",
"status": "enable"
}
]
}
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
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. | 订阅任务个数已达上限 |
访问错误中心查看更多错误码。