開啟來源站點防護。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| SiteId |
integer |
是 |
網站 ID,可通過調用 ListSites 介面擷取。 |
123456**** |
| AutoConfirmIPList |
string |
否 |
自動啟用最新回源 IP 列表 |
off |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| RequestId |
string |
請求 ID。 |
CB1A380B-09F0-41BB-A198-72F8FD6DA2FE |
樣本
正常返回樣本
JSON格式
{
"RequestId": "CB1A380B-09F0-41BB-A198-72F8FD6DA2FE"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | FunctionQuotaCheckFailed | The quota verification for this function fails. It may be that the configuration of this function exceeds the limit of the site plan. Please check the plan introduction document corresponding to this site. | 當前套餐不支援配置受限功能,請檢查套餐相關的功能描述。 |
| 400 | ArgQuotaCheckFailed | The passed-in parameter value failed to verify the validity of the plan. Please check the plan document to obtain the range of parameters that can be configured for the site plan. | 當前套餐不支援配置受限參數,請檢查輸入的參數。 |
| 400 | FunctionConflict | The feature configuration conflicts. Sites with version management enabled cannot configure this feature. | 當前配置的功能與其它功能存在衝突,如需要配置請先刪除衝突的功能配置。 |
| 400 | ConfigConflicts | Configuration conflicts, usually when multiple configurations are configured under the same function of the same site, such as duplicate rule names between multiple configurations. | 參數唯一性校正失敗,請檢查重複的參數值。 |
| 400 | FunctionArgError | Failed to check the configured function parameters. | 配置的功能參數檢查失敗 |
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | 調用服務失敗,請稍後重試或聯絡客服諮詢詳情。 |
| 400 | InvalidParameter.Configs | Invalid parameter configurations. Check whether your feature configurations are in the valid format and comply with relevant requirements. | 配置參數錯誤,請檢查網站功能設定項是否遵循規定格式及要求。 |
| 404 | SiteNotFound | The website does not exist or does not belong to you. | 網站不存在,或者不屬於你。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。