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": "gVWQP",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "9b1dfae34fcdf9d6ba0cb006",
"lastExecuted": null,
"migrationVersion": 85946168,
"createdBy": "Pronghorn",
"created": "2004-11-11T11:37:50.817Z",
"lastUpdatedBy": "3a295a91795f9d81e235ae83",
"lastUpdated": "1990-03-03T02:27:56.764Z",
"verb": "POST",
"schema": null,
"jst": "6bdd06152c40ba2642a5da78"
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "veniam irure aute eu sit",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "03042f936c71884604720f2f",
"lastExecuted": null,
"migrationVersion": -45237910,
"createdBy": "Pronghorn",
"created": "1947-07-21T14:37:22.253Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2013-04-03T23:38:23.202Z",
"source": "ex in aliquip non",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "41f9538458da66989efa92e9",
"lastExecuted": null,
"migrationVersion": -83068227,
"createdBy": "381a6c968c5f5051f0f68669",
"created": "1994-03-03T02:33:04.074Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1953-09-08T16:01:46.764Z",
"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": "ba25d0fb44777b0178cdd3b6",
"lastExecuted": null,
"migrationVersion": -85550313,
"createdBy": "Pronghorn",
"created": "1983-03-26T21:29:57.982Z",
"lastUpdatedBy": "d3cbb37c8d39602e60772cdd",
"lastUpdated": "1961-02-12T15:45:41.648Z",
"repeatInterval": 120000,
"formId": "78bcaa4ac7964d713f4dc1ca"
}
]
}
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": "ea6d40e5f390c6352ced8a9c",
"lastExecuted": 52802965,
"migrationVersion": -20449160,
"createdBy": "b0e06555fa1d1322e0b8d63e",
"created": "1954-03-11T18:29:46.137Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2000-06-01T20:10:36.749Z",
"_id": "ef50bc60f389e05335d46b7d"
}
}