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": "j7yo",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "885061860d268b702ecf1e15",
"lastExecuted": 48471672,
"migrationVersion": 12893331,
"createdBy": "Pronghorn",
"created": "2013-09-09T19:24:31.473Z",
"lastUpdatedBy": "f6267f2b1dc8c1fa15250aa5",
"lastUpdated": "2002-09-21T17:52:31.021Z",
"verb": "POST",
"schema": null,
"jst": "7e3d0b232ce93bfe53c8f1b3"
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "do incididunt nisi laborum",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "fdd445a3759bfdb88980f396",
"lastExecuted": 47555881,
"migrationVersion": -73420339,
"createdBy": "Pronghorn",
"created": "1988-05-13T02:49:02.72Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1991-05-26T08:07:02.593Z",
"source": "in nulla consectetur aute veniam",
"legacyWrapper": true,
"jst": "36209a59b40d8172b3171516"
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "9f1433cc4fadc25550a2f66d",
"lastExecuted": 39399528,
"migrationVersion": 60596875,
"createdBy": "6e6fc526039ce24db8d14572",
"created": "1977-04-16T16:13:50.136Z",
"lastUpdatedBy": "17388631b6e21656642793ea",
"lastUpdated": "1978-03-19T16:19:32.456Z",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": null,
"legacyWrapper": false,
"formId": null
},
{
"name": "myCoolDocumentName",
"repeatUnit": null,
"repeatFrequency": null,
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "1a964da74b6a0b98a1cd9b6c",
"lastExecuted": 20268720,
"migrationVersion": 58382329,
"createdBy": "b1c9e926641ad03659435532",
"created": "2004-09-13T05:00:27.011Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2024-12-08T21:37:03.033Z",
"repeatInterval": 120000,
"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": false,
"actionType": "automations",
"actionId": "49c8127a96383293b831e613",
"lastExecuted": 33822560,
"migrationVersion": -12714590,
"createdBy": "1e084317ca7c53e8e23b8cc0",
"created": "2023-11-19T08:57:40.273Z",
"lastUpdatedBy": "b30f0f8e474435c73e7a9e4a",
"lastUpdated": "1956-10-15T18:02:41.799Z",
"_id": "da26fd33ef8a16cf376d0eaa"
}
}