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": "sctghN",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "b6aaba4253c9da32fba9b95b",
"lastExecuted": null,
"migrationVersion": -23070944,
"createdBy": "Pronghorn",
"created": "1947-02-25T03:22:37.483Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1964-08-27T20:11:12.004Z",
"verb": "POST",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "veniam",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "fe08786d202bb8f558b36cbc",
"lastExecuted": null,
"migrationVersion": -3626023,
"createdBy": "18be91eef55a890005bcd0f5",
"created": "1945-01-24T02:52:16.941Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1967-12-27T00:05:01.864Z",
"source": "incididunt pariatur adipisicing eiusmod veniam",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "e63dec25488899adcdb258e3",
"lastExecuted": 36604098,
"migrationVersion": 47860545,
"createdBy": "Pronghorn",
"created": "2019-09-09T16:53:28.405Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2023-08-06T14:43:25.331Z",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": "non",
"formId": "40ea44d81530e5690359cda4"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "060cc3040c6bcbb88a6e358b",
"lastExecuted": null,
"migrationVersion": -13578856,
"createdBy": "Pronghorn",
"created": "1944-06-18T17:18:02.963Z",
"lastUpdatedBy": "bde710e8ad31188cde7bc0f1",
"lastUpdated": "2022-10-21T00:49:04.802Z",
"repeatInterval": 30000,
"formId": "fb25b957db1234e585fcfc5f"
}
]
}
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": "2c6127a2e0be73e01fad01de",
"lastExecuted": 29393259,
"migrationVersion": 6228845,
"createdBy": "a29ea1ad28e2bfa66f6a6753",
"created": "1984-12-04T14:07:27.583Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1979-05-06T12:33:44.583Z",
"_id": "3d346635ddf6b1c2a53d29cc"
}
}