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": "xOsCE4",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "fe44f0cd2081b4aa6ae0a999",
"lastExecuted": null,
"migrationVersion": 41394686,
"createdBy": "718a09d07a660104c33969fa",
"created": "1987-10-26T10:17:30.758Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1979-02-19T00:49:52.613Z",
"verb": "POST",
"jst": "d90accb97f488b1622191bba"
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "Lorem sunt cillum",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "494c149f62c31e214b373479",
"lastExecuted": 53905844,
"migrationVersion": -20016595,
"createdBy": "Pronghorn",
"created": "1984-03-22T22:37:28.091Z",
"lastUpdatedBy": "d4b7ce3c0ee357e7c7007067",
"lastUpdated": "1999-07-29T12:50:19.85Z",
"source": "labore",
"legacyWrapper": true,
"jst": "6479df9b4a8f87647dcb2113"
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "65a2bb4cfb933c4b71d4c214",
"lastExecuted": null,
"migrationVersion": 4174449,
"createdBy": "Pronghorn",
"created": "1975-07-11T08:32:24.799Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1986-07-05T20:21:30.713Z",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": null,
"legacyWrapper": false,
"formId": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "4e6c9006d298e9929785eef6",
"lastExecuted": 54968996,
"migrationVersion": 94996044,
"createdBy": "Pronghorn",
"created": "1987-02-05T06:07:36.546Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1984-05-05T04:37:47.271Z",
"repeatInterval": 30000,
"formId": null
}
]
}
Return
DetailsExampleSchema
Name |
Type |
Description |
createdTigger |
object |
The result of the create operation. |
Copied to Clipboard
{
"message": "Successfully created the requested item",
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "f3f70e941c1785e626c21ebe",
"lastExecuted": null,
"migrationVersion": 77296083,
"createdBy": "Pronghorn",
"created": "1999-10-26T03:25:36.543Z",
"lastUpdatedBy": "6743bc50f0ec15b3209a29e0",
"lastUpdated": "1996-12-31T20:09:23.154Z",
"_id": "30cdf532f4918f3a0ef432e5"
}
}