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": "yHk",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "90963ac1a7b2177a0c7308e5",
"lastExecuted": null,
"migrationVersion": -37714538,
"createdBy": "Pronghorn",
"created": "1967-06-24T20:39:05.376Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1954-11-20T03:47:21.643Z",
"verb": "POST",
"schema": null,
"jst": "ff68eba48ead730461aa16f1"
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "laborum laboris pariatur enim eu",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "16d0c861e4bffacfbdbb65d4",
"lastExecuted": null,
"migrationVersion": -73705885,
"createdBy": "c4d1fcd61f94598e5ba2e3d7",
"created": "1952-10-22T23:10:24.277Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2000-09-20T07:09:34.984Z",
"source": "aliquip do sit est incididunt",
"schema": null,
"legacyWrapper": false,
"jst": "87df8a123eab5196440e5226"
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "8f58dccad73cd04fc181f45a",
"lastExecuted": 41660563,
"migrationVersion": 75740272,
"createdBy": "Pronghorn",
"created": "1978-02-19T21:57:08.044Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1947-04-20T07:49:27.864Z",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": "deserunt incididunt amet dolor Excepteur",
"legacyWrapper": true,
"formId": null
},
{
"name": "myCoolDocumentName",
"repeatUnit": "week",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "fedb05f402bb41cc3292c571",
"lastExecuted": null,
"migrationVersion": -7518791,
"createdBy": "81f9b99eb3cde6142633e4f8",
"created": "1963-04-16T19:38:12.547Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2010-06-21T18:29:29.058Z",
"repeatInterval": 120000,
"formId": null
}
]
}
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": "2c03892483f1168d9a0b8db3",
"lastExecuted": null,
"migrationVersion": 79484663,
"createdBy": "1a5c28a7367e4de9ed74e70e",
"created": "1979-04-17T10:59:44.905Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1978-04-24T18:14:12.404Z",
"_id": "28fba3e7a1e15014f24f9d3d"
}
}