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": "_nKfYo",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "0a1eb8e03d985368610c7d13",
"lastExecuted": 42395549,
"migrationVersion": 62639249,
"createdBy": "2a52487e72401df62e43f20e",
"created": "1990-09-17T16:04:36.636Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1969-03-20T15:43:20.246Z",
"verb": "POST",
"jst": "458a30c4dd00a651db069a69"
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "consequat qui ullamco voluptate",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "4122664c159bdf640d26cd64",
"lastExecuted": null,
"migrationVersion": 26969444,
"createdBy": "Pronghorn",
"created": "2019-08-31T15:58:26.677Z",
"lastUpdatedBy": "69adb4131f3a45ea7e3f48ba",
"lastUpdated": "1967-03-11T22:28:20.632Z",
"source": "Ut reprehenderit ad cillum et",
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "556a028b38d5997bcaf4df12",
"lastExecuted": 2298753,
"migrationVersion": 73143997,
"createdBy": "Pronghorn",
"created": "1967-01-15T22:29:42.96Z",
"lastUpdatedBy": "9851a7d35a9771928fc022a9",
"lastUpdated": "2002-11-29T07:46:33.109Z",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": null,
"formId": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "98036f7442d5409d9268e5b8",
"lastExecuted": 45489413,
"migrationVersion": -15695275,
"createdBy": "48406414ab6bfd3bc4fa8f35",
"created": "2016-02-15T02:52:20.871Z",
"lastUpdatedBy": "5a0a8cfb609d4832368d3079",
"lastUpdated": "2007-10-06T23:59:21.541Z",
"repeatInterval": 10000,
"formId": null
}
]
}
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": "4f283cf6a09e1432f22d8b66",
"lastExecuted": 74527967,
"migrationVersion": -94914805,
"createdBy": "Pronghorn",
"created": "1994-05-28T21:32:52.376Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2008-05-09T10:54:50.442Z",
"_id": "810f44dfdd03c38af6fe0c7d"
}
}