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": "xiN1Ys0RG",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "6c26c4b2d35e4524d1bf148f",
"lastExecuted": null,
"migrationVersion": 53292391,
"createdBy": "Pronghorn",
"created": "1969-11-15T18:40:05.105Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1995-07-01T11:45:22.463Z",
"verb": "POST",
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "in nisi culpa labore minim",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "cd7de706aedfc62995413670",
"lastExecuted": null,
"migrationVersion": -48896030,
"createdBy": "Pronghorn",
"created": "2013-01-15T21:22:12.244Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1978-12-20T13:35:39.747Z",
"source": "pariatur laboris labore ullamco",
"legacyWrapper": true,
"jst": "9b5c23a8f1e84b7d3adf483b"
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "b73a92dd4efb260ecbbdc372",
"lastExecuted": null,
"migrationVersion": -59288103,
"createdBy": "Pronghorn",
"created": "1988-05-27T00:30:00.413Z",
"lastUpdatedBy": "7f751c7eb26e06729c56737e",
"lastUpdated": "2017-06-10T19:37:29.752Z",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": null,
"legacyWrapper": false,
"formId": "fa8eb2bfd1f2744126c050cf"
},
{
"name": "myCoolDocumentName",
"repeatUnit": "second",
"repeatFrequency": null,
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "f1534f6865abe61f30e7fdcd",
"lastExecuted": null,
"migrationVersion": 82840362,
"createdBy": "43bae3a8a932d707dbe35e1d",
"created": "2010-10-12T03:29:28.069Z",
"lastUpdatedBy": "7daf6c02b9a3951ab5de27b9",
"lastUpdated": "1953-11-14T15:15:58.616Z",
"repeatInterval": 120000,
"formId": "092b787657eb51b540f4a5b2"
}
]
}
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": "196442723bfcacb1ca63669c",
"lastExecuted": null,
"migrationVersion": -31015579,
"createdBy": "049540c9c0ca0876e134db2d",
"created": "1975-01-30T10:35:44.866Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1995-10-28T18:36:35.03Z",
"_id": "f5245c3f3d6bdb6aae411b13"
}
}