查询单条边缘函数路由配置。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
esa:GetRoutineRoute |
get |
*Site
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| SiteId |
integer |
是 |
站点 ID,可通过调用 ListSites 接口获取。 |
123456**** |
| ConfigId |
integer |
是 |
配置的 ConfigId,可通过调用 ListSiteRoutes 接口获取 ConfigId。 |
35281609698**** |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
请求 ID。 |
36af3fcc-43d0-441c-86b1-428951dc8225 |
| ConfigId |
integer |
配置 ID。 |
352816****** |
| ConfigType |
string |
配置类型,可以根据此参数查全局配置或者规则配置,取值范围:
|
global |
| SiteVersion |
integer |
站点的版本号。 |
0 |
| Sequence |
integer |
规则执行顺序。 |
1 |
| RouteEnable |
string |
路由开关。取值范围:
|
on |
| Rule |
string |
规则内容。 |
(http.host eq \"video.example.com\") |
| RouteName |
string |
路由名称。 |
test_route |
| RoutineName |
string |
边缘函数 Routine 名。 |
test-routine1 |
| Bypass |
string |
旁路模式。取值范围:
|
on |
| Mode |
string |
配置模式。取值范围:
|
simple |
| Fallback |
string |
异常回源开关,开启后若函数出现异常如 CPU 使用超限则请求回源。取值范围:
|
on |
| Timeout |
string |
5 |
示例
正常返回示例
JSON格式
{
"RequestId": "36af3fcc-43d0-441c-86b1-428951dc8225",
"ConfigId": 0,
"ConfigType": "global",
"SiteVersion": 0,
"Sequence": 1,
"RouteEnable": "on",
"Rule": "(http.host eq \\\"video.example.com\\\")\n",
"RouteName": "test_route",
"RoutineName": "test-routine1",
"Bypass": "on",
"Mode": "simple",
"Fallback": "on",
"Timeout": "5"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | 调用服务失败,请稍后重试或联系客服咨询详情。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。