Deletes an IPsec server.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DeleteIpsecServer

The operation that you want to perform. Set the value to DeleteIpsecServer.

IpsecServerId String Yes iss-bp1jougp8cfsbo8y9****

The ID of the IPsec server.

RegionId String Yes cn-hangzhou

The ID of the region where the IPsec server is created.

ClientToken String No 02fb3da4-130e-11e9-8e44-00****

The client token that is used to ensure the idempotence of the request.

You can use the client to generate a token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.

DryRun String No false

Specifies whether to only precheck the request. Valid values:

  • true: only prechecks the request. If the request passes the check, the system does not delete the IPsec server. The system checks whether the required parameters are set, whether the values are in valid formats, and the service limits. If the request fails the check, the system returns error messages. If the request passes the check, the DryRunOperation error code is returned.
  • false (default): prechecks the request. After the request passes the check, the system deletes the IPsec server.

Response parameters

Parameter Type Example Description
RequestId String 0ED8D006-F706-4D23-88ED-E11ED28DCAC0

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/? Action=DeleteIpsecServer
&IpsecServerId=iss-bp1jougp8cfsbo8y9****
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<DeleteIpsecServerResponse>
  <RequestId>0ED8D006-F706-4D23-88ED-E11ED28DCAC0</RequestId>
</DeleteIpsecServerResponse>

JSON format

{
    "RequestId": "0ED8D006-F706-4D23-88ED-E11ED28DCAC0"
}

Error codes

HttpCode Error code Error message Description
403 Forbidden User not authorized to operate on the specified resource. The error message returned because you are unauthorized to perform this operation on the specified resource. To obtain the required permissions, submit a ticket.
400 VpnGateway.Configuring The specified service is configuring. The error message returned because the operation is not allowed when the specified service is being configured. Try again later.

For a list of error codes, visit the API Error Center.