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": "f6N",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "3017e5740c3fb93d6d758a8b",
"lastExecuted": 27888318,
"migrationVersion": -84163332,
"createdBy": "Pronghorn",
"created": "1950-09-04T00:42:16.609Z",
"lastUpdatedBy": "b49b8a143f1427273c59fcb4",
"lastUpdated": "2003-04-02T12:42:28.604Z",
"verb": "POST",
"schema": null,
"jst": "199d3fb992ec4a91756085cd"
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "aute",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "6545cc0917892de442e5415d",
"lastExecuted": null,
"migrationVersion": 2245435,
"createdBy": "Pronghorn",
"created": "1967-07-09T01:51:30.697Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2002-02-06T14:31:05.708Z",
"source": "consectetur reprehenderit qui proident",
"schema": null,
"jst": "f207828bd5fa441a165f400a"
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "eacbea11df749a0f6dc10021",
"lastExecuted": 79481100,
"migrationVersion": 24214218,
"createdBy": "Pronghorn",
"created": "1965-02-04T17:01:29.183Z",
"lastUpdatedBy": "dea86e96c5fc6a37008c1ac0",
"lastUpdated": "1961-10-20T02:26:10.111Z",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": null,
"formId": "77fee1ebc318ed11a0fa75b6"
},
{
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "77bda7ef289ae75fcd405ab3",
"lastExecuted": null,
"migrationVersion": 24688,
"createdBy": "Pronghorn",
"created": "2002-09-07T02:09:54.572Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1988-09-29T12:58:27.326Z",
"repeatInterval": 10000,
"formId": "7305e78b7c5e0db474a2254e"
}
]
}
Return
DetailsExampleSchema
Name |
Type |
Description |
createdTigger |
object |
The result of the create operation. |
Copied to Clipboard
{
"message": "Successfully imported 3 of 4 documents",
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "a64df1e4951515217e2c9d78",
"lastExecuted": 9213216,
"migrationVersion": 82598267,
"createdBy": "Pronghorn",
"created": "1997-01-29T05:49:24.588Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1998-02-11T19:48:03.419Z",
"_id": "cb6196e959cd1abcb893a431"
}
}