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": "POlk",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "61b078ec4d790623cf242338",
"lastExecuted": null,
"migrationVersion": -97820759,
"createdBy": "bbd8fe47d0fe631f27425fce",
"created": "1973-09-25T14:46:07.785Z",
"lastUpdatedBy": "5c5c78df98279cbd2a8b45f4",
"lastUpdated": "1964-09-21T13:45:36.217Z",
"verb": "POST",
"jst": "3d18fe31215f4db0f69e898f"
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "ullamco id",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "eeb891f4572a21fe90d6b955",
"lastExecuted": null,
"migrationVersion": 42098664,
"createdBy": "78e960b44a244ebab69c88ae",
"created": "2021-05-26T10:30:00.31Z",
"lastUpdatedBy": "d10e7e6c97e0087e74c675e1",
"lastUpdated": "1956-12-18T20:48:39.106Z",
"source": "et mollit sit exercitation esse",
"schema": null,
"legacyWrapper": true,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "859e553664216d01d9ad5319",
"lastExecuted": null,
"migrationVersion": -21133712,
"createdBy": "4c5a78cd197beec0cd6d5c44",
"created": "1995-12-25T23:51:55.181Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2018-10-07T13:32:39.335Z",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": null,
"legacyWrapper": false,
"formId": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "1a17ddb25d469e9f3f65a085",
"lastExecuted": null,
"migrationVersion": -33691976,
"createdBy": "543649d17f879894406759ef",
"created": "2005-03-30T01:12:31.585Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1975-02-24T05:31:58.654Z",
"repeatInterval": 30000,
"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": "4e71521cb6bcfd8cb0b879ea",
"lastExecuted": 41859937,
"migrationVersion": -83500046,
"createdBy": "6e76491c113034f65997d8eb",
"created": "1948-11-12T02:06:29.1Z",
"lastUpdatedBy": "be0b9d57f2daf72ba7324054",
"lastUpdated": "1949-09-18T01:41:24.804Z",
"_id": "8d6090177bda9ecc7931f873"
}
}