检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
On the VPN Gateways page, locate the row that contains the VPN gateway you want to unsubscribe and choose More > Delete in the Operation column.
Click Delete in the Operation column of the target user. In the Delete User dialog box, click OK. After the user is deleted, the user is disconnected and cannot be connected again. Exercise caution when performing this operation.
DELETE https://{Endpoint}/v5/{project_id}/vpn-connection/{vpn_connection_id} { "error_code":"VPN.0001", "error_msg":"invalid request: ILLEGAL not allowed delete vpnConnection", "request_id":"76b771cb-3b2a-151a-5bed-fdf5df12ff82" } Status Codes For details, see Status
Audit and Logs VPN records the create, delete, and modify operations performed on all resources initiated by your account, and sends the records to Cloud Trace Service (CTS) in log files for query, audit, and source tracing. Figure 1 Audit and logs Parent topic: Security
Deleting a Customer Gateway Function This API is used to delete a customer gateway with a specified gateway ID. Calling Method For details, see Calling APIs.
Deleting a VPN Connection Monitor Function This API is used to delete a VPN connection monitor with a specified ID. Calling Method For details, see Calling APIs.
Example request DELETE https://{Endpoint}/v5/{project_id}/{resource_type}/{resource_id}/tags/delete { "tags": [{ "key": "key1", "value": "value1" }] } Response Response parameters Returned status code 204: Tags are successfully deleted.
As such, you also need to delete the VPN gateway to avoid incurring fees. Searching for Resources from Bills and Stopping Billing To delete all unnecessary resources, you can search the billing records by resource ID, and then delete the resources you identify in this way.
vpc:subNetworkInterfaces:update vpc:publicIps:delete vpc:publicIps:update vpc:publicIps:get vpc:publicIps:list vpc:bandwidths:list vpc:ports:get vpc:routeTables:update vpc:routeTables:get √ √ Deleting a VPN gateway DELETE /v5/{project_id}/vpn-gateways/{vgw_id} vpn:vpnGateways:delete
Example VPN custom policy Example 1: Grant permission to delete VPN gateways. { "Version": "1.1", "Statement": [ { "Effect": "Allow", "Action": [ "vpn:vpnGateways:delete" ] } ] } Example 2: Deny VPN connection
/v5/{project_id}/connection-monitors/{connection_monitor_id} vpn:connectionMonitors:delete - √ x Querying a VPN connection monitor GET /v5/{project_id}/connection-monitors/{connection_monitor_id} vpn:connectionMonitors:get - √ x Parent topic: Actions Supported by S2C VPN
Click the Access Policies tab, and click Delete in the Operation column of the target policy. In the Delete Policy dialog box, click OK. After a policy is deleted, users in the user group associated with the policy cannot access related resources on the cloud.
/v5/{project_id}/customer-gateways/{customer_gateway_id} vpn:customerGateways:delete - √ x Parent topic: Actions Supported by S2C VPN
Tag Permission API Action Dependencies IAM Project Enterprise Project Creating a resource tag POST /v5/{project_id}/{resource_type}/{resource_id}/tags/create vpn:resourceInstanceTags:create - √ x Deleting tags of a resource POST /v5/{project_id}/{resource_type}/{resource_id}/tags/delete
Enterprise Project Subscribing to a yearly/monthly P2C VPN gateway POST /v5/{project_id}/p2c-vpn-gateways/subscribe/{order_id} vpn:p2cVpnGateway:subscribe vpn:p2cVpnGateway:listAvailabilityZones vpc:vpcs:list vpc:subnets:get vpc:bandwidths:list vpc:publicIps:create vpc:publicIps:delete
If so, a route conflict occurs and you need to delete the route and create a new one to prevent the conflict. Parent topic: Operations on the Console
If so, a route conflict occurs and you need to delete the route and create a new one to prevent the conflict. Parent topic: Subnet Configurations
If yes, delete the route and create a new one. Parent topic: Subnet Setting
If yes, delete the route and create a new one. Parent topic: Related Operations on the Console
x Modifying a VPN user PUT /v5/{project_id}/p2c-vpn-gateways/vpn-servers/{vpn_server_id}/users/{user_id} vpn:p2cVpnUser:update - √ x Querying a VPN user GET /v5/{project_id}/p2c-vpn-gateways/vpn-servers/{vpn_server_id}/users/{user_id} vpn:p2cVpnUser:get - √ x Deleting a VPN user DELETE