Querying VPN Users in a Group
Function
This API is used to query information about users in a VPN user group with a specified ID.
Calling Method
For details, see Calling APIs.
URI
GET /v5/{project_id}/p2c-vpn-gateways/vpn-servers/{vpn_server_id}/groups/{group_id}/users
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
project_id |
String |
Yes |
Specifies a project ID. You can obtain the project ID by referring to Obtaining the Project ID. |
vpn_server_id |
String |
Yes |
Specifies the ID of a VPN server. |
group_id |
String |
Yes |
Specifies the ID of a user group. |
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
limit |
Integer |
No |
Specifies the number of records returned on each page during pagination query. |
marker |
String |
No |
|
Request
Response
- Response parameters
Returned status code 200: successful query
Table 3 Parameters in the response body Parameter
Type
Description
users
Array of VpnUserInGroup objects
Specifies the user group list object.
total_count
integer
Specifies the total number of users.
page_info
PageInfo object
Specifies pagination query information.
request_id
String
Specifies a request ID.
Table 4 VpnUserInGroup Parameter
Type
Description
id
String
- Specifies a user ID.
- The value is a UUID containing 36 characters.
name
String
Specifies a username.
description
String
Specifies user description.
Table 5 PageInfo Parameter
Type
Description
next_marker
String
Specifies the marker of the next page. The value is the time when the last resource in the last query response was created.
current_count
Integer
Specifies the number of resources in the list.
- Example response
{ "users": [ { "id": "41ad472e-d3e4-482b-8f00-7b2c1bfc4b7d", "name": "user1", "description": "User1's description" } ], "total_count": 1, "page_info": { "current_count": 1 }, "request_id": "146c67110e52963d5bf62785aede7308" }
Status Codes
For details, see Status Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.