O&M Management/Tag Management APIs
POSTTag Management APIsSince 3.2.0SynchronousAuth Required
Create Tag
Create Tag
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.
nameStringRequiredResource name
valueStringRequiredTag value
descriptionStringDetailed description of the resource
colorStringTag color
typeStringTag type
resourceUuidString资源UUID。若指定,资源会使用该字段值作为UUID。
systemTagsList系统标签。
userTagsList用户标签。
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.
