• Data Warehouse Service

dws
  1. Help Center
  2. Data Warehouse Service
  3. API Reference
  4. API Description
  5. Tag Management APIs
  6. Deleting a Resource Tag

Deleting a Resource Tag

Function

This API is used to delete a resource tag for a resource.

URI

  • URI format

    DELETE /v1.0/{project_id}/clusters/{resource_id}/tags/{key}

  • Parameter description
    Table 1 URI parameter description

    Parameter

    Mandatory

    Type

    Description

    project_id

    Yes

    String

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

    resource_id

    Yes

    String

    Resource ID

    key

    Yes

    String

    Tag key

Request

  • Sample request
    DELETE /v1.0/89cd04f168b84af6be287f71730fdb4b/clusters/7d85f602-a948-4a30-afd4-e84f47471c15/tags/DEV
  • Parameter description

    None

Response

Sample response

STATUS CODE 204

Returned Value

  • Normal

    204

  • Abnormal
    Table 2 Returned value for failed requests

    Returned Value

    Description

    400

    Invalid parameters.

    401

    Authentication failed.

    403

    You do not have the rights to perform the operation.

    404

    The requested resource was not found or the key does not exist.

    500

    Internal service error.