Platform O&M/Cloud Monitoring/Monitoring and Alarm/SNS/ZWatch Operations/Event Subscription Operations
POSTEvent Subscription OperationsSince 2.3SynchronousAuth Required
SubscribeEvent
SubscribeEvent
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.
namespaceStringRequiredThe namespace.
eventNameStringRequiredThe event name.
actionsListOptional. The event actions.
labelsListOptional. The event labels.
resourceUuidStringOptional.
nameStringOptional. The resource name.
emergencyLevelStringOptional. The alarm emergency level.
tagUuidsListOptional. The tag UUID list.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
POST/zstack/v1/zwatch/events/subscriptions
/zstack/v1/zwatch/events/subscriptions
Request Example
curl -X POST 'http://{host}/zstack/v1/zwatch/events/subscriptions' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"namespace":"<namespace>","eventName":"<eventName>","actions":["<actions>"],"labels":["<labels>"],"resourceUuid":"<resourceUuid>","name":"<name>","emergencyLevel":"<emergencyLevel>","tagUuids":["<tagUuids>"]},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{}Change History
This API has no change history records yet.
