This API is used to reset the tags of an EVS resource, and the existing tags will be deleted.
This API call exists for compatibility reasons only and is not meant to be used.
PUT /v2/{project_id}/os-vendor-tags/{resource_type}/{resource_id}
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. |
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
tags |
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. |
{ "tags": { "key_new": "value_new" } }
Parameter |
Type |
Description |
---|---|---|
tags |
Object |
Specifies the key-value pair of the tag. |
{ "tags": { "key_new": "value_new" } }
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:
{ "badRequest": { "message": "Invalid tags: Tags property key contains invalid characters.", "code": 400 } }
For details, see Error Codes.