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": "GpLJK2NBJ",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "80a09f9f38784142ce22a99e",
"lastExecuted": null,
"migrationVersion": 63537195,
"createdBy": "Pronghorn",
"created": "1979-04-22T00:47:06.212Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2017-08-10T07:29:49.685Z",
"verb": "POST",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "incididunt",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "1deb0a5a7d2683b7adc865ed",
"lastExecuted": null,
"migrationVersion": -6228796,
"createdBy": "Pronghorn",
"created": "2008-01-26T22:11:21.238Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2002-08-12T21:16:28.599Z",
"source": "in tempor deserunt qui ex",
"schema": null,
"legacyWrapper": false,
"jst": "d9cc33ae1ca73d90e30684e0"
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "4478eea30b8b6c0e2d719712",
"lastExecuted": 74047281,
"migrationVersion": 80239398,
"createdBy": "Pronghorn",
"created": "1988-12-05T10:02:54.572Z",
"lastUpdatedBy": "54cd013c65e74b4748d9629a",
"lastUpdated": "1984-02-15T08:18:30.771Z",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": "do exercitation non dolore",
"legacyWrapper": false,
"formId": "0f094bbcc842307833d781b9"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "265a54a5a313b0f80cf8c8c4",
"lastExecuted": 13128477,
"migrationVersion": 83085369,
"createdBy": "Pronghorn",
"created": "2024-04-20T13:07:41.612Z",
"lastUpdatedBy": "ca4de1b0aa4aa0e5bfa28dd6",
"lastUpdated": "2011-05-10T20:15:05.971Z",
"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": "ba57aebab943560dddfd3a67",
"lastExecuted": null,
"migrationVersion": 20480660,
"createdBy": "de03494251890150a9b6932d",
"created": "2013-11-25T22:07:19.009Z",
"lastUpdatedBy": "5189fcc6545b81b2d0a6aff0",
"lastUpdated": "1987-01-18T02:55:43.023Z",
"_id": "b0ab1adb1ff2c484fa97bacf"
}
}