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": "ZUmQ",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "2110d7b49e0101b46d42b810",
"lastExecuted": null,
"migrationVersion": -59550885,
"createdBy": "Pronghorn",
"created": "1998-05-04T13:50:59.378Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2021-08-23T03:47:38.155Z",
"verb": "POST",
"jst": "b2c2f90cd7f05b69a263946b"
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "commodo Lorem aute",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "80e0a596b71fd201a6750b1d",
"lastExecuted": null,
"migrationVersion": -99244646,
"createdBy": "ac2a7ae60e048316b06f8ad9",
"created": "1973-03-08T06:28:21.585Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2002-12-01T09:41:33.316Z",
"source": "laborum",
"legacyWrapper": false,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "cd93498cbbb2bc59270f004a",
"lastExecuted": null,
"migrationVersion": -10561254,
"createdBy": "Pronghorn",
"created": "1977-11-14T09:36:03.127Z",
"lastUpdatedBy": "019fb0c44e7c15cd32483243",
"lastUpdated": "1950-02-12T07:00:58.718Z",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": null,
"legacyWrapper": true,
"formId": "d83566fee534f837ea044a4d"
},
{
"name": "myCoolDocumentName",
"repeatUnit": "minute",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "10fa59cebdd903cc240ccb5d",
"lastExecuted": 21071316,
"migrationVersion": 82838397,
"createdBy": "Pronghorn",
"created": "1952-08-17T00:37:56.801Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2020-11-17T04:45:50.608Z",
"repeatInterval": 120000,
"formId": "f6060d90b5a37d30b2810e2c"
}
]
}
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": "5b47d9acfa7ca237031feefc",
"lastExecuted": 47455240,
"migrationVersion": -48145915,
"createdBy": "eabbdfc02e686e64230fb85c",
"created": "1976-12-25T14:21:28.332Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1956-02-16T17:16:06.529Z",
"_id": "9cc292f8bba2d70c45698b54"
}
}