查询站点对应的四层应用列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
esa:ListTransportLayerApplications |
list |
*Site
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| SiteId |
integer |
是 |
站点 ID,可通过调用 ListSites 接口获取。 |
123456****** |
| PageNumber |
integer |
否 |
分页查询时设置的页码。 起始值:1。 默认值:1。 |
1 |
| PageSize |
integer |
否 |
每页大小。最大值为 500。 |
500 |
| MatchType |
string |
否 |
针对四层应用主机记录的查询类型,支持以下 4 种类型,默认为精确查询。
|
fuzzy |
| RecordName |
string |
否 |
四层应用的主机记录。 |
www.example.com |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
请求响应。 |
||
| RequestId |
string |
请求 ID。 |
CB1A380B-09F0-41BB-A198-72F8FD6DA2FE |
| PageNumber |
integer |
当前页码。 |
1 |
| PageSize |
integer |
分页大小。 |
1 |
| TotalCount |
integer |
四层应用总数。 |
1 |
| Applications |
array<object> |
四层应用列表。 |
|
|
array<object> |
四层应用详情。 |
||
| Rules |
array<object> |
转发规则列表。 |
|
|
object |
转发规则详情。 |
||
| Protocol |
string |
转发规则协议,取值:
|
TCP |
| EdgePort |
string |
边缘端口。支持:
|
80 |
| SourcePort |
string |
源站端口。支持:
|
80 |
| Source |
string |
源站具体的值,需要与源站类型相匹配。 |
1.1.1.1 |
| Comment |
string |
规则的备注信息。 |
测试 |
| ClientIPPassThroughMode |
string |
客户端 IP 传递协议,支持:
|
off |
| SourceType |
string |
源站类型,支持:
|
ip |
| RuleId |
integer |
四层加速规则 ID。 |
20258028**** |
| ApplicationId |
integer |
四层应用 ID。 |
170997271816**** |
| RecordName |
string |
四层应用的域名。 |
test.example.com |
| SiteId |
integer |
站点 ID。 |
36556540048**** |
| RulesCount |
integer |
四层加速应用包含的转发规则数量。 |
1 |
| Cname |
string |
四层加速应用对应的 CNAME 域名。只有站点是 CNAME 方式接入时,该字段才不为空。 |
example.com.ialicdn.com |
| IpAccessRule |
string |
IP 访问规则开关,开启后,WAF 中的 IP 访问规则对四层应用生效。
枚举值:
|
on |
| Ipv6 |
string |
Ipv6 开关。 枚举值:
|
on |
| Status |
string |
四层应用状态
枚举值:
|
active |
| CrossBorderOptimization |
string |
是否开启中国大陆网络接入优化,默认关闭。取值范围:
枚举值:
|
on |
| StaticIp |
string |
是否开启固定 IP,默认关闭。取值范围:
枚举值:
|
on |
| StaticIpV4List |
array<object> |
开启固定 IP 功能后,为此四层应用分配的固定 IP,IPv4 的地址列表。 |
|
|
object |
单个固定 IPv4,包括 IP 地址和其状态。 |
||
| Address |
string |
IP 地址。 |
1.1.1.2 |
| Status |
string |
IP 地址的状态,取值范围:
枚举值:
|
healthy |
示例
正常返回示例
JSON格式
{
"RequestId": "CB1A380B-09F0-41BB-A198-72F8FD6DA2FE",
"PageNumber": 1,
"PageSize": 1,
"TotalCount": 1,
"Applications": [
{
"Rules": [
{
"Protocol": "TCP",
"EdgePort": "80",
"SourcePort": "80",
"Source": "1.1.1.1",
"Comment": "测试",
"ClientIPPassThroughMode": "off",
"SourceType": "ip",
"RuleId": 0
}
],
"ApplicationId": 0,
"RecordName": "test.example.com\n",
"SiteId": 0,
"RulesCount": 1,
"Cname": "example.com.ialicdn.com\n",
"IpAccessRule": "on",
"Ipv6": "on",
"Status": "active",
"CrossBorderOptimization": "on",
"StaticIp": "on",
"StaticIpV4List": [
{
"Address": "1.1.1.2",
"Status": "healthy"
}
]
}
]
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | 调用服务失败,请稍后重试或联系客服咨询详情。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。