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": "ivFv6KYEiCB",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "f177d26d17afd38ee6977274",
"lastExecuted": 8509351,
"migrationVersion": -87154463,
"createdBy": "68112067ef4a1e0902a8b4f3",
"created": "1982-12-15T01:10:54.701Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2019-03-15T18:04:11.297Z",
"verb": "POST",
"jst": "f990c23840659f8113bea9ed"
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "veniam in aliquip",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "84be357b889c87a53a973764",
"lastExecuted": 63275240,
"migrationVersion": -13152793,
"createdBy": "90a0573da89797a9575e05a6",
"created": "1998-02-08T20:55:28.517Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1994-12-23T07:16:39.176Z",
"source": "ad mollit",
"legacyWrapper": true,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "e69c7c1c9a069cc390709399",
"lastExecuted": 99623441,
"migrationVersion": -20944830,
"createdBy": "ce00450750a10c4a6480afc9",
"created": "1962-01-01T00:34:01.032Z",
"lastUpdatedBy": "eb80a337e7a73c8256548314",
"lastUpdated": "1990-11-10T23:37:23.557Z",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": null,
"legacyWrapper": false,
"formId": null
},
{
"name": "myCoolDocumentName",
"repeatUnit": "second",
"repeatFrequency": 67311690,
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "d632451ac573cb502cfb343f",
"lastExecuted": 67693930,
"migrationVersion": -66441667,
"createdBy": "177d865c657cd54e81643a9f",
"created": "1992-09-16T07:33:27.33Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1988-09-03T03:12:21.669Z",
"repeatInterval": 120000,
"formId": "dbe96ceac0e72a65c1b1cfb0"
}
]
}
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": true,
"actionType": "automations",
"actionId": "2a749266480b683437d8ef4c",
"lastExecuted": null,
"migrationVersion": -77368242,
"createdBy": "ac86f9976591c8479cd5be88",
"created": "1959-12-26T02:45:02.502Z",
"lastUpdatedBy": "28dd449594d3719d3ea30121",
"lastUpdated": "1999-07-05T18:23:27.255Z",
"_id": "f7883208a60f736d09d3ee59"
}
}