Updated on 2026-03-20 GMT+08:00

Deleting a VPC Attachment

Function

This API is used to delete a VPC attachment.

Constraints

A VPC attachment can only be deleted when it is in the available, deleting, or failed state.

Calling Method

For details, see Calling APIs.

Authorization Information

Each account root user has all the permissions required to call all APIs, but IAM users must be assigned the following required identity policy-based permissions. For details about the required permissions, see Permissions Policies and Supported Actions.

Action

Access Level

Resource Type (*: required)

Condition Key

Alias

Dependencies

er:instances:deleteVpcAttachment

Write

instances *

  • g:EnterpriseProjectId

  • g:ResourceTag/<tag-key>

er:attachments:delete

-

URI

DELETE /v3/{project_id}/enterprise-router/{er_id}/vpc-attachments/{vpc_attachment_id}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID

er_id

Yes

String

Enterprise router ID

vpc_attachment_id

Yes

String

VPC attachment ID

Request Parameters

None

Response Parameters

Status code: 202

Accepted

None

Example Requests

Deleting a VPC attachment

DELETE https://{erouter_endpoint}/v3/08d5a9564a704afda6039ae2babbef3c/enterprise-router/4ba931b6-5273-4ed9-8eeb-484d16a4786f/vpc-attachments/b70aee08-c671-4cad-9fd5-7381d163bcc8

Example Responses

None

Status Codes

Status Code

Description

202

Accepted

Error Codes

See Error Codes.