該介面用於編輯網站的Web Application Firewall(WAF)配置。使用者可以通過此介面修改網站的WAF設定,如修改WAF識別的用戶端IP等。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
esa:EditSiteWafSettings |
none |
*Site
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| SiteId |
integer |
否 |
網站 ID,可通過調用 ListSites 介面擷取。 |
1 |
| SiteVersion |
integer |
否 |
網站版本。 |
0 |
| Settings | WafSiteSettings |
否 |
網站 WAF 配置資訊,以 JSON 格式傳遞。 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| RequestId |
string |
請求 ID。 |
36af3fcc-43d0-441c-86b1-428951dc8225 |
樣本
正常返回樣本
JSON格式
{
"RequestId": "36af3fcc-43d0-441c-86b1-428951dc8225"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter is invalid. | 輸入參數規範校正失敗。 |
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | 調用服務失敗,請稍後重試或聯絡客服諮詢詳情。 |
| 400 | SpecifiedVersionReadOnly | The specified version number is read-only and cannot be modified. | 指定的版本號碼為唯讀版本, 無法修改版本配置。 |
| 403 | %s.NotSupport | The specified resource type %s is not supported. | 不支援指定的資源類型。如需使用該類型資源,請與我們聯絡。 |
| 403 | %s.OverQuota | The quantity of %s exceeds the quota. | 該資源的數量超出了配額所規定的範圍,如需申請更多的額度,請與我們聯絡。 |
| 403 | %s.WrongValueMatched | The value of specified parameter %s can not pass the matching check. | 指定的參數對應的值不能通過匹配校正。如果您確定需要使用該參數值,請與我們聯絡。 |
| 403 | Site.NotExist | The specified website does not exist or is not recognized by the system.Check whether the specified website identifier is valid and matches a website that is active, defined, and recognized by the system.If you want to add a new website, make sure that the creation and registration process is complete to integrate the website to the system. | 指定的網站不存在或當前未被系統識別。請檢查網站標識符是否準確,並確保它與一個已定義、當前活躍且在系統公認的網站網路中可訪問的網站相匹配。如果該網站是預定新增的,請確保已完成適當的建立或註冊流程,以將其整合到系統中。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。