Summary
Create Trigger
Description
Create a new Trigger.
Route
POST /operations-manager/triggers
Roles
admin
apiwrite
engineering
operations
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
trigger |
object |
yes |
The details of the Trigger document to be created. |
Copied to Clipboard
{
"title": "trigger",
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "trigger-create",
"oneOf": [
{
"name": "myCoolDocumentName",
"type": "endpoint",
"routeName": "5r90",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "af5ddfd79c26cc12a3a398a4",
"lastExecuted": null,
"migrationVersion": -94709972,
"createdBy": "Pronghorn",
"created": "1995-08-06T17:11:26.762Z",
"lastUpdatedBy": "3d3fd27f41a72166c141ba93",
"lastUpdated": "1955-08-18T21:40:25.727Z",
"verb": "POST",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "ex",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "1d51cd1d28d04dc8117d6ab2",
"lastExecuted": null,
"migrationVersion": -56539498,
"createdBy": "b57817df037f1f6840adc101",
"created": "2006-03-13T02:18:12.882Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1964-08-31T05:57:08.365Z",
"source": "enim dolor",
"schema": null,
"legacyWrapper": true,
"jst": "2d295f46ae82570358b3f467"
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "ed5ae38b205f6e681bf27415",
"lastExecuted": 96788187,
"migrationVersion": -97233061,
"createdBy": "Pronghorn",
"created": "2003-04-05T00:40:06.568Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2005-11-28T06:33:44.195Z",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": "irure qui id veniam in",
"legacyWrapper": true,
"formId": "31d0f16d457daf754f0b8570"
},
{
"name": "myCoolDocumentName",
"repeatUnit": null,
"repeatFrequency": null,
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "54a8424b8b36e2040a0f7f2f",
"lastExecuted": 7281659,
"migrationVersion": -63781546,
"createdBy": "Pronghorn",
"created": "1999-04-15T23:42:31.231Z",
"lastUpdatedBy": "73652464d5a98d0431a2d1fb",
"lastUpdated": "1968-10-03T05:29:43.364Z",
"repeatInterval": 30000,
"formId": null
}
]
}
Return
DetailsExampleSchema
Name |
Type |
Description |
createdTigger |
object |
The result of the create operation. |
Copied to Clipboard
{
"message": "Successfully retrieved search results",
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "8fb9da0dd518d7fe743e1de8",
"lastExecuted": 82065965,
"migrationVersion": -5966497,
"createdBy": "Pronghorn",
"created": "2024-01-21T01:02:31.924Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2009-03-04T19:40:57.109Z",
"_id": "e4afc66d261e1a514052f877"
}
}