Files
doc-exports/docs/evs/api-ref/evs_04_2039.html
Zaoxu, Li 45c44093b9 EVS API version 20250109
Reviewed-by: Muller, Martin <martin.muller@t-systems.com>
Co-authored-by: Zaoxu, Li <lizaoxu@huawei.com>
Co-committed-by: Zaoxu, Li <lizaoxu@huawei.com>
2025-03-04 07:05:14 +00:00

7.2 KiB

Querying Tags of an EVS Resource by Key (Deprecated)

Function

This API is used to query tags of an EVS resource by key.

This API has been deprecated. Use another API. For details, see Querying Tags of an EVS Disk.

Constraints

None

URI

  • URI format

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

  • Parameter description

    Parameter

    Mandatory

    Description

    project_id

    Yes

    The project ID.

    resource_type

    Yes

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

    resource_id

    Yes

    The resource ID.

    key

    Yes

    The key of the tag.

Request

None

Response

  • Parameter description

    Parameter

    Type

    Description

    tag

    Object

    The key-value pair of a tag.

  • Example response
    {
        "tag": {
            "key_0": "value_0"
        }
    }

    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": "Tags item was not found", 
            "code": 404
        }
    }

Status Codes

  • Normal

    200

Error Codes

For details, see Error Codes.