Updated on 2023-12-07 GMT+08:00

Deleting a Resource Tag

Function

When a tag is deleted, the tag character set is not verified. Before calling this API, the API URL must be encoded. If the key to be deleted does not exist, 404 is displayed. The key cannot be left blank or an empty string.

Calling Method

For details, see Calling APIs.

URI

DELETE /v3/{project_id}/{resource_type}/{resource_id}/tags/{key}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

key

Yes

String

Specifies the tag key.

project_id

Yes

String

Specifies the project ID.

resource_id

Yes

String

Specifies the resource ID.

resource_type

Yes

String

Specifies the Direct Connect resource type.

  • dc-directconnect: connection
  • dc-vgw: virtual gateway
  • dc-vif: virtual interface

Enumeration values:

  • dc-directconnect
  • dc-vgw
  • dc-vif

Request Parameters

None

Response Parameters

None

Example Requests

Deleting tags from a resource

DELETE https://{dc-endpoint}/v3/cfa563efb77d4b6d9960781d82530fd8/instance/3320166e-b937-40cc-a35c-02cd3f2b3ee2/tags/key1

Example Responses

None

Status Codes

Status Code

Description

204

No Content

Error Codes

See Error Codes.