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": "U6RwuY9gr",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "14805cf63b2818e52990dde4",
"lastExecuted": null,
"migrationVersion": -24266438,
"createdBy": "5a4e99a81073682cfc4647e8",
"created": "1985-08-26T01:34:10.271Z",
"lastUpdatedBy": "473cb3a2bdcf967098a262af",
"lastUpdated": "2004-01-05T06:37:05.225Z",
"verb": "POST",
"jst": "63380480c6ac11ac7be869ee"
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "fugiat velit sed",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "ed51ae0c439d61efeeb1de48",
"lastExecuted": 18807342,
"migrationVersion": 85342494,
"createdBy": "69f032e38e2601d34d6e2335",
"created": "1993-11-05T18:01:02.756Z",
"lastUpdatedBy": "b73b8c44d2e4794fbdd0f0e1",
"lastUpdated": "1961-01-05T00:56:46.832Z",
"source": "commodo ut",
"schema": null,
"jst": "4d46bf70f571cd313380e414"
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "0c0647c0c647cecf9ccde40b",
"lastExecuted": null,
"migrationVersion": 31555522,
"createdBy": "Pronghorn",
"created": "1948-03-12T14:56:04.834Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2020-03-29T05:44:50.318Z",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": null,
"formId": null
},
{
"name": "myCoolDocumentName",
"repeatUnit": "second",
"repeatFrequency": 36709720,
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "4f32664d7cad59020942d9d6",
"lastExecuted": null,
"migrationVersion": -43781256,
"createdBy": "c5556a9efc974f05ca82526c",
"created": "1958-10-19T16:19:59.537Z",
"lastUpdatedBy": "63caefc319e663587cfff8a5",
"lastUpdated": "1950-09-07T09:27:08.507Z",
"repeatInterval": 30000,
"formId": "f7897a7fb617e56994c0377f"
}
]
}
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": "6b452fcb9b27daa33c74a24e",
"lastExecuted": null,
"migrationVersion": -96317277,
"createdBy": "Pronghorn",
"created": "1948-08-31T18:07:40.331Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1971-12-29T21:09:54.848Z",
"_id": "8938aea9e09ac0e4cc09826f"
}
}