Platform O&M/Tag Operations
POSTTag OperationsSince 3.2.0SynchronousAuth Required
CreateTag
CreateTag
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
paramsObjectRequiredRequest body parameter object.
nameStringRequiredThe resource name.
valueStringRequiredThe tag value.
descriptionStringOptional. The detailed description of the resource.
colorStringOptional. The tag color.
typeStringOptional. The tag type.
resourceUuidStringOptional.
systemTagsListOptional.
userTagsListOptional.
Responses
Endpoint
POST/zstack/v1/tags
/zstack/v1/tags
Request Example
curl -X POST 'http://{host}/zstack/v1/tags' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"name":"<name>","value":"<value>","description":"<description>","color":"<color>","type":"<type>","resourceUuid":"<resourceUuid>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{}Change History
This API has no change history records yet.
