nav-img
Advanced

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

    The project ID.

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

    volume_id

    Yes

    The disk ID.

Request

None

Response

  • Parameter description

    Parameter

    Type

    Description

    tags

    List<resource_tag>

    The tag list. For details, see Parameters in the resource_tag field.

  • Parameters in the resource_tag field

    Parameter

    Type

    Description

    key

    String

    The tag key.

    value

    String

    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.