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": "o258L",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "a63c146b383241a4cb71bfdf",
"lastExecuted": 49830163,
"migrationVersion": 30031500,
"createdBy": "Pronghorn",
"created": "1969-05-27T21:48:48.682Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1993-06-12T01:49:32.089Z",
"verb": "POST",
"jst": "085eaf24390b08a837fcf951"
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "laboris consectetur",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "f43468f0e595938b29e1de98",
"lastExecuted": null,
"migrationVersion": 58218406,
"createdBy": "f7da03a1ae366ce6065c12af",
"created": "2023-11-17T18:48:10.007Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1965-01-20T22:13:47.745Z",
"source": "eiusmod proident reprehenderit magna",
"schema": null,
"legacyWrapper": true,
"jst": "bb5737416554bb3081458f2b"
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "1eeec540a8368e87682c8d23",
"lastExecuted": null,
"migrationVersion": -60655705,
"createdBy": "0fd1bd11ff59a6b31ecdd79c",
"created": "1958-10-03T23:07:08.452Z",
"lastUpdatedBy": "a4b95cd3f59f24d7ed2b748d",
"lastUpdated": "2018-04-22T06:35:06.278Z",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": null,
"legacyWrapper": false,
"formId": null
},
{
"name": "myCoolDocumentName",
"repeatUnit": null,
"repeatFrequency": null,
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "ece07aea7869f802315867ef",
"lastExecuted": null,
"migrationVersion": -63060649,
"createdBy": "Pronghorn",
"created": "2012-11-27T20:51:18.25Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1987-11-29T16:14:55.707Z",
"repeatInterval": 10000,
"formId": "9c3b85c97df5cc8a69346941"
}
]
}
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": "c5fad99fc1783f0987a8e0b1",
"lastExecuted": null,
"migrationVersion": 21392438,
"createdBy": "Pronghorn",
"created": "2015-10-18T21:19:21.535Z",
"lastUpdatedBy": "7c7ce310a9bd48933756f3d6",
"lastUpdated": "2006-08-22T02:03:39.531Z",
"_id": "49853398c9c9f37789d0d03c"
}
}