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": "N7gUIj",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "142d7a561d01b399d43a4b1e",
"lastExecuted": 31697545,
"migrationVersion": -27098623,
"createdBy": "Pronghorn",
"created": "1997-06-18T06:13:28.856Z",
"lastUpdatedBy": "a4b63d9fa744221dc7295bd8",
"lastUpdated": "1994-09-15T21:30:33.263Z",
"verb": "POST",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "nisi consectetur",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "b4b2763a07d166d94327cef5",
"lastExecuted": 25858800,
"migrationVersion": 84888885,
"createdBy": "Pronghorn",
"created": "1984-01-23T04:20:17.551Z",
"lastUpdatedBy": "4f32bc0ed857ba9e4f959ec7",
"lastUpdated": "1966-05-08T08:53:14.391Z",
"source": "mollit in est proident fugiat",
"schema": null,
"legacyWrapper": true,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "cf2e5b165df49e4ea2a214ba",
"lastExecuted": 33457361,
"migrationVersion": -94979423,
"createdBy": "Pronghorn",
"created": "1998-09-19T15:24:34.747Z",
"lastUpdatedBy": "38a1d42fed9c85ad939f1648",
"lastUpdated": "1958-01-29T01:27:07.193Z",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": null,
"legacyWrapper": true,
"formId": "d4c9350f4cff7633c99794e8"
},
{
"name": "myCoolDocumentName",
"repeatUnit": null,
"repeatFrequency": null,
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "f4262be6fc0321224106be68",
"lastExecuted": null,
"migrationVersion": -19532966,
"createdBy": "ef1b911e38bb30e7ec910e73",
"created": "2024-04-19T00:16:38.259Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1964-01-07T19:10:16.74Z",
"repeatInterval": 30000,
"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": false,
"actionType": "automations",
"actionId": "21b6149c6ea6887f054e0d45",
"lastExecuted": 71884855,
"migrationVersion": -2926885,
"createdBy": "b7857a9c7d3f6435a18be3ff",
"created": "1953-03-12T03:31:47.594Z",
"lastUpdatedBy": "f3735d97fa4779835875bbf5",
"lastUpdated": "2010-09-03T22:05:57.158Z",
"_id": "691af5c9ad16e3f2e07d83f1"
}
}