Queries the clients that have connected to a VPN gateway through SSL-VPN connections.
Operation description
If your VPN gateway was created before December 10, 2022, you must upgrade your VPN gateway to the latest version before you can view connection information about SSL clients. For more information, see Upgrade a VPN gateway.
If your VPN gateway was created after December 10, 2022, you can view connection information about SSL clients by default.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
vpc:DescribeSslVpnClients | list |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID of the VPN gateway. You can call the DescribeRegions operation to query the most recent region list. | eu-central-1 |
VpnGatewayId | string | Yes | The ID of the VPN gateway. | vpn-gw8gfb947ctddabja**** |
PageNumber | integer | No | The page number. Default value: 1. | 1 |
PageSize | integer | No | The number of entries per page. Valid values: 1 to 50. Default value: 10. | 10 |
Response parameters
Examples
Sample success responses
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. | You are unauthorized to perform this operation on the specified resource. Acquire the required permissions and try again. |
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. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|