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": "dT9pv7",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "d3faaa83911b1928c3b6a782",
"lastExecuted": 24808193,
"migrationVersion": 2573581,
"createdBy": "a092dd72750098cbdd006723",
"created": "2024-09-12T18:29:17.531Z",
"lastUpdatedBy": "18ea65c2ff66be94b64f8ffa",
"lastUpdated": "1986-11-06T18:08:11.341Z",
"verb": "POST",
"schema": null,
"jst": "7db56e8c84c3afbb0bba9e79"
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "deserunt ut elit do dolore",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "386ae6490a52457099a29ab7",
"lastExecuted": 94871201,
"migrationVersion": -3540183,
"createdBy": "Pronghorn",
"created": "1961-08-14T23:33:04.076Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1950-11-14T19:40:09.93Z",
"source": "est consectetur consequat",
"legacyWrapper": false,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "ad34bc14f6d31b0a5344e694",
"lastExecuted": 32539678,
"migrationVersion": -37840699,
"createdBy": "80e64bc8f9b207652c277a22",
"created": "1999-10-29T14:33:13.892Z",
"lastUpdatedBy": "9a59ca8a3e9636caad53eae8",
"lastUpdated": "2008-02-20T10:44:54.9Z",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"formSchemaHash": null,
"legacyWrapper": true,
"formId": null
},
{
"name": "myCoolDocumentName",
"repeatUnit": "second",
"repeatFrequency": 87099060,
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "702b067327a4d895f539262e",
"lastExecuted": null,
"migrationVersion": 34957606,
"createdBy": "Pronghorn",
"created": "2013-12-08T06:50:23.682Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1993-04-21T04:07:51.218Z",
"repeatInterval": 10000,
"formId": "5838ac7e24205bc36bfb7f95"
}
]
}
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": "da69a7aefb8687f56c9b56ed",
"lastExecuted": 16217555,
"migrationVersion": 33354800,
"createdBy": "Pronghorn",
"created": "1967-11-27T15:13:17.727Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1984-10-02T10:22:22.067Z",
"_id": "bf9bb85d6741f3ba191d6c20"
}
}