Help Center/ Elastic Volume Service/ API Reference/ API v2/ EVS Tag/ Querying Tags of an EVS Disk
Updated on 2022-09-22 GMT+08:00

Querying Tags of an EVS Disk

Function

This API is used to query the tags of the specified EVS disk.

Constraints

None

URI

  • URI format

    GET /v2/{project_id}/cloudvolumes/{volume_id}/tags

  • Parameter description

    Parameter

    Mandatory

    Description

    project_id

    Yes

    Specifies the project ID.

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

    volume_id

    Yes

    Specifies the disk ID.

Request

None

Response

  • Parameter description

    Parameter

    Type

    Description

    tags

    List<resource_tag>

    Specifies the tag list. For details, see Parameters in the tags field.

  • Parameters in the tags field

    Parameter

    Type

    Description

    key

    String

    Specifies the tag key.

    value

    String

    Specifies the tag value.

  • Example response
    {
        "tags": [
            {
                "value": "value1", 
                "key": "key1"
            }, 
            {
                "value": "value2", 
                "key": "key2"
            }
        ]
    }

Status Codes

  • Normal

    200

Error Codes

For details, see Error Codes.