Platform O&M/Cloud Monitoring/Monitoring and Alarm/SNS/ZWatch Operations/Alarm Operations
PUTAlarm OperationsSince 3.8.0SynchronousAuth Required
UpdateSubscribeEvent
UpdateSubscribeEvent
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Path Parameters
Request Inputs
Path Parameters
uuidStringOptional. The event alarm UUID.
Body Fields
updatesubscribeeventObjectRequiredupdatesubscribeevent request body object.
emergencyLevelStringOptional. The alarm emergency level.
systemTagsListOptional.
userTagsListOptional.
Responses
Endpoint
PUT/zstack/v1/zwatch/events/subscriptions/{uuid}/actions
/zstack/v1/zwatch/events/subscriptions/{uuid}/actions
Request Example
curl -X PUT 'http://{host}/zstack/v1/zwatch/events/subscriptions/{uuid}/actions' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"updatesubscribeevent":{"emergencyLevel":"<emergencyLevel>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "uuid": "d1b38b37691948218df07900a2c1c065", "name": "vm_state_change_event", "namespace": "ZStack/VM", "eventName": "org.zstack.zwatch.datatype.EventFamily@35324244", "state": "Enabled", "actions": [ { "subscriptionUuid": "30d1075270c94f6e9312c1a4404cc67a", "actionType": "sns", "actionUuid": "33308113390a472286df32a99cd477ef" } ], "labels": [ { "uuid": "26246baade39495c99d018d826ae576e", "key": "DestinationHostUuid", "operator": "Equal", "value": "79e249b6995a4c819d8e6cd33798135a" } ], "lastOpDate": "Jan 11, 2020 11:48:35 PM", "createDate": "Jan 11, 2020 11:48:35 PM", "emergencyLevel": "Emergent" } }Change History
This API has no change history records yet.
