Updated on 2024-10-25 GMT+08:00

Deleting a Connection

Function

This API is used to delete a specified connection of the tenant.

URI

DELETE /v5/{project_id}/connections/{connection_id}

Table 1 Path parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID of a tenant in a region.

For details about how to obtain the project ID, see Obtaining a Project ID.

connection_id

Yes

String

Connection ID.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

Content-Type

Yes

String

MIME type of the request body. Use the default value application/json. For APIs used to upload objects or images, the value varies depending on the flow type.

X-Auth-Token

Yes

String

User token obtained from IAM. It is a response to the API for obtaining a user token. This API is the only one that does not require authentication. The token is the value of X-Subject-Token in the response header.

X-Language

No

String

Request language type.

Response Parameters

Status code: 400

Table 3 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

Example Request

Deleting a specified connection of a tenant

https://{endpoint}/v5/5237e10fe9aa4ad5b16b6a5245248314/connections/b912a1ff-141c-4bf2-bf76-a5700e64d648

Example Response

Status code: 200

OK

{ }

Status code: 400

Bad Request

{
  "error_code" : "DRS.10010069",
  "error_msg" : "Connection manager not exists."
}

Status Code

Status Code

Description

200

OK

400

Bad Request

Error Code

For details, see Error Code.