查询四层应用详情。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| SiteId |
integer |
是 |
站点 ID,可通过调用 ListSites 接口获取。 |
123456**** |
| ApplicationId |
integer |
是 |
应用 ID,可通过调用 ListTransportLayerApplications 接口获取。 |
170997271816**** |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
请求响应。 |
||
| RequestId |
string |
Id of the request |
EB635996-1FD6-5DFD-BA57-27A849599940 |
| SiteId |
integer |
站点 ID。 |
123456**** |
| ApplicationId |
integer |
四层应用 ID。 |
17099311410**** |
| RulesCount |
integer |
四层加速应用包含的转发规则数量。 |
1 |
| Rules |
array<object> |
转发规则列表。 |
|
|
object |
转发规则详情。 |
||
| Source |
string |
源站具体的值,需要与源站类型相匹配。 |
1.1.1.1 |
| Protocol |
string |
转发规则协议,取值:
|
TCP |
| EdgePort |
string |
边缘端口。支持:
|
80 |
| SourceType |
string |
源站类型,支持:
|
domain |
| SourcePort |
string |
源站端口。支持:
|
80 |
| ClientIPPassThroughMode |
string |
客户端 IP 传递协议,支持:
|
off |
| Comment |
string |
规则的备注信息。 |
测试 |
| RuleId |
integer |
规则 ID。 |
1234323*** |
| Cname |
string |
四层加速应用对应的 CNAME 域名。只有站点是 CNAME 方式接入时,该字段才不为空。 |
example.com.ialicdn.com |
| RecordName |
string |
四层应用的域名。 |
test.example.com |
| IpAccessRule |
string |
IP 访问规则开关,开启后,WAF 中的 IP 访问规则对四层应用生效。
枚举值:
|
on |
| Ipv6 |
string |
Ipv6 开关。 枚举值:
|
on |
| Status |
string |
四层应用状态
枚举值:
|
active |
| CrossBorderOptimization |
string |
是否开启中国大陆网络接入优化,默认关闭。取值范围:
枚举值:
|
on |
| StaticIp |
string |
||
| StaticIpV4List |
array<object> |
||
|
object |
|||
| Address |
string |
||
| Status |
string |
示例
正常返回示例
JSON格式
{
"RequestId": "EB635996-1FD6-5DFD-BA57-27A849599940",
"SiteId": 0,
"ApplicationId": 0,
"RulesCount": 1,
"Rules": [
{
"Source": "1.1.1.1",
"Protocol": "TCP",
"EdgePort": "80",
"SourceType": "domain",
"SourcePort": "80",
"ClientIPPassThroughMode": "off",
"Comment": "测试",
"RuleId": 0
}
],
"Cname": "example.com.ialicdn.com",
"RecordName": "test.example.com",
"IpAccessRule": "on",
"Ipv6": "on",
"Status": "active",
"CrossBorderOptimization": "on",
"StaticIp": "",
"StaticIpV4List": [
{
"Address": "",
"Status": ""
}
]
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | 调用服务失败,请稍后重试或联系客服咨询详情。 |
| 400 | TransportLayerApplicationNotExist | The layer -4 accelerated application of the current operation does not exist. Modify it and try again. | 当前操作的四层加速应用不存在,请修改后重试。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。