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": "Ae6q6",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "a89d6543c3a7435a30ed868f",
"lastExecuted": 1070725,
"migrationVersion": 31549135,
"createdBy": "b8ec5d5822352b8261a9400c",
"created": "2020-10-02T20:09:50.391Z",
"lastUpdatedBy": "6963eb40a7194ef633d41439",
"lastUpdated": "2007-02-23T04:46:42.125Z",
"verb": "POST",
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "elit dolore",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "af818ae4171318accfce1308",
"lastExecuted": 95197286,
"migrationVersion": 96486817,
"createdBy": "fc6e27b8c33b17437ab697ed",
"created": "1988-10-22T13:28:22.693Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1950-02-27T18:59:09.96Z",
"source": "ut nulla in magna ipsum",
"jst": "cd4a2793419b31986dc1bbe0"
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "1b692f50745280c3357f1f21",
"lastExecuted": null,
"migrationVersion": -8970073,
"createdBy": "Pronghorn",
"created": "2004-06-09T07:36:55.319Z",
"lastUpdatedBy": "60e75d8e80092b7e16ab1683",
"lastUpdated": "1955-12-22T00:35:14.822Z",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": "in",
"formId": "93a28de527f0c14d24bfd684"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "56293c76f77050c92d44fd18",
"lastExecuted": null,
"migrationVersion": 71713058,
"createdBy": "Pronghorn",
"created": "1976-02-26T10:19:40.715Z",
"lastUpdatedBy": "07dfacead8c53a503f5be640",
"lastUpdated": "1968-04-09T16:23:23.714Z",
"repeatInterval": 10000,
"formId": "8d6f2d84244612aad55eda02"
}
]
}
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": "ec4239660aae0cc3efeed90d",
"lastExecuted": null,
"migrationVersion": 46387335,
"createdBy": "ded32fc134c12ab11cb51377",
"created": "1947-08-03T15:28:45.289Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1947-06-20T23:33:27.714Z",
"_id": "c6b186e3a5d2790a9f03af98"
}
}