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": "eYn5",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "a6eeb6cda654802482c5f27c",
"lastExecuted": 57456260,
"migrationVersion": -42915941,
"createdBy": "5a82cc5c6234d51c603e287e",
"created": "2022-03-10T06:36:35.582Z",
"lastUpdatedBy": "f6ca31cc7983c735d20620d4",
"lastUpdated": "1974-05-09T18:04:04.405Z",
"verb": "POST",
"schema": null,
"jst": "01001699d5a358267a2d7371"
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "officia",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "1880a0b6a91c0d04970c300b",
"lastExecuted": null,
"migrationVersion": 70028063,
"createdBy": "Pronghorn",
"created": "2013-08-01T13:30:29.563Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2003-11-25T16:33:44.461Z",
"source": "veniam",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "2397ca2bb2540100937a4781",
"lastExecuted": null,
"migrationVersion": 22795323,
"createdBy": "ddee990000635082c25557e1",
"created": "1963-10-27T19:49:39.07Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1959-09-07T14:28:25.2Z",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": null,
"formId": "62dfab1e2b06ff10eedc8b31"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "41bbaeae9dbe5d08442b5082",
"lastExecuted": 89559912,
"migrationVersion": -3819880,
"createdBy": "e636f44acf636f3ce678ebc7",
"created": "2004-03-21T05:23:43.214Z",
"lastUpdatedBy": "c44cf16f48a51d2973d66389",
"lastUpdated": "1978-06-19T10:12:12.85Z",
"repeatInterval": 120000,
"formId": "9ea41d3461ae838baa9ea346"
}
]
}
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": "de75fb3f718e902e35af6d1c",
"lastExecuted": 63306162,
"migrationVersion": -94459279,
"createdBy": "Pronghorn",
"created": "2017-01-26T05:27:25.756Z",
"lastUpdatedBy": "348d218483b75adc49dd884f",
"lastUpdated": "1972-07-03T18:25:47.008Z",
"_id": "194fd3abf14e73c53dea6094"
}
}