Queries information about clients that have established SSL-VPN connections to Alibaba Cloud under a specified VPN gateway instance by calling the DescribeSslVpnClients operation.
Operation description
If your VPN gateway instance was created before December 10, 2022, you must upgrade the VPN gateway instance to the latest version before you can view SSL client connection information. For more information, see Upgrade a VPN gateway.
VPN gateway instances created after December 10, 2022 support viewing SSL client connection information by default.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:DescribeSslVpnClients |
list |
*VpnGateway
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the VPN gateway instance. You can call the DescribeRegions operation to query the region ID. |
eu-central-1 |
| VpnGatewayId |
string |
Yes |
The VPN gateway instance ID. |
vpn-gw8gfb947ctddabja**** |
| PageNumber |
integer |
No |
The page number of the list. Default value: 1. |
1 |
| PageSize |
integer |
No |
The maximum number of entries per page in a paged query. Valid values: 1 to 50. Default value: 10. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
885E117D-06A9-38A3-8DD2-40BDAC429FFC |
| VpnGatewayId |
string |
The VPN gateway instance ID. |
vpn-gw8gfb947ctddabja**** |
| PageNumber |
integer |
The page number of the list. |
1 |
| PageSize |
integer |
The maximum number of entries per page in a paged query. |
10 |
| TotalCount |
integer |
The total number of entries in the list. |
1 |
| RegionId |
string |
The region ID of the VPN gateway instance. |
eu-central-1 |
| ClientInfoList |
array<object> |
The list of client information. |
|
|
object |
The client information. |
||
| Status |
string |
The status of the SSL-VPN connection. Valid values: online, which indicates that the client has successfully established an SSL-VPN connection to Alibaba Cloud. |
online |
| PrivateIp |
string |
The private IP address that the VPN gateway assigned to the client when the client established an SSL-VPN connection to Alibaba Cloud. |
10.10.10.10 |
| SendBytes |
integer |
The traffic that the VPN gateway sent to the client over the SSL-VPN connection. Unit: bytes. |
57144 |
| ConnectedTime |
integer |
The timestamp when the client established the SSL-VPN connection to Alibaba Cloud. Unit: milliseconds. The timestamp is in the UNIX format and represents the total number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC to the time when the SSL-VPN connection was established. |
1670985008000 |
| CommonName |
string |
The SSL client certificate used by the client to establish the SSL-VPN connection to Alibaba Cloud. Note
If the client uses two-factor identity authentication to establish the SSL-VPN connection to Alibaba Cloud, the value of this parameter is the username of the client. |
CN=vsc-gw8gkh6gtilf1whgc**** |
| Ip |
string |
The public IP address that the client used to establish the SSL-VPN connection to Alibaba Cloud. |
8.XX.XX.15 |
| ReceiveBytes |
integer |
The traffic that the VPN gateway received from the client over the SSL-VPN connection. Unit: bytes. |
60782 |
| Port |
string |
The port number that the client used to establish the SSL-VPN connection to Alibaba Cloud. |
4**** |
Examples
Success response
JSON format
{
"RequestId": "885E117D-06A9-38A3-8DD2-40BDAC429FFC",
"VpnGatewayId": "vpn-gw8gfb947ctddabja****",
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 1,
"RegionId": "eu-central-1",
"ClientInfoList": [
{
"Status": "online",
"PrivateIp": "10.10.10.10",
"SendBytes": 57144,
"ConnectedTime": 1670985008000,
"CommonName": "CN=vsc-gw8gkh6gtilf1whgc****",
"Ip": "8.XX.XX.15",
"ReceiveBytes": 60782,
"Port": "4****"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidVpnGatewayInstanceId.NotFound | The specified vpn gateway instance id does not exist. | The specified VPN gateway does not exist. Check whether the specified VPN gateway is valid. |
| 400 | InvalidInstanceId.NotFound | The specified instance id does not exist. | The specified instance ID does not exist. |
| 403 | Forbbiden.SubUser | User not authorized to operate on the specified resource as your account is created by another user. | |
| 403 | Forbidden | User not authorized to operate on the specified resource. | You do not have the permissions to manage the specified resource. Apply for the permissions and try again. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.