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": "G",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "f90528a4df2bc785e29ec54d",
"lastExecuted": 77646028,
"migrationVersion": 21974379,
"createdBy": "a16bbf416ca8a242d643cbde",
"created": "1999-05-24T20:13:56.029Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1985-10-04T06:30:22.542Z",
"verb": "POST",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "consectetur",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "ca3abd46036e2f0e5b33ca28",
"lastExecuted": null,
"migrationVersion": -49499208,
"createdBy": "b66e006475de93b9d6e0a83d",
"created": "2008-05-20T00:03:35.417Z",
"lastUpdatedBy": "508c660ad66cc8e0439a6778",
"lastUpdated": "1999-10-04T06:55:12.163Z",
"source": "et culpa",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "50c8bd08cc469ed3513b6b3e",
"lastExecuted": null,
"migrationVersion": -78097337,
"createdBy": "e275b89d3e0ca5995228f4ea",
"created": "1994-05-28T04:31:08.344Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2011-10-16T09:38:10.381Z",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": "veniam adipisicing aute",
"formId": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "9454360c5de60d89cd431739",
"lastExecuted": 99160527,
"migrationVersion": 83866540,
"createdBy": "eac304014a646879f88bb324",
"created": "1992-08-06T12:43:14.482Z",
"lastUpdatedBy": "57bda60f9f7983768547c052",
"lastUpdated": "1947-10-05T17:20:35.595Z",
"repeatInterval": 10000,
"formId": "591fc02620cc40a7167bb9ce"
}
]
}
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": "4bf0515c2468e13a17fa29ee",
"lastExecuted": 89868983,
"migrationVersion": 32228206,
"createdBy": "Pronghorn",
"created": "1949-01-26T06:06:40.494Z",
"lastUpdatedBy": "131aec82d31a63a7a3b99b8a",
"lastUpdated": "2021-02-21T18:37:50.976Z",
"_id": "200b95ec8e9fe57ebc74c9b9"
}
}