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": "yL3blm",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "379e7759778ab78fb4a5f751",
"lastExecuted": 81229060,
"migrationVersion": 86001616,
"createdBy": "0c99b9252b3bd4de6fe34638",
"created": "1990-10-18T04:49:06.84Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2018-06-14T02:36:46.304Z",
"verb": "POST",
"schema": null,
"jst": "14a8af62fca471b6365cd2a1"
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "occaecat",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "2b9afcec5449b00917972557",
"lastExecuted": 71414796,
"migrationVersion": -92228918,
"createdBy": "3aa90dfa61d3210e8ee90f33",
"created": "2011-05-11T09:31:12.459Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2018-09-03T10:20:00.399Z",
"source": "esse dolor ullamco",
"schema": null,
"jst": "dc534754f6f412764f009cb4"
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "56ddc7e063b45a67636b1124",
"lastExecuted": 35680279,
"migrationVersion": 92379216,
"createdBy": "Pronghorn",
"created": "1991-01-14T11:45:29.732Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1976-03-11T16:13:31.231Z",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": "proident ex irure anim adipisicing",
"formId": "20a02deb43c92498b5874b33"
},
{
"name": "myCoolDocumentName",
"repeatUnit": null,
"repeatFrequency": null,
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "76ee3d2ade4f39b9e32ffbbf",
"lastExecuted": null,
"migrationVersion": -20066870,
"createdBy": "869c2b09e9d15856ba5dec1a",
"created": "2013-12-02T01:28:03.416Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1992-01-18T06:58:56.66Z",
"repeatInterval": 10000,
"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": "2990a26c1758474ef980b769",
"lastExecuted": null,
"migrationVersion": 41688817,
"createdBy": "3da6f0158abf2560bb156ec4",
"created": "1949-08-29T13:52:32.769Z",
"lastUpdatedBy": "dd01f83a7248eb197b96fffe",
"lastUpdated": "1948-04-12T13:07:11.473Z",
"_id": "c2504cf3851c984f4df36968"
}
}