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": "-9ZP8QpA",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "d27ccb97bebf87246de02742",
"lastExecuted": null,
"migrationVersion": -25228651,
"createdBy": "Pronghorn",
"created": "1986-08-08T17:52:49.918Z",
"lastUpdatedBy": "e62bdafef088da89fd006556",
"lastUpdated": "1957-11-08T06:06:01.448Z",
"verb": "POST",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "Ut enim mollit officia voluptate",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "ffdfbb381ff6fa68fecded83",
"lastExecuted": null,
"migrationVersion": 93030936,
"createdBy": "c05e28250f5ea7ca25b75c7a",
"created": "2023-08-03T18:01:07.067Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1978-11-08T06:30:26.032Z",
"source": "occaecat ut reprehenderit Excepteur in",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "93f31f4ba493a71fd469e15b",
"lastExecuted": 54343927,
"migrationVersion": -50600283,
"createdBy": "08c33b93222e6458b719dee1",
"created": "2006-08-08T13:44:03.997Z",
"lastUpdatedBy": "ef4b6143bf2cb2404fa9bd24",
"lastUpdated": "2002-12-24T15:36:55.405Z",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": "culpa",
"formId": null
},
{
"name": "myCoolDocumentName",
"repeatUnit": "second",
"repeatFrequency": null,
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "d10ac2173becaaba686f60ac",
"lastExecuted": null,
"migrationVersion": 82881352,
"createdBy": "Pronghorn",
"created": "1971-08-16T11:58:04.682Z",
"lastUpdatedBy": "6349a84eeb6da6e4cf33b974",
"lastUpdated": "1964-05-13T05:30:06.555Z",
"repeatInterval": 30000,
"formId": "08ec410036c309cdafce93c4"
}
]
}
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": true,
"actionType": "automations",
"actionId": "717787391f03d187d1958075",
"lastExecuted": 34018102,
"migrationVersion": -44845869,
"createdBy": "7ddda89d36891e0d397841b1",
"created": "1959-03-02T09:48:02.324Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1969-01-05T20:16:03.399Z",
"_id": "10281455e11f6fd440dfe2a5"
}
}