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": "GmqkCQ",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "5079d0c7253f774896d52bed",
"lastExecuted": 5215070,
"migrationVersion": 90984103,
"createdBy": "8dfd9615311e855b423458a4",
"created": "2005-08-07T22:31:48.889Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2021-07-29T10:09:58.922Z",
"verb": "POST",
"schema": null,
"jst": "ecc41269fb5a9329a585f670"
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "ut officia enim cupidatat in",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "36ac8fb915f6f5e86d6ecd46",
"lastExecuted": null,
"migrationVersion": -86508744,
"createdBy": "37b68dfca4e3597d01ca0d90",
"created": "1956-02-03T16:54:50.848Z",
"lastUpdatedBy": "66aaeee6d11efab0f36c0b5e",
"lastUpdated": "1944-11-16T18:50:18.582Z",
"source": "fugiat minim exercitation officia",
"schema": null,
"legacyWrapper": false,
"jst": "45fb7e182fba3423178415bd"
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "e32c2fd6e78b9e34afbe410f",
"lastExecuted": 44591568,
"migrationVersion": -57623045,
"createdBy": "af546ec55693a74b3cd18269",
"created": "1972-12-27T20:38:41.8Z",
"lastUpdatedBy": "853ee0b0db98158ac9525958",
"lastUpdated": "2014-12-23T19:38:47.68Z",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": "sed sit Lorem culpa",
"legacyWrapper": false,
"formId": "026b034bcc83388e9c457bc3"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "c783ac73d3adcc7009bacb9f",
"lastExecuted": null,
"migrationVersion": 45792509,
"createdBy": "Pronghorn",
"created": "1945-01-26T11:29:56.587Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1963-05-27T20:47:14.455Z",
"repeatInterval": 120000,
"formId": "e0cd6c86a5b5fb2453a9ebad"
}
]
}
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": "bac732ecece5ea33b3edd19c",
"lastExecuted": 70436779,
"migrationVersion": -13075353,
"createdBy": "Pronghorn",
"created": "1962-12-22T05:02:14.744Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1980-02-18T04:39:09.665Z",
"_id": "5fb6c052bdb8260968ffc9fb"
}
}