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": "_DLe",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "d5177c903a1483f83770f0c5",
"lastExecuted": 4647915,
"migrationVersion": -57566833,
"createdBy": "Pronghorn",
"created": "2010-05-23T13:00:47.762Z",
"lastUpdatedBy": "18f5e6f735a8f29fd4aa9ad8",
"lastUpdated": "1980-09-17T16:35:54.103Z",
"verb": "POST",
"schema": null,
"jst": "0c1fa78fc250c450c166689f"
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "dolor et dolor",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "a1bfb910871b7e6c0b070fe9",
"lastExecuted": null,
"migrationVersion": -38872023,
"createdBy": "Pronghorn",
"created": "1964-02-13T13:16:07.357Z",
"lastUpdatedBy": "ccdde92adc141619526a10ea",
"lastUpdated": "1967-12-26T22:29:22.763Z",
"source": "sit elit nisi pariatur officia",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "2225ac985af2b977b5ff3365",
"lastExecuted": null,
"migrationVersion": -16294915,
"createdBy": "61884878430bbe7c5511ad56",
"created": "1997-06-17T13:03:53.487Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1953-09-04T06:53:18.633Z",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": "aute ullamco",
"formId": "49f70a43a3eeb47e797ef559"
},
{
"name": "myCoolDocumentName",
"repeatUnit": "minute",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "38d6b268c0d950bbd6f8eb14",
"lastExecuted": null,
"migrationVersion": -96112522,
"createdBy": "bce1a0574f05f7725fd5792a",
"created": "1966-04-20T17:36:57.917Z",
"lastUpdatedBy": "2796c0a460bad93302c7f4c3",
"lastUpdated": "1956-02-06T20:01:15.572Z",
"repeatInterval": 120000,
"formId": null
}
]
}
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": true,
"actionType": "automations",
"actionId": "0aa519d07dce619c459722b5",
"lastExecuted": 78814123,
"migrationVersion": 95200644,
"createdBy": "Pronghorn",
"created": "1970-11-06T19:49:52.967Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1982-01-15T04:40:28.101Z",
"_id": "99368d3c59cb7d0bb554be1c"
}
}