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": "wGJjCWekSU",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "0e610e56574213f990b4c8be",
"lastExecuted": null,
"migrationVersion": -58371019,
"createdBy": "Pronghorn",
"created": "2001-09-03T22:06:20.889Z",
"lastUpdatedBy": "f3419039ac6d3f29a06708b2",
"lastUpdated": "1949-08-31T12:35:34.741Z",
"verb": "POST",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "reprehenderit ullamco irure",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "e90482fd0a04fb524cf2f1b0",
"lastExecuted": null,
"migrationVersion": -97281894,
"createdBy": "aeccb0d30e4c15477e385f5d",
"created": "1965-11-07T20:01:14.222Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1965-05-24T16:35:25.621Z",
"source": "in irure consequat fugiat",
"legacyWrapper": false,
"jst": "115d63207d94fc730d934f22"
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "254e0be39e8314691c33384b",
"lastExecuted": 84602646,
"migrationVersion": 19166148,
"createdBy": "fbef1ff039adf1ee46e2d43c",
"created": "1946-02-25T11:54:11.221Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1959-10-15T20:17:18.731Z",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": null,
"legacyWrapper": true,
"formId": "11d984ad0129571bcd6278da"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "c13b4b55bf4288bb1805b427",
"lastExecuted": null,
"migrationVersion": 71347153,
"createdBy": "Pronghorn",
"created": "1977-09-05T11:34:24.915Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1976-02-23T23:07:52.299Z",
"repeatInterval": 10000,
"formId": null
}
]
}
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": "0dad081159ac9ebf704d2e03",
"lastExecuted": 90355256,
"migrationVersion": -29402575,
"createdBy": "5f4d8e0aa633c7df77278c71",
"created": "2023-01-05T16:17:45.99Z",
"lastUpdatedBy": "2316733203068127481e5d62",
"lastUpdated": "1998-08-11T06:01:21.38Z",
"_id": "6c9bc734d68517a439ece40e"
}
}