修改網路最佳化配置。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
esa:UpdateNetworkOptimization |
update |
*Site
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| SiteId |
integer |
是 |
網站 ID,可通過調用 ListSites 介面擷取。 |
123456**** |
| ConfigId |
integer |
是 |
配置 ID。 |
352816096987136 |
| RuleName |
string |
否 |
規則名稱。添加全域配置的時候不需要設定該參數。 |
rule_example |
| RuleEnable |
string |
否 |
規則開關。添加全域配置的時候不需要設定該參數。取值範圍:
|
on |
| Rule |
string |
否 |
規則內容,使用條件運算式來匹配使用者請求。添加全域配置的時候不需要設定該參數。存在兩種使用情境:
|
(http.host eq \"video.example.com\") |
| SmartRouting |
string |
否 |
是否開啟智能路由服務,預設關閉。取值範圍:
|
on |
| Http2Origin |
string |
否 |
是否開啟 HTTP2 回源,預設關閉。取值範圍:
|
on |
| Websocket |
string |
否 |
是否開啟 Websocket,預設開啟。取值範圍:
|
on |
| Grpc |
string |
否 |
是否開啟 GRPC,預設關閉。取值範圍:
|
on |
| UploadMaxFilesize |
string |
否 |
最大上傳檔案大小,單位是 MB,取值範圍:100~500。 |
100 |
| Sequence |
integer |
否 |
規則執行順序,數值越小越優先執行。 |
1 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| RequestId |
string |
請求 ID。 |
CB1A380B-09F0-41BB-A198-72F8FD6DA2FE |
樣本
正常返回樣本
JSON格式
{
"RequestId": "CB1A380B-09F0-41BB-A198-72F8FD6DA2FE"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | CanNotSetSequence | Non-regular configuration, you cannot set Sequence parameters. | 全域配置中不允許設定Sequence參數。 |
| 400 | CacheReserveSiteExceedLimit | The number of binding sites of the cache reserve instance exceeds the limit. The number of binding sites of a single cache reserve instance is limited. Please see the document for the limit. | 緩衝保持執行個體綁定的網站數量超過上限。 |
| 400 | CompileRuleError | Rule compilation failed, please check the rule information passed in to ensure that the rule is written according to the syntax described in the document. | 規則編譯失敗,請檢查傳入的規則配置,請參考介面文檔中描述的規則配置格式。 |
| 400 | SiteConfigLengthExceedLimit | The overall configuration size of the site exceeds the limit, and the total size of all functional configurations of the site cannot exceed 512K. | 網站功能配置大小超出限制,總大小不能超過512K。 |
| 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 | RuleRegexQuotaCheckFailed | When configuring rules, rules with regular expressions are not allowed in this plan. Please check the relevant documentation of the plan or upgrade the plan. | 當前套餐不支援配置帶有正則的規則引擎,請查看套餐描述,並升級您的套餐。 |
| 400 | NestedRuleQuotaCheckFailed | The nesting level of rules allowed by the plan failed to be verified. Please modify the nesting level of rules or upgrade the plan. | 規則內嵌子條件數量超過套餐上限,請查看套餐描述,並升級您的套餐。 |
| 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 | ServiceInvokeFailed | The call to the internal service failed. The engineer is resolving the problem. Please wait a moment before trying, or contact customer service for details. | 調用服務失敗,請稍後重試或聯絡客服諮詢詳情。 |
| 400 | FunctionConflict | The feature configuration conflicts. Sites with version management enabled cannot configure this feature. | 當前配置的功能與其它功能存在衝突,如需要配置請先刪除衝突的功能配置。 |
| 400 | SpecifiedVersionReadOnly | The specified version number is read-only and cannot be modified. | 指定的版本號碼為唯讀版本, 無法修改版本配置。 |
| 400 | VersionNotValid | The site does not have version management enabled, or the version number passed in does not exist. | 網站沒有開啟版本管理功能,或者傳入的版本號碼不存在。 |
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | 調用服務失敗,請稍後重試或聯絡客服諮詢詳情。 |
| 400 | InvalidParameter.ArgName | Invalid ArgName. Check your website configuration parameters and make sure that they match the supported features and parameter names listed in the official documentation. | 傳入的ArgName無效,請檢查您提供的網站配置參數,確保它們與官方文檔中列出的支援功能及參數名稱相匹配。 |
| 400 | InvalidParameter.ArgValue | Invalid parameter value. Check whether the value format and length meet the requirements. | 參數值無效,請檢查輸入是否符合規定格式及長度限制。 |
| 400 | InvalidParameter.Configs | Invalid parameter configurations. Check whether your feature configurations are in the valid format and comply with relevant requirements. | 配置參數錯誤,請檢查網站功能設定項是否遵循規定格式及要求。 |
| 400 | InstanceNotExist | The instance does not exist. Check whether the specified instance ID is correct or whether the instance belongs to your account. | 執行個體不存在,請檢查提供的執行個體ID是否正確或該執行個體是否屬於您的賬戶。 |
| 400 | LockFailed | The system is handling requests you previously submitted. Try again later. | 您有其他請求正在處理中,請稍後再進行重試。 |
| 400 | IllegalOperation.VersionManagement | The version management operation failed because incompatible features or environment settings are configured. Adjust your configurations and try again. | 當前進行版本管理操作時,存在與其互斥的功能或環境設定,請先調整相關配置後再嘗試。 |
| 400 | QuotaCheckFailed.VersionManagement | Insufficient quota for version management. Contact technical support. | 當前套餐的版本管理配額不足,請聯絡客服諮詢詳情。 |
| 400 | InvalidConfigId | The input configuration ID: ConfigId it does not exist, query the existing configuration and its valid ConfigId through the ListSiteFunction. | 傳入的ConfigId不存在。 |
| 400 | Instance.NotOnline | Your plan is unavailable due to an overdue payment. Complete the payment first. | 您的套餐執行個體因欠費當前處於非上線狀態,請先完成續約操作以繼續使用。 |
| 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 | MissingParameter | The specified ArgName is required for this function. | 配置特定功能時,缺少必傳參數。 |
| 404 | SiteNotFound | The website does not exist or does not belong to you. | 網站不存在,或者不屬於你。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。