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": "7-XXQlvg",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "15199f23df5693a40eb0d0dd",
"lastExecuted": null,
"migrationVersion": 54402588,
"createdBy": "65f660af5bd59f353d88f3a9",
"created": "1966-09-24T23:54:14.113Z",
"lastUpdatedBy": "168ead1b05fc32ff49aa4d19",
"lastUpdated": "2008-08-12T01:11:31.094Z",
"verb": "POST",
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "ea in commodo dolore magna",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "26afe0427faf8960aaf63a07",
"lastExecuted": 81585871,
"migrationVersion": -98064271,
"createdBy": "Pronghorn",
"created": "1964-05-24T07:21:45.813Z",
"lastUpdatedBy": "03895d19629342721eff7613",
"lastUpdated": "1972-12-06T22:41:03.195Z",
"source": "laboris adipisicing ut do",
"schema": null,
"legacyWrapper": true,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "c33a33f62bea9e383ab4cbb4",
"lastExecuted": 1512230,
"migrationVersion": 18998904,
"createdBy": "277aeecc70b71efdcc4c0ca1",
"created": "1993-03-03T02:43:13.416Z",
"lastUpdatedBy": "ad5dfac3344e0fdb81891794",
"lastUpdated": "2021-10-17T03:01:09.417Z",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": "mollit ut",
"legacyWrapper": true,
"formId": "44ef12babc197ea1b9a190db"
},
{
"name": "myCoolDocumentName",
"repeatUnit": "second",
"repeatFrequency": 96099850,
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "0ddd90c56f9afb73eac22411",
"lastExecuted": null,
"migrationVersion": -12868407,
"createdBy": "Pronghorn",
"created": "1963-09-14T00:05:47.433Z",
"lastUpdatedBy": "c5245f3797e65a968357b2d6",
"lastUpdated": "2015-12-19T00:13:32.699Z",
"repeatInterval": 10000,
"formId": "b75cd63e5f0e1bd99c1a1110"
}
]
}
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": false,
"actionType": "automations",
"actionId": "6594af528a978c50ed81a49b",
"lastExecuted": null,
"migrationVersion": 56249047,
"createdBy": "05f7c040abc525ce066fd3d1",
"created": "2004-05-08T15:06:07.38Z",
"lastUpdatedBy": "78a62549d494a108752e9f75",
"lastUpdated": "2011-04-30T16:11:05.491Z",
"_id": "afb660f6108da32644b015d3"
}
}