Deletes an IPv6 gateway.

Prerequisites

Before you delete an IPv6 gateway, you must delete the egress-only rules of the IPv6 gateway. For more information, see DeleteIpv6EgressOnlyRule.

Usage notes

  • The DeleteIpv6Gateway operation is asynchronous. After you send the request, the system returns a request ID. However, the operation is still being performed in the system background. You can call the DescribeIpv6GatewayAttribute operation to query the status of an IPv6 gateway:
    • If the IPv6 gateway is in the Deleting state, the IPv6 gateway is being deleted.
    • If you cannot query the IPv6 gateway, the IPv6 gateway is deleted.
  • After you call the DeleteIpv6Gateway operation to delete an IPv6 gateway, you cannot call the operation again to delete the IPv6 gateway until the deletion task is complete.

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
RegionId String Yes cn-huhehaote

The region ID of the IPv6 gateway. You can call the DescribeRegions operation to query the most recent region list.

Ipv6GatewayId String Yes ipv6gw-hp3y0l3ln89j8****

The ID of the IPv6 gateway that you want to delete.

Action String Yes DeleteIpv6Gateway

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

Response parameters

Parameter Type Example Description
RequestId String E9A8AABE-A84B-4AF2-A68A-8E2EA190E7AE

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?RegionId=cn-huhehaote
&Ipv6GatewayId=ipv6gw-hp3y0l3ln89j8****
&Action=DeleteIpv6Gateway
&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DeleteIpv6GatewayResponse>
    <RequestId>E9A8AABE-A84B-4AF2-A68A-8E2EA190E7AE</RequestId>
</DeleteIpv6GatewayResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "E9A8AABE-A84B-4AF2-A68A-8E2EA190E7AE"
}

Error codes

HTTP status code Error code Error message Description
404 InvalidRegionId.NotFound The specified RegionId does not exist in our records. The error message returned because the specified region ID does not exist.

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