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": "txkY",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "0bab54b65af6981ed504b367",
"lastExecuted": 42510622,
"migrationVersion": 37736052,
"createdBy": "Pronghorn",
"created": "1959-08-07T08:33:01.992Z",
"lastUpdatedBy": "200b878c5e20ed533e0507b8",
"lastUpdated": "2022-03-11T04:46:21.326Z",
"verb": "POST",
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "nisi aliqua",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "51e1c51714a6430c109426ba",
"lastExecuted": 18365666,
"migrationVersion": -12774195,
"createdBy": "Pronghorn",
"created": "2018-01-01T06:06:42.918Z",
"lastUpdatedBy": "24bc539b29199e6a26869ac7",
"lastUpdated": "1997-07-14T04:01:19.982Z",
"source": "in",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "4d34d157112d17679afff4d8",
"lastExecuted": null,
"migrationVersion": -45669767,
"createdBy": "Pronghorn",
"created": "1980-06-08T15:05:50.96Z",
"lastUpdatedBy": "cbc51c1ccf9019bae1e75390",
"lastUpdated": "2008-09-08T22:00:23.489Z",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": null,
"formId": "06a6be62e19465f86c06b802"
},
{
"name": "myCoolDocumentName",
"repeatUnit": "second",
"repeatFrequency": 44591990,
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "88f1b798cd2de67558bf164a",
"lastExecuted": null,
"migrationVersion": 70913566,
"createdBy": "Pronghorn",
"created": "1980-06-19T19:25:47.628Z",
"lastUpdatedBy": "3c357092388879223d260a38",
"lastUpdated": "2011-10-15T07:04:44.447Z",
"repeatInterval": 30000,
"formId": null
}
]
}
Return
DetailsExampleSchema
Name |
Type |
Description |
createdTigger |
object |
The result of the create operation. |
Copied to Clipboard
{
"message": "Successfully retrieved search results",
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "4aa576f95fa4205980868969",
"lastExecuted": null,
"migrationVersion": 81125734,
"createdBy": "Pronghorn",
"created": "1985-05-17T15:11:20.264Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1978-05-19T10:59:54.353Z",
"_id": "26c541efbe19c18bfb358831"
}
}