Deleting VPN Users in Batches
Function
This API is used to delete VPN users with specified IDs in batches.
Calling Method
For details, see Calling APIs.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
- If you are using identity policy-based authorization, the following identity policy-based permissions are required.
| Action | Access Level | Resource Type (*: required) | Condition Key | Alias | Dependencies |
|---|---|---|---|---|---|
| vpn:p2cVpnUser:batchDelete | write | vpnConnections | - | - |
URI
POST /v5/{project_id}/p2c-vpn-gateways/vpn-servers/{vpn_server_id}/users/batch-delete
| 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. |
Request
- Request parameters
Table 2 Request parameters Parameter
Type
Mandatory
Description
users
Array of
objects
Yes
Specifies the list of VPN users to be deleted.
- Example request
POST https://{Endpoint}/v5/{project_id}/p2c-vpn-gateways/vpn-servers/{vpn_server_id}/users/batch-delete { "users": [ { "id": "cc975b1d-ede5-448d-a47d-9dbf11f5d842" }, { "id": "30ad347e-e36e-42bd-a36b-c38f8ecc8bda" } ] }
| Parameter | Type | Description |
|---|---|---|
| request_id | String | Specifies a request ID. |
- Example response
{ "request_id": "c63d850876bcddbdfbd11776cce57914" }
Status Codes
For details, see Status Codes.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot