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": "NY4iTS",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "27871455ba59760e1f89cbb8",
"lastExecuted": null,
"migrationVersion": -20207778,
"createdBy": "4dae933d7a8915e67ea2512e",
"created": "1998-05-31T15:31:11.95Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2000-12-02T02:33:56.734Z",
"verb": "POST",
"jst": "3bd065e3093139358185904f"
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "sed in veniam exercitation magna",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "be1ed09a84701cf88906c899",
"lastExecuted": null,
"migrationVersion": 33588691,
"createdBy": "Pronghorn",
"created": "1961-05-05T00:43:08.906Z",
"lastUpdatedBy": "91a9958595354df4eb4e158b",
"lastUpdated": "2011-07-25T19:21:13.246Z",
"source": "Ut consectetur",
"schema": null,
"legacyWrapper": true,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "c5686c449e9d3fe9454a6b14",
"lastExecuted": null,
"migrationVersion": 24254565,
"createdBy": "Pronghorn",
"created": "1954-04-07T12:42:25.341Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2009-03-23T08:22:43.237Z",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": null,
"legacyWrapper": true,
"formId": null
},
{
"name": "myCoolDocumentName",
"repeatUnit": null,
"repeatFrequency": null,
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "87ffb3af8ccef40c65b2d2fb",
"lastExecuted": 91199627,
"migrationVersion": 3542759,
"createdBy": "Pronghorn",
"created": "1969-04-14T22:11:16.571Z",
"lastUpdatedBy": "3325449ae6869f5b6caf470e",
"lastUpdated": "2003-10-15T04:45:02.575Z",
"repeatInterval": 120000,
"formId": "a5d58f244007b74c6faf1bda"
}
]
}
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": "1da0b84dc49d439cc462a3fd",
"lastExecuted": 60762501,
"migrationVersion": -94107823,
"createdBy": "Pronghorn",
"created": "1996-06-29T02:55:32.62Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1974-04-14T19:12:17.172Z",
"_id": "dff7bf5318563c22a71cf0d3"
}
}