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": "xYa2o0",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "41e01fb5b899b0a29899bf54",
"lastExecuted": 25823710,
"migrationVersion": 22139756,
"createdBy": "Pronghorn",
"created": "1962-05-14T04:20:09.619Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1983-03-19T10:56:48.93Z",
"verb": "POST",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "fugiat velit amet",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "45723bb2a899ef7838020fdf",
"lastExecuted": 42295608,
"migrationVersion": -47693342,
"createdBy": "f587e311f5f430192c54ed7d",
"created": "1998-01-06T05:46:34.79Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2014-12-28T21:40:36.35Z",
"source": "tempor officia minim",
"legacyWrapper": true,
"jst": "9778a30183f8243d66631709"
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "9f417b94ab03ccae38b73ba1",
"lastExecuted": 47984955,
"migrationVersion": 18521322,
"createdBy": "42d9cf065a3ad7a74709dfc3",
"created": "1966-02-26T21:07:21.655Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1956-07-28T04:58:10.797Z",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": "fugiat",
"legacyWrapper": true,
"formId": "beea47feed2d8e28aa1f520d"
},
{
"name": "myCoolDocumentName",
"repeatUnit": "second",
"repeatFrequency": null,
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "a3066d56029a7b7f9348dfef",
"lastExecuted": 93895391,
"migrationVersion": -53740467,
"createdBy": "2afc63e5ef8b5a8cd681f3a9",
"created": "1957-11-04T22:55:54.15Z",
"lastUpdatedBy": "fd5a523fc91a8e59552f28ee",
"lastUpdated": "2021-11-20T01:53:40.126Z",
"repeatInterval": 120000,
"formId": "a4f99212685d930e85abb62a"
}
]
}
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": "911f5da54b1e96e053f0a6db",
"lastExecuted": null,
"migrationVersion": 47262165,
"createdBy": "1c4d2fee86b75c0db10a410e",
"created": "1980-01-21T20:23:04.475Z",
"lastUpdatedBy": "ed8dab356cc4de85b68bdd48",
"lastUpdated": "1991-05-04T20:15:17.415Z",
"_id": "e9744e291df45014b0cd9fcf"
}
}