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": "GbmAQ",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "ccec5b801825fe002506b3cc",
"lastExecuted": null,
"migrationVersion": 73013589,
"createdBy": "Pronghorn",
"created": "1987-09-08T20:09:11.407Z",
"lastUpdatedBy": "a2ba09315351a269823e1fe3",
"lastUpdated": "1992-09-25T06:27:52.24Z",
"verb": "POST",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "dolore minim",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "23178caf1ea25bc6956761cd",
"lastExecuted": null,
"migrationVersion": 47481123,
"createdBy": "b466de7787770bd21eabe938",
"created": "1985-11-13T13:07:54.844Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2021-04-04T11:16:53.781Z",
"source": "laborum occaecat pariatur proident do",
"legacyWrapper": true,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "2c2762f14d93f422de2e0629",
"lastExecuted": 26285362,
"migrationVersion": -811575,
"createdBy": "Pronghorn",
"created": "1956-06-30T18:35:56.153Z",
"lastUpdatedBy": "f35d0785464fd60c505cdca7",
"lastUpdated": "2018-02-15T07:46:16.518Z",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": null,
"legacyWrapper": true,
"formId": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "60ad0bcfe6a69c58a3d0f2a2",
"lastExecuted": 35375501,
"migrationVersion": 10064638,
"createdBy": "Pronghorn",
"created": "1993-12-16T16:26:38.017Z",
"lastUpdatedBy": "1aa080d1685baf39da1ae579",
"lastUpdated": "2017-09-07T15:40:00.87Z",
"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": false,
"actionType": "automations",
"actionId": "c12b7f22a778144c4ac67543",
"lastExecuted": 75708376,
"migrationVersion": 73509614,
"createdBy": "Pronghorn",
"created": "2020-07-06T18:24:47.895Z",
"lastUpdatedBy": "a9d551fb792ea594bc29fb50",
"lastUpdated": "2006-04-08T18:39:19.326Z",
"_id": "1807f6ee8ffc55343a0b7d58"
}
}