查詢重寫URL配置詳情。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
esa:GetRewriteUrlRule |
get |
*Site
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| SiteId |
integer |
是 |
網站 ID,可通過調用 ListSites 介面擷取。 |
123456**** |
| ConfigId |
integer |
是 |
配置 ID。可通過調用 ListRewriteUrlRules 介面擷取。 |
35281609698**** |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
請求響應結果。 |
||
| RequestId |
string |
請求 ID。 |
0AEDAF20-4DDF-4165-8750-47FF9C1929C9 |
| ConfigId |
integer |
配置 ID。 |
35281609698**** |
| ConfigType |
string |
配置類型。取值範圍:
|
global |
| SiteVersion |
integer |
網站配置的版本號碼。開啟了配置版本管理的網站,可以通過該參數指定配置生效的網站版本,預設為版本 0。 |
0 |
| Sequence |
integer |
規則執行順序。數值越小越優先執行。 |
1 |
| RuleEnable |
string |
規則開關。添加全域配置的時候不需要設定該參數。取值範圍:
|
on |
| Rule |
string |
規則內容,使用條件運算式來匹配使用者請求。添加全域配置的時候不需要設定該參數。存在兩種使用情境:
|
(http.host eq "video.example.com") |
| RuleName |
string |
規則名稱。添加全域配置的時候不需要設定該參數。 |
rule_example |
| RewriteUriType |
string |
路徑重寫類型。取值範圍:
|
static |
| Uri |
string |
重寫後的目標 URI。 |
/image/example.jpg |
| RewriteQueryStringType |
string |
查詢字串重寫類型。取值範圍:
|
static |
| QueryString |
string |
重寫後的查詢字串。 |
example=123 |
樣本
正常返回樣本
JSON格式
{
"RequestId": "0AEDAF20-4DDF-4165-8750-47FF9C1929C9",
"ConfigId": 0,
"ConfigType": "global",
"SiteVersion": 0,
"Sequence": 1,
"RuleEnable": "on",
"Rule": "(http.host eq \"video.example.com\")",
"RuleName": "rule_example",
"RewriteUriType": "static",
"Uri": "/image/example.jpg",
"RewriteQueryStringType": "static",
"QueryString": "example=123"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | 調用服務失敗,請稍後重試或聯絡客服諮詢詳情。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。