Updated on 2025-12-04 GMT+08:00

Deleting a Layer 2 Connection

Function

This API is used to delete a Layer 2 connection if you no longer need it.

Authorization Information

Each account 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

esw:connection:delete

Write

-

-

-

-

URI

DELETE /v3/{project_id}/l2cg/instances/{instance_id}/connections/{connection_id}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

connection_id

Yes

String

  • Definition: ID of a Layer 2 connection.

  • Constraints: The value is in the UUID format with hyphens (-).

  • Range: N/A

  • Default value: N/A

instance_id

Yes

String

  • Definition: Unique ID of an enterprise switch.

  • Constraints: The value is in the UUID format with hyphens (-).

  • Range: N/A

  • Default value: N/A

project_id

Yes

String

  • Definition: ID of the project to which the enterprise switch belongs.

  • Constraints: N/A

  • Range: N/A

  • Default value: N/A

Request Parameters

None

Response Parameters

Status code: 204

The DELETE operation is successful. For more status codes, see Status Codes.

None

Example Requests

DELETE https://{endpoint}/v3/b2782e6708b8475c993e6064bc456bf8/l2cg/instances/94e7bf9d-c5a0-40da-9bcb-4407fde1907d/connections/cec110e8-59eb-47ea-b449-9d1b687ef311

Example Responses

None

Status Codes

Status Code

Description

204

The DELETE operation is successful. For more status codes, see Status Codes.

Error Codes

See Error Codes.