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": "Iilxf1",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "fc2da679cccd36dc4a6fda6a",
"lastExecuted": 66019643,
"migrationVersion": -47280789,
"createdBy": "43ea08172def9b952e3a4a65",
"created": "1959-06-21T03:43:22.53Z",
"lastUpdatedBy": "4c30aaa9ecacb31f65aae714",
"lastUpdated": "2004-03-30T11:20:28.193Z",
"verb": "POST",
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "irure eu et ut reprehenderit",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "c94945a5b59ea02085274e44",
"lastExecuted": null,
"migrationVersion": -2970823,
"createdBy": "Pronghorn",
"created": "1984-03-10T23:14:46.048Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1975-01-15T19:33:28.089Z",
"source": "fugiat",
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "c95d503cd5a39c1d3f3dc8f3",
"lastExecuted": null,
"migrationVersion": -88993779,
"createdBy": "a0d0eb22c266c22e9e3be66e",
"created": "1980-10-14T08:45:51.2Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1971-11-12T08:12:43.391Z",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": null,
"formId": "22a1f1cbf4447b449e6a8489"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "c9c8e5e7533381de32d837c1",
"lastExecuted": null,
"migrationVersion": -10422629,
"createdBy": "Pronghorn",
"created": "1986-02-21T23:49:49.211Z",
"lastUpdatedBy": "e799c40f13ef5b5e36108ba1",
"lastUpdated": "1960-08-31T19:26:13.469Z",
"repeatInterval": 10000,
"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": "50bda5b3c5c78c12fea9c6c0",
"lastExecuted": 44844152,
"migrationVersion": 37537443,
"createdBy": "Pronghorn",
"created": "1988-07-23T16:07:10.257Z",
"lastUpdatedBy": "3f480cdd5d21b81ea34d8c4f",
"lastUpdated": "1988-03-29T13:14:47.499Z",
"_id": "b00e17663ad4e89fc647505f"
}
}