forked from docs/doc-exports
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>
11 KiB
11 KiB
Resetting Tags of an EVS Resource (Deprecated)
Function
This API is used to reset the tags of an EVS resource, and the existing tags will be deleted.
Constraints
- A tag is composed of a key-value pair.
- Key:
- Must be unique for each resource.
- Can contain a maximum of 36 characters.
- Can contain only digits, letters, hyphens (-), and underscores (_).
- Value:
- Can contain a maximum of 43 characters.
- Can contain only digits, letters, hyphens (-), and underscores (_).
- Key:
- A maximum of 10 tags can be created for an EVS resource.
URI
Request
- Parameter description
Parameter
Type
Mandatory
Description
tags
Object
Yes
The key-value pair of the tag.
- Description of the request header parameter
Parameter
Type
Mandatory
Description
Content-Type
Object
Yes
The type. The value can be application/json.
- Example request
{ "tags": { "key_new": "value_new" } }
Response
- Parameter description
Parameter
Type
Description
tags
Object
The key-value pair of the tag.
- Example response
{ "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 } }
Error Codes
For details, see Error Codes.
Parent topic: Tag Management
