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": "aiq",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "4dc9953b2dd19c33479e4cff",
"lastExecuted": null,
"migrationVersion": 9926504,
"createdBy": "cf531dd92439c6f9b9884104",
"created": "1946-12-26T20:12:12.32Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1981-03-20T20:48:16.401Z",
"verb": "POST",
"schema": null,
"jst": "e1d29e4241a6a23729f28583"
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "sint ea voluptate",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "14648ee5aa19a9ecf1926cba",
"lastExecuted": 83653916,
"migrationVersion": -13772057,
"createdBy": "Pronghorn",
"created": "1994-09-11T12:53:28.397Z",
"lastUpdatedBy": "9496464a06498e781529a999",
"lastUpdated": "1959-09-24T21:22:52.362Z",
"source": "dolor",
"schema": null,
"legacyWrapper": false,
"jst": "955dae94ce9688abe8f0785a"
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "42c280ece6ce2a2c93a8ff1d",
"lastExecuted": null,
"migrationVersion": -606171,
"createdBy": "d5d6fc279dd64e651a44abf9",
"created": "1963-06-02T14:13:33.881Z",
"lastUpdatedBy": "be34fe75aaf4f506d844b486",
"lastUpdated": "1956-09-20T12:12:29.632Z",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": "Duis tempor",
"legacyWrapper": true,
"formId": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "79a33042563e5cbe58845629",
"lastExecuted": null,
"migrationVersion": -59256781,
"createdBy": "Pronghorn",
"created": "2000-07-09T23:06:14.346Z",
"lastUpdatedBy": "054f756ead9bfe29f9345a36",
"lastUpdated": "2001-02-12T00:02:08.336Z",
"repeatInterval": 30000,
"formId": "3545dc0914d939d9cf969e8d"
}
]
}
Return
DetailsExampleSchema
Name |
Type |
Description |
createdTigger |
object |
The result of the create operation. |
Copied to Clipboard
{
"message": "Successfully created the requested item",
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "fe227db8ddf51510b3727218",
"lastExecuted": null,
"migrationVersion": -30487702,
"createdBy": "Pronghorn",
"created": "1990-01-09T19:58:40.618Z",
"lastUpdatedBy": "f4e0dba4a52b7f30ebaefffe",
"lastUpdated": "1958-06-06T08:43:33.392Z",
"_id": "e957265b87c4f6e2e3fe807b"
}
}