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": "8UXqIZ",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "764b5af2513139fbacd2fe02",
"lastExecuted": null,
"migrationVersion": 17811659,
"createdBy": "03648fa2e1820c85732baf0c",
"created": "2015-02-15T15:06:45.039Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1958-02-08T03:18:15.04Z",
"verb": "POST",
"jst": "223c7bc6ddb09322220c5d37"
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "minim",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "940e5f56161ff038e5fccc66",
"lastExecuted": 97828516,
"migrationVersion": -9714595,
"createdBy": "3f3d8cfb27376a39027751cf",
"created": "1962-08-29T21:20:53.298Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1993-06-19T13:02:25.267Z",
"source": "pariatur",
"schema": null,
"legacyWrapper": false,
"jst": "861fb7b129849e1bf3c16b75"
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "953e48e7172c826b5fee1453",
"lastExecuted": null,
"migrationVersion": -72218814,
"createdBy": "Pronghorn",
"created": "2009-11-13T10:40:21.57Z",
"lastUpdatedBy": "370e4d2ffb32e27448f409ea",
"lastUpdated": "1990-03-21T17:48:16.996Z",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": null,
"legacyWrapper": true,
"formId": null
},
{
"name": "myCoolDocumentName",
"repeatUnit": "second",
"repeatFrequency": null,
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "dffd58a5adfbbf35fe11ad28",
"lastExecuted": 58144120,
"migrationVersion": -62061810,
"createdBy": "Pronghorn",
"created": "2002-06-05T19:23:37.462Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1957-12-28T13:01:17.444Z",
"repeatInterval": 30000,
"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": false,
"actionType": "automations",
"actionId": "3c9def830bcc7950528543e3",
"lastExecuted": 61466652,
"migrationVersion": -63380925,
"createdBy": "0eb2efd95eb599d32b6e3301",
"created": "1996-03-20T22:04:08.994Z",
"lastUpdatedBy": "c9c079efd906ae5f43c7ed04",
"lastUpdated": "1964-08-03T12:52:03.905Z",
"_id": "60f7a355af405ee9a6644802"
}
}