All Products
Search
Document Center

Virtual Private Cloud:DeleteIpv6Gateway

Last Updated:Mar 04, 2024

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

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

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.
OperationAccess levelResource typeCondition keyAssociated operation
vpc:DeleteIpv6GatewayWrite
  • Ipv6Gateway
    acs:vpc:{#regionId}:{#accountId}:ipv6gateway/{#Ipv6GatewayId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

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

cn-huhehaote
Ipv6GatewayIdstringYes

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

ipv6gw-hp3y0l3ln89j8****

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

E9A8AABE-A84B-4AF2-A68A-8E2EA190E7AE

Examples

Sample success responses

JSONformat

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

Error codes

HTTP status codeError codeError messageDescription
400ResourceNotFound.RouteTableThe specified resource gatewayRouteTable is not found.The gateway route table does not exist.
400DependencyViolation.GatewayRouteTableRelationThe 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.
400IncorrectStatus.Ipv6GatewayThe status of %s [%s] is incorrect.The IPv6 gateway is in an unstable state. Try again later.
400DependencyViolation.EgressRulesThe 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.
400DependencyViolation.Ipv6InternetBandwidthThe 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.
400OperationFailed.RouteEntryUnstableThe 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
404InvalidRegionId.NotFoundThe 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 timeSummary of changesOperation
2023-10-10The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    Error Codes 400 change
    delete Error Codes: 404
2023-08-09API Description Update. The Error code has changedsee changesets
Change itemChange content
API DescriptionAPI Description Update.
Error CodesThe Error code has changed.
    Error Codes 400 change
    delete Error Codes: 404