Query the list of Layer 4 applications for a site.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
esa:ListTransportLayerApplications |
list |
*Site
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SiteId |
integer |
Yes |
Site ID. You can obtain it by calling the ListSites API. |
123456****** |
| PageNumber |
integer |
No |
The page number for paginated queries. The value must be greater than or equal to 1. |
1 |
| PageSize |
integer |
No |
The number of entries per page for paginated queries. Valid values: 1-500. |
500 |
| MatchType |
string |
No |
The query type for the host record of Layer 4 applications. The following four types are supported, and the default is exact match.
Valid values:
|
fuzzy |
| RecordName |
string |
No |
The host record of the Layer 4 application. |
www.example.com |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| RequestId |
string |
The request ID. |
CB1A380B-09F0-41BB-A198-72F8FD6DA2FE |
| PageNumber |
integer |
The current page number, same as the PageNumber request parameter. |
1 |
| PageSize |
integer |
The number of entries per page. |
1 |
| TotalCount |
integer |
The total number of Layer 4 applications. |
1 |
| Applications |
array<object> |
The list of Layer 4 applications. |
|
|
array<object> |
Details of a Layer 4 application. |
||
| Rules |
array<object> |
The list of forwarding rules. |
|
|
object |
Details of a forwarding rule. |
||
| Protocol |
string |
The protocol of the forwarding rule. Valid values:
|
TCP |
| EdgePort |
string |
The edge port. The following formats are supported:
|
80 |
| SourcePort |
string |
The origin server port. The following formats are supported:
|
80 |
| Source |
string |
The specific value of the origin server, which must match the origin server type. |
1.1.1.1 |
| Comment |
string |
The remarks for the rule. |
Test |
| ClientIPPassThroughMode |
string |
The client IP pass-through protocol. Valid values:
|
off |
| SourceType |
string |
The origin server type. Valid values:
|
ip |
| RuleId |
integer |
The ID of the Layer 4 acceleration rule. |
20258028**** |
| ApplicationId |
integer |
The Layer 4 application ID. |
170997271816**** |
| RecordName |
string |
The domain name of the Layer 4 application. |
test.example.com |
| SiteId |
integer |
The site ID. |
36556540048**** |
| RulesCount |
integer |
The number of forwarding rules contained in the Layer 4 acceleration application. |
1 |
| Cname |
string |
The CNAME domain name corresponding to the Layer 4 acceleration application. This field is non-empty only when the site is connected via the CNAME method. |
example.com.ialicdn.com |
| IpAccessRule |
string |
The IP access rule switch. When enabled, the IP access rules in WAF take effect for the Layer 4 application.
Valid values:
|
on |
| Ipv6 |
string |
The IPv6 switch. Valid values:
Valid values:
|
on |
| Status |
string |
The status of the Layer 4 application.
Valid values:
|
active |
| CrossBorderOptimization |
string |
Indicates whether mainland China network access optimization is enabled. Disabled by default. Valid values:
Valid values:
|
on |
| StaticIp |
string |
Indicates whether static IP is enabled. Disabled by default. Valid values:
Valid values:
|
on |
| StaticIpV4List |
array<object> |
The list of static IPv4 addresses assigned to this Layer 4 application after the static IP feature is enabled. |
|
|
object |
A single static IPv4 address, including the IP address and its status. |
||
| Address |
string |
The IP address. |
1.1.1.2 |
| Status |
string |
The status of the IP address. Valid values:
Valid values:
|
healthy |
| KeepAliveProtection |
string |
Indicates whether keep-alive protection is enabled. Disabled by default. Valid values:
Valid values:
|
off |
Examples
Success response
JSON format
{
"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": "Test",
"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"
}
],
"KeepAliveProtection": "off"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | Failed to call the service. Try again later or contact technical support. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.