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": "LQAybg1yvZ1",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "7df236e9849e0597f51596f6",
"lastExecuted": 99822450,
"migrationVersion": -60166224,
"createdBy": "4831eca1a4486caccf4abd4d",
"created": "2011-01-07T20:36:59.696Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2004-01-23T19:32:30.093Z",
"verb": "POST",
"schema": null,
"jst": "020cf26c15e878efbfb9ddd6"
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "dolor exercitation commodo",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "3eb36327fffc8e539ebf7a02",
"lastExecuted": null,
"migrationVersion": -81016171,
"createdBy": "Pronghorn",
"created": "1984-07-28T05:38:32.564Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1976-03-05T16:26:55.877Z",
"source": "anim Ut proident dolor",
"schema": null,
"legacyWrapper": false,
"jst": "47e1f8cc3f27d817fb45b4f5"
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "a66030e257ee840e3235283f",
"lastExecuted": null,
"migrationVersion": 28796667,
"createdBy": "Pronghorn",
"created": "1978-01-29T21:05:56.408Z",
"lastUpdatedBy": "0e6117395eb6dd6f6a31a3b1",
"lastUpdated": "1968-09-19T04:31:40.396Z",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": "irure mollit dolore commodo",
"legacyWrapper": false,
"formId": null
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "454d19614acc0da8b1caf9b7",
"lastExecuted": 65415556,
"migrationVersion": -52706938,
"createdBy": "423bbb61bf8fca42a4a3ad1f",
"created": "2006-05-10T20:20:31.375Z",
"lastUpdatedBy": "599cc21cd181ce2acdedc71c",
"lastUpdated": "1982-05-24T15:08:06.882Z",
"repeatInterval": 10000,
"formId": "e94d0f6a05d3562781ed78d2"
}
]
}
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": "d979738fb4b4523574d81416",
"lastExecuted": 18677585,
"migrationVersion": -22086563,
"createdBy": "Pronghorn",
"created": "1987-12-28T11:13:39.321Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1994-10-30T04:52:39.585Z",
"_id": "4f93c01755d3010bdb139c17"
}
}