Help Center/ Elastic Volume Service/ API Reference (Paris Region)/ APIs/ Tag Management/ Deleting the Tag of an EVS Resource by Key
Updated on 2024-03-26 GMT+08:00

Deleting the Tag of an EVS Resource by Key

Function

This API is used to delete the tag of an EVS resource by key.

Constraints

None

URI

  • URI format

    DELETE /v2/{project_id}/os-vendor-tags/{resource_type}/{resource_id}/{key}

  • Parameter description

    Parameter

    Mandatory

    Description

    project_id

    Yes

    The project ID.

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

    resource_type

    Yes

    The resource type. The value can be volumes, snapshots, or backups.

    resource_id

    Yes

    The resource ID. The value can be the ID of a disk, snapshot, or backup.

    key

    Yes

    The tag key.

Request

None

Response

  • Response parameters

    Parameter

    Type

    Description

    error

    Object

    The error message returned if an error occurs. For details, see Parameters in the error field.

  • Parameters in the error field

    Parameter

    Type

    Description

    message

    String

    The error message returned if an error occurs.

    code

    String

    The error code returned if an error occurs.

    For details about the error code, see Error Codes.

  • Example response

    None

    or

    {
        "error": {
            "message": "XXXX", 
            "code": "XXX"
        }
    }

    In the preceding example, error indicates a general error, for example, badRequest or itemNotFound. An example is provided as follows:

    {
        "itemNotFound": {
            "message": "XXXX", 
            "code": "XXX"
        }
    }

Status Codes

  • Normal

    200

Error Codes

For details, see Error Codes.