調用EnableSiteMonitors介面啟用一個或多個網站監控任務。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
cms:EnableSiteMonitors |
update |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| TaskIds |
string |
是 |
網站監控任務 ID。多個 ID 之間用英文逗號(,)分隔。 |
49f7b317-7645-4cc9-94fd-ea42e522****,49f7b317-7645-4cc9-94fd-ea42e522**** |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| Code |
string |
狀態代碼。 說明
200 表示成功。 |
200 |
| Message |
string |
返回資訊。 |
successful |
| RequestId |
string |
請求 ID。 |
3fcd12e7-d387-42ee-b77e-661c775bb17f |
| Success |
string |
操作是否成功。取值:
|
true |
| Data |
object |
網站監控任務影響探測點的記錄數。 |
|
| count |
integer |
探測點的記錄條數。 |
0 |
樣本
正常返回樣本
JSON格式
{
"Code": "200",
"Message": "successful",
"RequestId": "3fcd12e7-d387-42ee-b77e-661c775bb17f",
"Success": "true",
"Data": {
"count": 0
}
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | InvalidQueryParameter | %s | |
| 401 | AccessDeniedException | You donot have sufficient access to perform this action. | |
| 500 | InternalError | %s | |
| 402 | LimitExceeded | The quota for this customer had been reached. | |
| 403 | Forbidden | You are not authorized to operate the specified resource. | 沒有許可權,請使用RAM進行授權 |
| 403 | RestrictedUser | The user's operation is restricted, please register NAAM product code. | |
| 403 | UnauthorizedTasks | You are not permitted to operate the specified tasks. | 您無權操作對應的任務 |
| 404 | TaskNotExist | The specified task does not exist. | 任務不存在 |
| 406 | ExceedingQuota | Exceeding quota limits. | 任務數量超出限額 |
| 429 | ThrottlingException | The request was denied due to request throttling. | |
| 409 | %s | %s |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。