Deletes an IPv6 gateway.
Operation description
Before you delete an IPv6 gateway, you must delete the egress-only rules of the IPv6 gateway. For more information, see DeleteIpv6EgressOnlyRule .
-
DeleteIpv6Gateway is an asynchronous operation. After a request is sent, the system returns a request ID and runs the task in the background. You can call the DescribeIpv6GatewayAttribute operation to query the status of the task:
- 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.
-
You cannot repeatedly call the DeleteIpv6Gateway operation to delete an IPv6 gateway within the specified period of time.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
vpc:DeleteIpv6Gateway | delete | *Ipv6Gateway acs:vpc:{#regionId}:{#accountId}:ipv6gateway/{#Ipv6GatewayId} |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The region ID of the IPv6 gateway. You can call the DescribeRegions operation to query the most recent region list. | cn-huhehaote |
Ipv6GatewayId | string | Yes | The ID of the IPv6 gateway that you want to delete. | ipv6gw-hp3y0l3ln89j8**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "E9A8AABE-A84B-4AF2-A68A-8E2EA190E7AE"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | ResourceNotFound.RouteTable | The specified resource gatewayRouteTable is not found. | The gateway route table does not exist. |
400 | DependencyViolation.GatewayRouteTableRelation | The specified resource of %s depends on %s, so the operation cannot be completed. | The specified resource is dependent on other resources and the current operation is not allowed. |
400 | IncorrectStatus.Ipv6Gateway | The status of %s [%s] is incorrect. | The IPv6 gateway is in an unstable state. Try again later. |
400 | DependencyViolation.EgressRules | The specified resource of %s depends on %s, so the operation cannot be completed. | The specified resource is dependent on other resources and the current operation is not allowed. |
400 | DependencyViolation.Ipv6InternetBandwidth | The specified resource of %s depends on %s, so the operation cannot be completed. | The specified resource is dependent on other resources and the current operation is not allowed. |
400 | OperationFailed.RouteEntryUnstable | The operation is failed because of route entry related to it is unstable, please try later. | Because the routing entry associated with the instance is unstable, please try again later |
404 | InvalidRegionId.NotFound | The specified RegionId does not exist in our records. | The specified region ID does not exist. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-07-24 | The Error code has changed. The request parameters of the API has changed | View Change Details |
2023-10-10 | The Error code has changed | View Change Details |
2023-08-09 | API Description Update. The Error code has changed | View Change Details |