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": "N",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "80483a60717b7dfc463b3edf",
"lastExecuted": 14724425,
"migrationVersion": -21029574,
"createdBy": "Pronghorn",
"created": "1954-04-15T19:43:45.222Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1980-02-08T13:19:13.392Z",
"verb": "POST",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "et consectetur velit",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "b3a3963b974559b4282a00d4",
"lastExecuted": 3152213,
"migrationVersion": -79130875,
"createdBy": "3c002115b12e058f399e9856",
"created": "1952-01-15T05:52:27.819Z",
"lastUpdatedBy": "584b633c09e8899dfad0c8b2",
"lastUpdated": "1973-08-19T18:47:09.781Z",
"source": "sint ipsum",
"schema": null,
"jst": "a19f74f6575138a602f24121"
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "cff8f996fd8015917bab9260",
"lastExecuted": null,
"migrationVersion": 87524916,
"createdBy": "98f3dc336f5ad42409f24c37",
"created": "1972-11-07T08:58:57.583Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2004-11-03T15:15:36.087Z",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": null,
"formId": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "59f4b21c38e33ef610292473",
"lastExecuted": 83338295,
"migrationVersion": -78615082,
"createdBy": "Pronghorn",
"created": "2018-11-16T14:33:59.306Z",
"lastUpdatedBy": "ae24e055c6d1a941c2ed0d13",
"lastUpdated": "1974-06-29T10:01:36.107Z",
"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": "bb5b203c8198cbdb48a986ae",
"lastExecuted": null,
"migrationVersion": 42192287,
"createdBy": "379d2dc1388a2ff30cd0dcd1",
"created": "1962-02-09T21:44:20.669Z",
"lastUpdatedBy": "70a6917f7b9e50a17a33fea6",
"lastUpdated": "2001-02-01T17:20:24.8Z",
"_id": "36399bae68cec3a8213b5759"
}
}