1
0
forked from docs/doc-exports
doc-exports/docs/evs/api-ref/evs_04_2038.html
zhangyue ccbf63b495 EVS API DOC
Reviewed-by: Muller, Martin <martin.muller@t-systems.com>
Reviewed-by: Sabelnikov, Dmitriy <dmitriy.sabelnikov@t-systems.com>
Co-authored-by: zhangyue <zhangyue164@huawei.com>
Co-committed-by: zhangyue <zhangyue164@huawei.com>
2024-05-16 09:08:21 +00:00

6.9 KiB

Obtaining Tags of a Specified EVS Resource (Deprecated)

Function

This API is used to obtain the tags of a specified EVS resource.

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}

  • Parameter description

    Parameter

    Mandatory

    Description

    project_id

    Yes

    Specifies the project ID.

    resource_type

    Yes

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

    resource_id

    Yes

    Specifies the resource ID.

Request

None

Response

  • Parameter description

    Parameter

    Type

    Description

    tags

    Object

    Specifies the key-value pair of the tag.

  • Example response
    {  
         "tags" : { 
            "key_0" : "value_0", 
            "key_1" : "value_1"  
         } 
    }
    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": "XXXX", 
            "code": "XXX"
        }
    }

Status Codes

  • Normal

    200

Error Codes

For details, see Error Codes.