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": "NP6EF",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "ed93b7bd309a6cd623260529",
"lastExecuted": 49079267,
"migrationVersion": 40651500,
"createdBy": "Pronghorn",
"created": "2009-03-06T19:54:46.035Z",
"lastUpdatedBy": "3fe32dad32ecfa6a46006e26",
"lastUpdated": "1944-12-13T01:39:01.919Z",
"verb": "POST",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "laboris dolor",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "91c9763cbec748d74ecd29bb",
"lastExecuted": 29216882,
"migrationVersion": 86514571,
"createdBy": "60ab8ad2549f007ff6e1bf4b",
"created": "2000-12-30T02:23:00.597Z",
"lastUpdatedBy": "a5dc1baa6ac924d7e4e34dcb",
"lastUpdated": "2013-09-16T22:41:03.82Z",
"source": "ad esse Excepteur tempor",
"legacyWrapper": true,
"jst": "eb2ac5e32dc58657ffc3bb5d"
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "db699d047e866fb1e20b632f",
"lastExecuted": null,
"migrationVersion": 23988126,
"createdBy": "Pronghorn",
"created": "1961-10-15T01:09:40.705Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1984-03-16T09:23:17.552Z",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": null,
"legacyWrapper": false,
"formId": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "fa5420dde49bd4adbe840f6a",
"lastExecuted": null,
"migrationVersion": 34337751,
"createdBy": "0005db316cc7774da55f6de6",
"created": "1964-01-19T11:23:41.982Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1998-05-23T02:02:48.234Z",
"repeatInterval": 30000,
"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": "bc9d320a2e8bab5e2f43aee1",
"lastExecuted": 65658017,
"migrationVersion": -30145474,
"createdBy": "2e7be9db7db68f9eca507eb9",
"created": "1994-09-16T19:37:21.755Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1967-05-08T23:51:35.111Z",
"_id": "de4f0e5b2204617bcbd95171"
}
}