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": "YksT81Odsiq",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "3116cdebc238a5a89432daf6",
"lastExecuted": null,
"migrationVersion": -44945879,
"createdBy": "376d5a6465a2bfe29ea31fb5",
"created": "1959-09-19T17:25:57.729Z",
"lastUpdatedBy": "3f84ee76233ccd3704c59b51",
"lastUpdated": "1954-09-16T08:28:42.657Z",
"verb": "POST",
"schema": null,
"jst": "9354f74e41f8e6afdbd3e1f5"
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "aute",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "9c2ae01e069382397fe42ba8",
"lastExecuted": null,
"migrationVersion": -57487983,
"createdBy": "5cf16e5f86ea69137010c97d",
"created": "2015-10-13T11:59:32.55Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1966-03-30T06:52:33.968Z",
"source": "laborum in",
"schema": null,
"legacyWrapper": true,
"jst": "1504c6a2507c0f13be8f2d7f"
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "88605e4b2bd3919c0848583c",
"lastExecuted": 39306246,
"migrationVersion": 73270722,
"createdBy": "16ae6374363b025e126a212a",
"created": "2004-08-16T08:54:42.76Z",
"lastUpdatedBy": "2e180537f71066370915010c",
"lastUpdated": "1997-07-03T21:18:55.371Z",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": "ex sit nisi",
"legacyWrapper": false,
"formId": "14c3a1671e9bf7a74d8eb4a3"
},
{
"name": "myCoolDocumentName",
"repeatUnit": "second",
"repeatFrequency": null,
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "7ee86c6ee53ef81199356614",
"lastExecuted": null,
"migrationVersion": -38262048,
"createdBy": "67afc231c82ed97d52ab6443",
"created": "1955-11-17T18:18:51.959Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1965-09-16T22:06:21.89Z",
"repeatInterval": 120000,
"formId": "56949f05f2c48f7eb3c8d234"
}
]
}
Return
DetailsExampleSchema
Name |
Type |
Description |
createdTigger |
object |
The result of the create operation. |
Copied to Clipboard
{
"message": "Successfully retrieved search results",
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "4e24b74b41668ea4349d46b1",
"lastExecuted": 28739292,
"migrationVersion": -45906979,
"createdBy": "fa8ed104de16a871f6dce931",
"created": "1993-01-26T18:04:56.199Z",
"lastUpdatedBy": "995b593a34d53d46d0573105",
"lastUpdated": "2018-08-27T22:40:36.507Z",
"_id": "2e8d42265cb8040f887d4e36"
}
}