Queries the access details of a VPC firewall.
Operation description
QPS limits
The queries per second (QPS) limit for this API is 10 for each user. If you exceed this limit, API calls are throttled, which can affect your business. We recommend that you call this API at a reasonable rate.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language of the response. Valid values:
|
zh |
| Lang |
string |
No |
The language of the response. Valid values:
|
zh |
| StartTime |
string |
Yes |
The start of the time range to query. This value is a UNIX timestamp that is accurate to the second. |
1655778046 |
| EndTime |
string |
Yes |
The end of the time range to query. This value is a UNIX timestamp that is accurate to the second. |
1729042555 |
| VpcId |
string |
Yes |
The ID of the VPC. |
vpc-2ze4xj5kmb5udb**** |
| Port |
string |
No |
The port number. |
80 |
| Direction |
string |
No |
The traffic direction. Valid values:
Note
If you do not specify this parameter, traffic in all directions is queried. |
in |
| IPProtocol |
string |
No |
The protocol type. Valid values:
|
tcp |
| RiskLevel |
string |
No |
The risk level. |
3 |
| PeerVpcId |
string |
No |
The ID of the peer VPC. |
vpc-90rq0anm6t8vbwbo**** |
| PeerAssetIP |
string |
No |
The IP address of the peer asset. |
10.125.1.XX |
| PeerAssetInstanceId |
string |
No |
The instance ID of the peer asset. |
i-123451 |
| PeerAssetInstanceName |
string |
No |
The instance name of the peer asset. |
ecs22 |
| AssetIP |
string |
No |
The IP address of the local asset. |
192.0.XX.XX |
| Sort |
string |
No |
The sorting criterion. Valid values are:
|
InBytes |
| Order |
string |
No |
The sort order. Valid values:
|
desc |
| CurrentPage |
string |
No |
The page number. |
1 |
| PageSize |
string |
No |
The number of entries per page. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| TotalCount |
integer |
The total number of entries. |
9 |
| RequestId |
string |
The ID of the request. |
8EAC2347-E85A-5DFF-9F49-B8E1BAFB**** |
| DataList |
array<object> |
The data entries. |
|
|
object |
A data entry. |
||
| SessionCount |
integer |
The total number of sessions. |
27 |
| PeerAssetInstanceId |
string |
The instance ID of the peer asset. |
i-123451 |
| PeerAssetIP |
string |
The IP address of the peer asset. |
10.125.1.XX |
| RegionNo |
string |
The ID of the region where the asset is located. |
cn-shenzhen |
| OutBytes |
integer |
The number of sent bytes. |
1123 |
| InBytes |
integer |
The number of received bytes. |
17845821669.0 |
| peerVpcName |
string |
The name of the peer VPC. |
vpc-test |
| PeerVpcId |
string |
The ID of the peer VPC. |
vpc-123411 |
| PeerAssetInstanceName |
string |
The instance name of the peer asset. |
test |
Examples
Success response
JSON format
{
"TotalCount": 9,
"RequestId": "8EAC2347-E85A-5DFF-9F49-B8E1BAFB****",
"DataList": [
{
"SessionCount": 27,
"PeerAssetInstanceId": "i-123451",
"PeerAssetIP": "10.125.1.XX",
"RegionNo": "cn-shenzhen",
"OutBytes": 1123,
"InBytes": 17845821669,
"peerVpcName": "vpc-test",
"PeerVpcId": "vpc-123411\n",
"PeerAssetInstanceName": "test"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.