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": "mKEjEOzg",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "310bce5c460e7b51ef69221b",
"lastExecuted": null,
"migrationVersion": -97692698,
"createdBy": "Pronghorn",
"created": "1973-11-06T16:16:04.331Z",
"lastUpdatedBy": "aa630cf827dbdd90bfa7fe52",
"lastUpdated": "2024-02-09T07:22:10.368Z",
"verb": "POST",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "minim aliquip dolor",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "1f98b3d0176d507864acebc2",
"lastExecuted": 36203425,
"migrationVersion": -98153537,
"createdBy": "7e38d34c1ddc67ddc7706096",
"created": "1973-10-12T16:50:06.648Z",
"lastUpdatedBy": "af2f91cffc55764186527890",
"lastUpdated": "1956-04-29T11:14:30.53Z",
"source": "labore pariatur",
"legacyWrapper": true,
"jst": "f54eac9ad43d5289fd050a37"
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "6f1c05593f519b6287d9822e",
"lastExecuted": 65379190,
"migrationVersion": -47512751,
"createdBy": "Pronghorn",
"created": "2007-08-26T11:50:20.652Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1965-03-12T04:20:46.498Z",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": "nisi sit ex",
"legacyWrapper": false,
"formId": "888a9c3974f90afbeea29b38"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "57c0b55f96ff621dd2134d26",
"lastExecuted": 20458296,
"migrationVersion": -9157072,
"createdBy": "Pronghorn",
"created": "1961-05-31T08:17:06.325Z",
"lastUpdatedBy": "5fb3922bb13ced8cd2c7f7a8",
"lastUpdated": "2016-06-14T04:32:59.982Z",
"repeatInterval": 10000,
"formId": "3425f0590282dfe2681adc73"
}
]
}
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": "9c8df7642c71738f4a7b55cb",
"lastExecuted": null,
"migrationVersion": -46098872,
"createdBy": "7157bc5392282e9dfbe1bb50",
"created": "1975-08-25T15:22:34.435Z",
"lastUpdatedBy": "cea3d90866b3c32b5f0d05d6",
"lastUpdated": "1983-03-24T22:11:15.222Z",
"_id": "942bbb489551392e4ab27e7e"
}
}