該介面用於設定HTTP DDoS深度學習和防護配置資訊。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
esa:SetHttpDDoSAttackIntelligentProtection |
get |
*Site
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| SiteId |
integer |
是 |
網站 ID,可通過調用 ListSites 介面擷取。 |
123456**** |
| AiMode |
string |
是 |
HTTP DDoS 深度學習和防護模式。取值:
|
defense |
| AiTemplate |
string |
是 |
HTTP DDoS 深度學習和防護等級。取值:
|
level60 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| RequestId |
string |
請求 ID。 |
156A6B-677B1A-4297B7-9187B7-2B44792 |
| SiteId |
integer |
網站 ID。 |
123456**** |
| AiMode |
string |
HTTP DDoS 智能防護模式。取值:
|
defense |
| AiTemplate |
string |
HTTP DDoS 智能防護等級。取值:
|
level60 |
樣本
正常返回樣本
JSON格式
{
"RequestId": "156A6B-677B1A-4297B7-9187B7-2B44792",
"SiteId": 0,
"AiMode": "defense",
"AiTemplate": "level60"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter is invalid. | 輸入參數規範校正失敗。 |
| 400 | ErrSiteIdNoteEnterprise | This feature is unavailable because your website is not associated with an Enterprise plan. Upgrade your plan to Enterprise. | 當前網站非企業版套餐,無法使用該功能,請升級網站為企業版套餐。 |
| 500 | InternalError | Failed to call the service. Try again later or contact technical support. | 調用服務失敗,請稍後重試或聯絡客服諮詢詳情。 |
| 403 | SiteIdDDoSVersionCheckFailed | SiteId DDoS version check failed. | 網站對應DDoS版本檢查失敗。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。