調用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. | 訂閱任務個數已達上限 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。