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": "k",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "234adfc190f8ca79045fd265",
"lastExecuted": 17097457,
"migrationVersion": -29132473,
"createdBy": "5cf6cefe377a02382ee7d9fb",
"created": "1952-11-30T12:18:58.833Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2002-08-17T17:27:47.124Z",
"verb": "POST",
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "mollit",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "de60dd010d6eb5cc4e1af8f8",
"lastExecuted": 64731140,
"migrationVersion": 6239620,
"createdBy": "Pronghorn",
"created": "1963-03-09T05:58:23.763Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1975-06-21T18:37:04.29Z",
"source": "velit",
"legacyWrapper": false,
"jst": "e329efc8ad5244237cc7f2a4"
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "ceeb4add10b84ad8b3739d3f",
"lastExecuted": null,
"migrationVersion": 6618548,
"createdBy": "Pronghorn",
"created": "1992-08-28T11:37:53.333Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2005-05-24T00:45:12.543Z",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": "veniam dolore consequat ea",
"legacyWrapper": false,
"formId": "375b8dd08220d611e4b34507"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "fba6e55d7a45ad58b6aaaac4",
"lastExecuted": null,
"migrationVersion": 70002351,
"createdBy": "1f3b191bba3d7d9415a61086",
"created": "1993-08-27T10:58:07.978Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2024-10-14T01:40:32.17Z",
"repeatInterval": 120000,
"formId": "060c3aa696a974584c0a52a9"
}
]
}
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": "7d2bc3a5042ad57d3ef216ef",
"lastExecuted": null,
"migrationVersion": 68989920,
"createdBy": "99b3cb2c5a7fc0cdcea3494a",
"created": "1984-10-19T22:12:58.666Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2021-08-26T03:29:51.84Z",
"_id": "13e9a47e94d5c716271ad234"
}
}