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": "yJJ5zfe",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "323ff85d732fe0bbf8a88213",
"lastExecuted": null,
"migrationVersion": 6649784,
"createdBy": "24be9ca52f3b4ed00aa89d9d",
"created": "2009-12-29T22:11:19.393Z",
"lastUpdatedBy": "d9e8601b6578dddbeb20dbcc",
"lastUpdated": "2005-12-23T11:30:13.716Z",
"verb": "POST",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "consequat Excepteur aute proident",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "20901fda62873b43a98d9dbf",
"lastExecuted": 44583031,
"migrationVersion": 76358167,
"createdBy": "d708c2981844141082d84341",
"created": "1966-09-10T04:50:03.315Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1963-10-03T20:45:02.37Z",
"source": "proident pariatur",
"schema": null,
"legacyWrapper": true,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "6cc67cc0c491c3131c6c53c8",
"lastExecuted": 30587286,
"migrationVersion": -37220398,
"createdBy": "f899103e453a26add0b887b8",
"created": "1957-04-20T03:03:16.25Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1967-05-22T13:37:25.951Z",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": null,
"legacyWrapper": true,
"formId": "ac1864ac47325d46ca5842ac"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "faaf2a9871a17e831bde216f",
"lastExecuted": 32396824,
"migrationVersion": -60979311,
"createdBy": "c63df970f7a8f08e667491e2",
"created": "1953-05-13T06:55:05.534Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1973-01-18T11:35:14.172Z",
"repeatInterval": 10000,
"formId": "604dac031318b5b959a60a87"
}
]
}
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": "5aed3bfc4d7e10fe575e02dd",
"lastExecuted": null,
"migrationVersion": 88447993,
"createdBy": "Pronghorn",
"created": "1970-06-07T08:21:38.589Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2001-04-12T03:39:38.505Z",
"_id": "dc0dc2b83e53467054305e33"
}
}