Add or delete monitored event (PUT /v1.0/{tenantId}/eventnotifications/{subscriptionId})
Adds or deletes the event source for an event notification subscription.
Request URI
{tenantID}
Project ID of the owner of the instance
Data Type | Cardinality |
---|---|
String | 1..1 |
{subscriptionID}
ID of event notification subscription
Data Type | Cardinality |
---|---|
String | 1..1 |
Request Parameters
action
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
None | add | remove |
add | remove
Indicates whether to add or delete an event to be monitored
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | 1..1 | action | None |
eventnotification
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
None | sourceId |
sourceIds
List of the resource IDs of the monitored events that will be added or deleted
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String list | 1..1 | eventnotification | sourceId list |
sourceId
Resource ID of the monitored event that will be added or deleted
Constrained by the sourceType that is set.
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String | 1..1 | sourceIds | None |
Response Headers
Status
Returns the status of the request.
- 401:
- unauthorized
- 403:
- forbidden
- 404:
- itemNotFound
- 422:
- unprocessableEntity
- 500:
- instanceFault
- 501:
- notImplemented
- 503:
- serviceUnavailable
- 504:
- gatewayTimeout
Data Type | Cardinality |
---|---|
Int | 1.1 |
Response Elements
eventSubscription
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
None | id name enabled eventCategoriesList sourceIdsList sourceType status created |
id
ID of event notification subscription
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String |
name
Name of event notification subscription
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String |
enabled
Flag indicating whether notification is enabled
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
Boolean |
eventCategoriesList
List of event categories to notify
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String list |
sourceIdsList
List of resource IDs that will be the event source to notify
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String list |
sourceType
Type of resource that will be the event source
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String |
status
Status of event notification subscription
creating | modifying | deleting | active |
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String |
created
The creation date and time
Data Type | Cardinality | Parent Element | Child Element(s) |
---|---|---|---|
String |
Example of Request
{
"action" : {
"add" :""
},
"eventnotification":{
"sourceIds" : [{
"sourceId": "dbinst5"
}]
}
}