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": "i",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "de154c47c99e2185fbb45bf5",
"lastExecuted": null,
"migrationVersion": -28006125,
"createdBy": "c6fb0ca227471e08432a5163",
"created": "1951-11-15T14:46:48.578Z",
"lastUpdatedBy": "cade454758e663a1aa0b6b45",
"lastUpdated": "2012-01-23T08:28:42.908Z",
"verb": "POST",
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "nostrud sint id",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "77a0b1fe9fda27b70cf0b927",
"lastExecuted": 60432145,
"migrationVersion": 43528915,
"createdBy": "Pronghorn",
"created": "2011-06-05T03:42:56.734Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1963-05-18T01:29:42.234Z",
"source": "velit eu irure Lorem",
"schema": null,
"legacyWrapper": true,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "dcc52295c2d39b23577b426a",
"lastExecuted": 58326925,
"migrationVersion": 43104297,
"createdBy": "Pronghorn",
"created": "1954-06-23T17:16:54.263Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1946-12-19T22:26:43.022Z",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": "qui",
"legacyWrapper": true,
"formId": "543f6b13975359741ab1b259"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "5a848cf7ca489661fe27438e",
"lastExecuted": 93976300,
"migrationVersion": -72537049,
"createdBy": "Pronghorn",
"created": "1970-06-28T20:10:50.083Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1965-05-30T14:20:36.537Z",
"repeatInterval": 120000,
"formId": null
}
]
}
Return
DetailsExampleSchema
| Name |
Type |
Description |
| createdTigger |
object |
The result of the create operation. |
Copied to Clipboard
{
"message": "Successfully imported 3 of 4 documents",
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "0bb2ea0065d9b78c9d534ca7",
"lastExecuted": 25396590,
"migrationVersion": 64848251,
"createdBy": "309739f1a798220ec207c96e",
"created": "1992-09-07T02:48:11.595Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1979-08-06T03:23:10.18Z",
"_id": "b7f4e8571f2326ffc0c81ca1"
}
}