• Elastic Volume Service

evs
  1. Help Center
  2. Elastic Volume Service
  3. API Reference
  4. API v2
  5. EVS Tag
  6. Obtaining Tags of All EVS Resources

Obtaining Tags of All EVS Resources

Function

This API is used to obtain the tags of a all EVS resources.

Constraints

None

URI

  • URI format

    GET /v2/{project_id}/os-vendor-tags/{resource_type}

  • Parameter description

    Parameter

    Mandatory

    Description

    project_id

    Yes

    Specifies the project ID.

    resource_type

    Yes

    Specifies the resource type. The value can be volumessnapshots, or backups.

Request

None

Response

  • Parameter description

    Parameter

    Type

    Description

    tags

    tag_list

    Specifies the tag information about all EVS resources.

  • Parameters in tags field

    Parameter

    Type

    Description

    key-value

    String

    Specifies the key-value pair.

    The key is of the String type, and the value is of the list<String> type.

  • Example response
    {
        "tags": {
            "key_0": [
                "value_0"
            ], 
            "key_1": [
                "value_1", 
                "value_2", 
                "value_3", 
                "value_4"
            ]
        }
    }

Returned Values

  • Normal

    200

Error Codes

For details, see Error Codes.