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": "0jr3KqS",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "77e1345d53ca897e7e39afb0",
"lastExecuted": 63335532,
"migrationVersion": 15644549,
"createdBy": "Pronghorn",
"created": "2006-10-13T09:26:03.954Z",
"lastUpdatedBy": "55b6dd25b152b18cd39fedb4",
"lastUpdated": "1992-04-10T18:20:27.338Z",
"verb": "POST",
"schema": null,
"jst": null
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"topic": "ad consequat ullamco nostrud et",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "d077ab803b9778e628224eed",
"lastExecuted": 98694719,
"migrationVersion": -97670510,
"createdBy": "0f81b3861967bd3a5c543853",
"created": "1960-04-12T14:30:38.802Z",
"lastUpdatedBy": "cc36d5b86c78412fba4a1e61",
"lastUpdated": "1947-05-15T07:54:58.717Z",
"source": "nostrud incididunt",
"jst": "9991f0190742b92d3b2f1e55"
},
{
"name": "myCoolDocumentName",
"type": "manual",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "fa7946e20859382326382538",
"lastExecuted": 40019992,
"migrationVersion": -11950890,
"createdBy": "8975dbec52bd17f768191b66",
"created": "2006-01-29T01:11:32.532Z",
"lastUpdatedBy": "36983498a011b505d0725d93",
"lastUpdated": "1954-04-25T05:48:19.001Z",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"formSchemaHash": "cillum officia ad dolore",
"formId": null
},
{
"name": "myCoolDocumentName",
"repeatUnit": "second",
"repeatFrequency": null,
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "4bdb58991e690f6aea1c9f2f",
"lastExecuted": null,
"migrationVersion": -28099358,
"createdBy": "298430b1a2d1c430375eda0a",
"created": "1978-12-25T22:10:15.201Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1947-03-11T11:17:44.674Z",
"repeatInterval": 30000,
"formId": null
}
]
}
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": false,
"actionType": "automations",
"actionId": "f2d6d83ee70b94167efc2818",
"lastExecuted": null,
"migrationVersion": 9092334,
"createdBy": "016b5b9ad48c039e426c137d",
"created": "1991-01-05T02:45:17.906Z",
"lastUpdatedBy": "cc109abba01f9c5577a42c81",
"lastUpdated": "1986-12-23T20:46:18.013Z",
"_id": "8104a36edaa119f9e4928d32"
}
}