• Elastic Volume Service

evs
  1. Help Center
  2. Elastic Volume Service
  3. API Reference
  4. API v2
  5. EVS Tag
  6. Querying Tags of an EVS Disk

Querying Tags of an EVS Disk

Function

This API is used to query the tags of the specified EVS disk. TMS may use this API to query all tags of the specified EVS disk.

Constraints

None

URI

  • URI format

    GET /v2/{project_id}/os-vendor-volumes/{volume_id}/tags

  • Parameter description

    Parameter

    Mandatory

    Description

    project_id

    Yes

    Specifies the project ID.

    volume_id

    Yes

    Specifies the EVS disk ID.

Request

None

Response

  • Parameter description

    Parameter

    Type

    Description

    tags

    List<resource_tag>

    Specifies the tag list.

  • Parameters in the tags field

    Parameter

    Type

    Description

    key

    String

    Tag key:
    • Cannot be left blank.
    • Must be unique for each resource.
    • Can contain a maximum of 36 characters.
    • Can contain only digits, letters, hyphens (-), and underscores (_).

    value

    String

    Tag value:
    • Can contain a maximum of 43 characters.
    • Can contain only digits, letters, hyphens (-), and underscores (_).
  • Example response
    {
        "tags": [
            {
                "value": "value1", 
                "key": "key1"
            }, 
            {
                "value": "value2", 
                "key": "key2"
            }
        ]
    }

Returned Values

  • Normal

    200

Error Codes

For details, see Error Codes.