This API is used to update tags of an EVS resource by key.
This API has been deprecated. Use another API. For details, see Batch Adding Tags for the Specified EVS Disk.
PUT /v2/{project_id}/os-vendor-tags/{resource_type}/{resource_id}/{key}
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. |
key |
Yes |
Specifies the key of the tag. |
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
tag |
Object |
Yes |
Specifies the key-value pair of the tag. |
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
Content-Type |
Object |
Yes |
Specifies the type. The value can be application/json. |
{ "tag": { "key_0": "value_0" } }
Parameter |
Type |
Description |
---|---|---|
tag |
Object |
Specifies the key-value pair of the tag. |
{ "tag": { "key_0": "value_0" } }
or
{ "error": { ta "message": "XXXX", "code": "XXX" } }
In the preceding example, error indicates a general error, for example, badRequest or itemNotFound. An example is provided as follows:
{ "badRequest": { "message": "Request body and URI mismatch", "code": 400 } }
For details, see Error Codes.