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": "hTjH",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "1b6fc474e3d54491799b4f0d",
"lastExecuted": 71473533,
"migrationVersion": 60540805,
"createdBy": "Pronghorn",
"created": "1983-01-17T14:27:14.581Z",
"lastUpdatedBy": "1b56d39430d12f8f674a1dab",
"lastUpdated": "1964-03-11T01:45:13.72Z",
"verb": "POST",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "et",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "d9a87ff4f2b2fd5415af647f",
"lastExecuted": null,
"migrationVersion": -49543205,
"createdBy": "Pronghorn",
"created": "1977-02-25T17:14:29.462Z",
"lastUpdatedBy": "0b98b4cce491b76600287635",
"lastUpdated": "1990-04-26T15:51:54.17Z",
"source": "deserunt voluptate nulla",
"schema": null,
"legacyWrapper": true,
"jst": "ee36b1e82b7e9a79d9dd69b6"
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "58da864121a7b72c34119995",
"lastExecuted": null,
"migrationVersion": 89962132,
"createdBy": "Pronghorn",
"created": "2006-07-07T06:23:29.915Z",
"lastUpdatedBy": "120abb9c707b8745a6a5708f",
"lastUpdated": "1999-11-02T09:52:05.165Z",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": "esse tempor ad labore",
"legacyWrapper": false,
"formId": "f5bc224b0a8c8ee3928420cd"
},
{
"name": "myCoolDocumentName",
"repeatUnit": "minute",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "d0ecd28726ad4daad3c79753",
"lastExecuted": 78762411,
"migrationVersion": 38803039,
"createdBy": "Pronghorn",
"created": "2018-03-26T16:18:02.25Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2024-12-27T15:23:18.698Z",
"repeatInterval": 30000,
"formId": "977a23854984a0d295709622"
}
]
}
Return
DetailsExampleSchema
Name |
Type |
Description |
createdTigger |
object |
The result of the create operation. |
Copied to Clipboard
{
"message": "Successfully created the requested item",
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "9dee1c871fa7ca70edb963a8",
"lastExecuted": null,
"migrationVersion": 96479811,
"createdBy": "Pronghorn",
"created": "1996-06-20T14:43:24.946Z",
"lastUpdatedBy": "8f9a1269d2abdbe8d4a873a9",
"lastUpdated": "1964-07-11T07:09:06.108Z",
"_id": "82d035d4feea2ec17787257c"
}
}