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": "57vsrBjB",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "5a5a8a1864761b3aedf9d555",
"lastExecuted": null,
"migrationVersion": 58645507,
"createdBy": "a8e27947e9de61406cc3a008",
"created": "1990-03-06T08:37:31.451Z",
"lastUpdatedBy": "8ff8822a982a801e0d2f40d7",
"lastUpdated": "1965-03-01T21:28:12.789Z",
"verb": "POST",
"schema": null,
"jst": "3a391dad8a777df2c980a8ce"
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "sed",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "526c10ec8405e3f1ae1a64bc",
"lastExecuted": 83759445,
"migrationVersion": 69909658,
"createdBy": "05bba9c78127ff82103fa477",
"created": "1947-11-02T21:21:17.641Z",
"lastUpdatedBy": "c965c89fc1073e20eb959f10",
"lastUpdated": "1977-03-14T22:00:48.231Z",
"source": "ut nisi magna et nulla",
"schema": null,
"legacyWrapper": false,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "2095c0dcbba606f8ea536254",
"lastExecuted": 13354498,
"migrationVersion": -27442509,
"createdBy": "64b88e422f7108c79265188f",
"created": "1969-01-27T03:11:03.698Z",
"lastUpdatedBy": "ad37a43b8c947a10f0ee69f0",
"lastUpdated": "1998-12-11T11:01:08.345Z",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": null,
"legacyWrapper": true,
"formId": null
},
{
"name": "myCoolDocumentName",
"repeatUnit": "hour",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "dd622fddf10a4d3f032d84df",
"lastExecuted": 42071711,
"migrationVersion": -51075751,
"createdBy": "dc278efb705411dec897c01a",
"created": "1968-11-21T12:14:15.828Z",
"lastUpdatedBy": "ab9a172beb44c6236577a96b",
"lastUpdated": "1974-12-10T05:47:11.615Z",
"repeatInterval": 10000,
"formId": "676f121e46d4b26480f407dd"
}
]
}
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": false,
"actionType": "automations",
"actionId": "f04d62b2ccba6d048227d2c0",
"lastExecuted": 10372039,
"migrationVersion": -45616332,
"createdBy": "Pronghorn",
"created": "1967-05-15T17:35:13.185Z",
"lastUpdatedBy": "cc9f8d677217f4194a15ded5",
"lastUpdated": "2008-05-01T12:02:05.43Z",
"_id": "7c738e073619ca96cc776b81"
}
}