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": "EY",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "b18000d4f07078621c85af90",
"lastExecuted": 45142116,
"migrationVersion": -54008655,
"createdBy": "Pronghorn",
"created": "1988-03-29T17:33:46.233Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2020-08-07T02:22:33.395Z",
"verb": "POST",
"jst": "689301002a0e5c791d0815fa"
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "adipisicing cillum",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "b09b441b3338dacc3ecb3565",
"lastExecuted": null,
"migrationVersion": -70430985,
"createdBy": "4a9c8503bf84065fe5ee91d0",
"created": "1953-03-24T17:47:23.697Z",
"lastUpdatedBy": "47c8751d46790b24632a4775",
"lastUpdated": "2005-05-19T05:38:07.403Z",
"source": "elit",
"schema": null,
"legacyWrapper": false,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "9dbea5299ba8add1921a0c3d",
"lastExecuted": 9390801,
"migrationVersion": 92286717,
"createdBy": "Pronghorn",
"created": "1968-02-29T22:51:20.304Z",
"lastUpdatedBy": "ccc11e23a88e2ee20386a582",
"lastUpdated": "1972-12-27T19:56:10.941Z",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": "laboris",
"legacyWrapper": false,
"formId": null
},
{
"name": "myCoolDocumentName",
"repeatUnit": "second",
"repeatFrequency": 8745470,
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "775b3ae202f77e59b212a6fe",
"lastExecuted": 97510138,
"migrationVersion": -53155982,
"createdBy": "c9cd2dd5b6ca4a2d09d29d27",
"created": "1954-02-18T16:22:13.078Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1997-08-23T20:44:03.935Z",
"repeatInterval": 10000,
"formId": null
}
]
}
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": "d6a843b675e12970b26db943",
"lastExecuted": null,
"migrationVersion": 36906123,
"createdBy": "Pronghorn",
"created": "1998-09-05T14:32:07.849Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1948-03-09T09:57:25.129Z",
"_id": "66e7708945ebe893a2fb1507"
}
}