URL
POST https://{api-url}/api/v2/tenants/{tenantId}/integrations/installed/{installedIntgId}/event/{eventId}
Sample URLs
https://{api-url}/api/v2/tenants/client_9/integrations/installed/INTG-6df698c6-12f1-4af5-88ed-da9f2a8b4b94/event/INTG-EVENT-c4bd7463-6164-47cb-909a-d18cab124282
Parameters
All fields are optional:
Field | Data Type | Description |
---|---|---|
name | String | Name of the Integration event. |
entity | String | OpsRamp entity on which an action is performed. Supported entities include:
|
eventType | String | Type of action performed on the entity. Supported values include:
|
filterCriteria
| String | Filter entities on which the event is added to the rules:
|
useBaseNotifier | Boolean | Notification details to trigger events defined. To configure integration base notifier:
|
notifier
| String | (Mandatory if useBaseNotifier is false) Define notification details to trigger events:
|
endPointURI | String | |
thirdPartyEventType | String | Type of action performed on the entity.Supported Values: POST, PUT, GET, DELETE, and PATCH |
headers
| String | Headers
|
payload | File | Third-party integration event payload. Provide the third-party payload with OpsRamp placeholders to integrate the event between OpsRamp and third-party:
|
responseHeaders
| String | Response headers:
|
Note
- Provide API payload in Base64 encoding.
- Integration event for Alert entity is created only using API but can be viewed from the OpsRamp Portal.
Sample request
{
"name" : "Create event with policy and dep updated",
"entity" : "INCIDENT",
"eventType" : "CREATE",
"filterCriteria" : {
"id" : 141,
"matchType" : "ANY",
"rules" : [
{
"id" : 581,
"key" : "Subject",
"operator" : "Contains",
"value" : "test",
"resourceType" : "INCIDENT"
},
{
"id" : 582,
"key" : "Description",
"operator" : "Contains",
"value" : "testing",
"resourceType" : "INCIDENT"
}
]
},
"notifier" : {
"type" : "SOAP_API",
"baseURI" : "www.google.com",
"authType" : "BASIC",
"userName" : "testUser",
"password" : "test"
},
"headers" : [
{
"key" : "accept",
"value" : "application/json"
},
{
"key" : "Content-Type",
"value" : "application/json"
}
],
"thirdPartyEventType" : "POST",
"payload" : "ew0KInN1YmplY3QiOiIkaW5jaWRlbnQuc3ViamVjdCIsDQoiZGVzY3JpcHRpb24iOiIkaW5jaWRlbnQuaW1wYWN0IiwNCiJwcmlvcml0eSI6IiRpbmNpZGVudC5wcmlvcml0eS5uYW1lIg0KInN0YXV0cyI6ImhpZ2giDQp9"
}
Sample response
{
"id" : "INTG-EVENT-c6d30f9c-2728-4760-ad97-8f3b6f2b6391",
"name" : "Create event with policy and dep updated",
"entity" : "INCIDENT",
"filterCriteria" : {
"id" : 141,
"name" : "Create event with policy and dep",
"matchType" : "ANY",
"rules" : [
{
"id" : 581,
"key" : "Subject",
"operator" : "Contains",
"value" : "test",
"resourceType" : "INCIDENT"
},
{
"id" : 582,
"key" : "Description",
"operator" : "Contains",
"value" : "testing",
"resourceType" : "INCIDENT"
}
],
"actions" : []
},
"notifier" : {
"baseURI" : "www.google.com",
"authType" : "BASIC",
"userName" : "testUser"
},
"headers" : [
{
"key" : "accept",
"value" : "application/json"
},
{
"key" : "Content-Type",
"value" : "application/json"
}
],
"eventPayload" : "{\r\n"subject":"$incident.subject",\r\n"description":"$incident.impact",\r\n"priority":"$incident.priority.name"\r\n"stauts":"high"\r\n}"
}