Help Center/ Enterprise Router/ API Reference/ APIs/ Tags/ Deleting Resource Tags
Updated on 2024-04-25 GMT+08:00

Deleting Resource Tags

Function

This API is used to delete tags for resources of a specific type.

Constraints

This API is idempotent. The key cannot be left blank or be 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

Tag key

project_id

Yes

String

Project ID

resource_id

Yes

String

Resource ID

resource_type

Yes

String

Resource type.

  • instance: enterprise router

  • route-table: route table

  • vpc-attachment: VPC attachment

Request Parameters

None

Response Parameters

None

Example Requests

DELETE https://{erouter-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.