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": "cl",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "c2aeb4a2606fd54da5a7596c",
"lastExecuted": 15763313,
"migrationVersion": -53562830,
"createdBy": "b668ad7347970ea0341fed2a",
"created": "1951-12-16T17:35:13.476Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1995-05-10T22:36:29.767Z",
"verb": "POST",
"schema": null,
"jst": "c940ba3535d1ec06087a71f8"
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "do",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "480734ee4f37ae37a80f6c24",
"lastExecuted": 91992721,
"migrationVersion": -63687285,
"createdBy": "Pronghorn",
"created": "2013-03-23T18:45:05.058Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1949-02-13T05:38:47.837Z",
"source": "officia magna dolor ut in",
"legacyWrapper": false,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "948cdb78d31246708324a451",
"lastExecuted": null,
"migrationVersion": -35561973,
"createdBy": "Pronghorn",
"created": "1991-12-10T15:01:59.62Z",
"lastUpdatedBy": "8868109cb45023ec8dde8c08",
"lastUpdated": "1947-04-26T14:10:06.661Z",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": "dolore aliqua ad tempor",
"legacyWrapper": false,
"formId": "f23b725672b429b9320157cd"
},
{
"name": "myCoolDocumentName",
"repeatUnit": "second",
"repeatFrequency": null,
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "1c10b927169d7db63e221944",
"lastExecuted": null,
"migrationVersion": -55765702,
"createdBy": "e715c5df95e3d4a749e19bba",
"created": "1959-12-16T19:34:49.175Z",
"lastUpdatedBy": "45f2ce1230f4af8602459c52",
"lastUpdated": "1993-07-07T08:49:52.653Z",
"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": "9a390769260993156748e39d",
"lastExecuted": 58343557,
"migrationVersion": -82862641,
"createdBy": "Pronghorn",
"created": "2010-04-03T15:47:27.439Z",
"lastUpdatedBy": "88290a2256fb55e71064ba4a",
"lastUpdated": "1987-04-06T02:20:38.243Z",
"_id": "66f03676c6d1425c6c029a78"
}
}