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": "g3",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "a959f132076a7bdd8bc690cd",
"lastExecuted": 58056829,
"migrationVersion": -62762488,
"createdBy": "Pronghorn",
"created": "1977-06-11T16:38:32.725Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1954-05-19T20:24:41.911Z",
"verb": "POST",
"schema": null,
"jst": "3ee7b7c8bf570d460c58f0c9"
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "cillum in minim",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "7a6401f30db544eb84bdf811",
"lastExecuted": 667373,
"migrationVersion": -50367803,
"createdBy": "e6af03e76b241f4187e32349",
"created": "1980-03-23T16:03:33.177Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2003-02-01T00:21:03.336Z",
"source": "quis cupidatat nulla in Lorem",
"schema": null,
"legacyWrapper": true,
"jst": "a5b4dc35b34f798bbd5f7f4a"
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "a686acb602690733012eefd8",
"lastExecuted": 77868912,
"migrationVersion": -34382209,
"createdBy": "d894cef6459e43517b1021fe",
"created": "1982-08-23T00:28:14.803Z",
"lastUpdatedBy": "cfaa0d83667f1ac625d17925",
"lastUpdated": "1984-12-03T22:14:39.855Z",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": null,
"legacyWrapper": false,
"formId": null
},
{
"name": "myCoolDocumentName",
"repeatUnit": "second",
"repeatFrequency": null,
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "ba1cb11a70488d1ec20b1f24",
"lastExecuted": null,
"migrationVersion": -56910505,
"createdBy": "Pronghorn",
"created": "1967-08-11T20:04:42.921Z",
"lastUpdatedBy": "f19bd441c1f4df329e7ac1c1",
"lastUpdated": "2003-06-22T20:07:04.271Z",
"repeatInterval": 120000,
"formId": "0b6a2077a18a987eeec3fe42"
}
]
}
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": false,
"actionType": "automations",
"actionId": "436b43d0b096250e6106d183",
"lastExecuted": null,
"migrationVersion": 16253596,
"createdBy": "Pronghorn",
"created": "1955-10-09T02:10:15.388Z",
"lastUpdatedBy": "8490c941cda2eb3cacbd019d",
"lastUpdated": "2000-06-19T14:34:58.69Z",
"_id": "fb67a0272175e800051ad738"
}
}