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
Specifies the project ID.
For details about how to obtain the project ID, see Obtaining a Project ID.
resource_type
Yes
Specifies the resource type. The value can be volumes, snapshots, or backups.
resource_id
Yes
Specifies the resource ID.
key
Yes
Specifies the key of the tag.
Request
None
Response
- Parameter description
Parameter
Type
Description
tag
Object
Specifies the key-value pair of the 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 } }
Error Codes
For details, see Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot