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": "--Tsb_",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "46a14eb491d51a57db301955",
"lastExecuted": null,
"migrationVersion": -49148465,
"createdBy": "6a81754c76d7619abc155e3a",
"created": "1958-01-11T00:44:34.046Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1987-05-12T01:59:04.972Z",
"verb": "POST",
"jst": "c8c454d33000d95cc19e7a69"
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "ut cupidatat",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "6c040c88107eb11ac82e13a8",
"lastExecuted": 79156245,
"migrationVersion": -64670717,
"createdBy": "Pronghorn",
"created": "1989-12-14T16:50:19.307Z",
"lastUpdatedBy": "583017b9786b1a66e36778b7",
"lastUpdated": "1960-08-28T13:05:31.572Z",
"source": "deserunt",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "f425f225809ae4cd43e28582",
"lastExecuted": 20074056,
"migrationVersion": 9853802,
"createdBy": "da4324dde19e29708b8b3e7c",
"created": "2000-10-11T05:19:50.578Z",
"lastUpdatedBy": "fb69244d87ebb0fa27826d62",
"lastUpdated": "1960-04-02T22:58:51.131Z",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": "Lorem mollit culpa veniam consequat",
"formId": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "034d8b3fad0235190d795f8e",
"lastExecuted": null,
"migrationVersion": -38262404,
"createdBy": "Pronghorn",
"created": "1962-03-16T00:42:33.187Z",
"lastUpdatedBy": "00ce59f69b16ab2d85b0120d",
"lastUpdated": "1986-01-30T16:34:49.755Z",
"repeatInterval": 30000,
"formId": "cd5c3697805181b67e0b534e"
}
]
}
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": "b44c935d9f702db6d4a111a9",
"lastExecuted": 38696473,
"migrationVersion": 31539189,
"createdBy": "Pronghorn",
"created": "1961-03-16T00:28:52.712Z",
"lastUpdatedBy": "f9ff2e45948c7543b2adfb5c",
"lastUpdated": "1947-04-21T12:02:17.189Z",
"_id": "bee0f2501138f2e7db6a2662"
}
}