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": "Omkx0Etz_B",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "82205c7db5a17f198d877382",
"lastExecuted": 48052116,
"migrationVersion": -44107682,
"createdBy": "Pronghorn",
"created": "2024-03-24T18:27:50.508Z",
"lastUpdatedBy": "2d4eb8d927c9eaff2cbbfc00",
"lastUpdated": "1959-09-23T04:43:34.646Z",
"verb": "POST",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "voluptate irure sit tempor aute",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "28388fdca3133ca7fe829af1",
"lastExecuted": null,
"migrationVersion": 64797328,
"createdBy": "Pronghorn",
"created": "1959-05-31T13:01:22.582Z",
"lastUpdatedBy": "a9d69e6fce91d1f345a53774",
"lastUpdated": "1961-05-11T16:39:22.231Z",
"source": "do velit",
"legacyWrapper": true,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "914640146d6a766498997b63",
"lastExecuted": 35368487,
"migrationVersion": 54192168,
"createdBy": "Pronghorn",
"created": "1995-03-07T09:45:40.816Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1988-03-10T17:43:59.031Z",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": "sunt",
"legacyWrapper": true,
"formId": null
},
{
"name": "myCoolDocumentName",
"repeatUnit": "second",
"repeatFrequency": 71161410,
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "c726ee708fa275723292542c",
"lastExecuted": 76217040,
"migrationVersion": 83085406,
"createdBy": "Pronghorn",
"created": "1980-11-07T10:52:34.193Z",
"lastUpdatedBy": "e60cd3df17ea66a49d071b4b",
"lastUpdated": "1994-02-05T05:02:41.348Z",
"repeatInterval": 30000,
"formId": "faf0796ad0a83ed6cff0bd0e"
}
]
}
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": false,
"actionType": "automations",
"actionId": "65a2a85b99d9741788881758",
"lastExecuted": null,
"migrationVersion": -15290948,
"createdBy": "Pronghorn",
"created": "2013-02-09T03:07:38.481Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2007-09-07T21:18:56.648Z",
"_id": "a91d3eb5f2716637938f8451"
}
}