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": "wCwV7rerL",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "d2ab805a06ef0d714178707c",
"lastExecuted": 967771,
"migrationVersion": -77567278,
"createdBy": "Pronghorn",
"created": "2012-01-27T02:33:37.771Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1992-02-20T21:11:52.79Z",
"verb": "POST",
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "Ut irure ut velit occaecat",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "e81e36c3e7bdf3c14f113f0a",
"lastExecuted": null,
"migrationVersion": 3024263,
"createdBy": "Pronghorn",
"created": "1945-07-21T02:41:51.593Z",
"lastUpdatedBy": "74fcc661c212bd341fb1ef24",
"lastUpdated": "1974-12-02T20:39:23.757Z",
"source": "ea",
"schema": null,
"jst": "efa75a2c23b58ff89e144267"
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "70d03f8da8ae518469bd2cf7",
"lastExecuted": 71089447,
"migrationVersion": -82578364,
"createdBy": "0bff8cec1aff91c1d61504e9",
"created": "2014-06-18T03:35:11.07Z",
"lastUpdatedBy": "7fedf51c3c2710c06fae1023",
"lastUpdated": "1972-10-12T05:50:49.999Z",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": null,
"formId": "11cff987689f94ad5f20b33f"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "56a65921d9488dc736d56cab",
"lastExecuted": null,
"migrationVersion": 70374233,
"createdBy": "276fecb9a1f380d747daa379",
"created": "2012-09-08T10:25:11.419Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1977-05-13T16:02:17.798Z",
"repeatInterval": 120000,
"formId": "ac83600679e7f01226b4d5a1"
}
]
}
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": true,
"actionType": "automations",
"actionId": "76780ae935dd800fb99fb562",
"lastExecuted": 23558096,
"migrationVersion": -23654853,
"createdBy": "Pronghorn",
"created": "1948-03-02T01:54:42.238Z",
"lastUpdatedBy": "a266d3021a48c056f260d51e",
"lastUpdated": "2010-09-30T19:03:34.074Z",
"_id": "28e9ca86f0040a41ee8ec227"
}
}