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": "8",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "cb79d7eefd0312315ee67559",
"lastExecuted": 45664320,
"migrationVersion": -77265828,
"createdBy": "40071c629e0af2935605a7f6",
"created": "1955-08-07T10:55:28.668Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1967-08-13T18:25:32.423Z",
"verb": "POST",
"schema": null,
"jst": "cfbdd0ea8a47486e61a9a807"
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "dolore",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "956afe60444dfc3fe79f0280",
"lastExecuted": 167242,
"migrationVersion": 56371799,
"createdBy": "Pronghorn",
"created": "1998-02-13T13:15:30.287Z",
"lastUpdatedBy": "bc4453c31d5c66b2c528b9c1",
"lastUpdated": "2017-07-08T07:52:23.211Z",
"source": "sunt ad fugiat",
"schema": null,
"legacyWrapper": false,
"jst": "547ceed2ebcfdcf87262ac47"
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "8e3c9e6f089527d462f16650",
"lastExecuted": 89443631,
"migrationVersion": -67731652,
"createdBy": "Pronghorn",
"created": "1977-06-21T02:03:23.759Z",
"lastUpdatedBy": "fb64fd057707ac976617872d",
"lastUpdated": "2012-09-16T12:29:36.755Z",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": null,
"legacyWrapper": false,
"formId": null
},
{
"name": "myCoolDocumentName",
"repeatUnit": "second",
"repeatFrequency": null,
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "909bbef28b68a6ffa6fdb62e",
"lastExecuted": null,
"migrationVersion": 15306874,
"createdBy": "Pronghorn",
"created": "1964-07-29T22:49:41.175Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1961-07-11T22:28:52.521Z",
"repeatInterval": 10000,
"formId": null
}
]
}
Return
DetailsExampleSchema
| Name |
Type |
Description |
| createdTigger |
object |
The result of the create operation. |
Copied to Clipboard
{
"message": "Successfully created the requested item",
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "cbfb61a1db9f624f119f5053",
"lastExecuted": null,
"migrationVersion": -88115249,
"createdBy": "9177723aa18525c70a99126f",
"created": "2006-07-18T21:48:12.543Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1995-10-31T07:13:53.149Z",
"_id": "767b0b6a2226e8d34a1abb8c"
}
}