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": "YNBAf",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "95cd8bc0b85ce389a71190a3",
"lastExecuted": null,
"migrationVersion": 38452394,
"createdBy": "96462fbd65141f4ed02c4128",
"created": "2020-08-26T05:00:06.533Z",
"lastUpdatedBy": "55a399782ff5aa86ba9673c7",
"lastUpdated": "1958-05-03T23:07:30.417Z",
"verb": "POST",
"schema": null,
"jst": "f4924db610f1836360b6858d"
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "in Excepteur reprehenderit",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "9a4ce5a78ed1ac2830e8a36c",
"lastExecuted": null,
"migrationVersion": 13986616,
"createdBy": "77f1d754fbee1ce4370b5db7",
"created": "1991-11-24T05:40:22.703Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1996-12-29T17:50:10.009Z",
"source": "sit qui id",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "85ea993681d397d548fa9dff",
"lastExecuted": null,
"migrationVersion": -5451064,
"createdBy": "204bd049dd12c52ed1f76db0",
"created": "1983-07-29T01:21:19.357Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1968-10-27T17:15:07.878Z",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": null,
"formId": "5b23c143787635eb94f5601a"
},
{
"name": "myCoolDocumentName",
"repeatUnit": null,
"repeatFrequency": null,
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "096c4da9de464752fefa8ed5",
"lastExecuted": 36715882,
"migrationVersion": 86171033,
"createdBy": "Pronghorn",
"created": "2024-06-23T17:49:21.246Z",
"lastUpdatedBy": "0e0c55679f88d994e506ae50",
"lastUpdated": "1982-12-13T03:01:10.901Z",
"repeatInterval": 120000,
"formId": null
}
]
}
Return
DetailsExampleSchema
Name |
Type |
Description |
createdTigger |
object |
The result of the create operation. |
Copied to Clipboard
{
"message": "Successfully imported 3 of 4 documents",
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "406291351ac195579056961f",
"lastExecuted": 83399432,
"migrationVersion": 73873650,
"createdBy": "Pronghorn",
"created": "2023-07-09T04:36:45.943Z",
"lastUpdatedBy": "a3e18a8d953ede083f1a8bdf",
"lastUpdated": "2021-09-03T01:06:36.601Z",
"_id": "02a3bee71bcf568979a6f2fc"
}
}