doc-exports/docs/dws/api-ref/dws_02_0051.html
Lu, Huayi b974c4b77e DWS API 2022101001 version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Lu, Huayi <luhuayi@huawei.com>
Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
2022-12-12 18:34:53 +00:00

8.8 KiB

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 Message

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

    None

Response Message

Sample response

status CODE 204

Status Code

  • 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 permission to perform the operation.

    404

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

    500

    Internal service error.