Summary
Import Triggers
Description
Import Triggers.
Route
PUT /operations-manager/triggers
Roles
admin
apiwrite
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
triggers |
array |
yes |
An array of exported Trigger documents. |
options |
object |
yes |
Optional parameters. |
Copied to Clipboard
{
"triggers": [
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"enabled": true,
"actionType": "automations",
"actionId": "dedc394ab1b6933179b1f1bf",
"source": "adipisicing",
"topic": "incididunt Ut cillum ex mollit",
"schema": null,
"_id": "50123ef5172f710edea096e8",
"description": "Some helpful information about the document",
"lastExecuted": null,
"migrationVersion": -79858748,
"createdBy": null,
"created": "2004-09-04T04:35:53.294Z",
"lastUpdatedBy": "eu magna labore exercitation aliquip",
"lastUpdated": "2008-03-30T16:25:02.255Z"
},
{
"name": false,
"type": 75358114,
"enabled": true,
"actionType": -25367939.322306737,
"actionId": false,
"formData": true,
"firstRunAt": "cillum sit officia",
"processMissedRuns": "non laboris voluptate sit incididunt",
"repeatUnit": 49635966,
"repeatFrequency": -70776472,
"repeatInterval": 85374300.40468287,
"_id": false,
"formId": 10838973
},
{
"name": "myCoolDocumentName",
"type": "endpoint",
"enabled": true,
"actionType": "automations",
"actionId": "4a377b3c5097a73dac127e6f",
"verb": "POST",
"routeName": "kdBb21iCVX",
"schema": null,
"_id": "2a3e8835a468f6e9f09775de",
"jst": null,
"description": "Some helpful information about the document",
"lastExecuted": 84741530,
"migrationVersion": 16923565,
"createdBy": "nulla tempor qui in",
"created": "1988-10-01T01:51:07.0Z",
"lastUpdatedBy": null,
"lastUpdated": "1954-12-02T22:00:30.384Z"
},
{
"name": 44865429.01553956,
"type": 14475866.909619123,
"enabled": "Lorem ullamco dolor",
"actionType": 7066412.5409872085,
"actionId": "id cupidatat eu",
"formData": -32695503,
"firstRunAt": -13901076,
"processMissedRuns": "eu dolore qui commodo",
"repeatUnit": -862058,
"repeatFrequency": true,
"repeatInterval": "voluptate esse",
"_id": true,
"formId": 37219413.16950229
},
{
"name": "myCoolDocumentName",
"type": "endpoint",
"enabled": false,
"actionType": "automations",
"actionId": "0158173f3f4ffffc237c82f8",
"verb": "POST",
"routeName": "3bj",
"schema": null,
"_id": "fbc320e5803750a87582360a",
"description": "Some helpful information about the document",
"lastExecuted": 44442153,
"migrationVersion": -74192867,
"createdBy": null,
"created": "2001-12-12T14:02:35.6Z",
"lastUpdatedBy": "sed enim",
"lastUpdated": "1950-06-09T08:41:17.421Z"
}
],
"options": {
"adapterMap": {
"staging": "production"
}
}
}
Copied to Clipboard
{
"type": "object",
"properties": {
"triggers": {
"title": "triggers",
"type": "array",
"items": {
"title": "triggers",
"$ref": "trigger-json"
}
},
"options": {
"title": "options",
"type": "object",
"properties": {
"adapterMap": {
"type": "object",
"description": "A mapping of provenance names to be converted upon import, specified in \"old_name\": \"new_name\" format.",
"examples": [
{
"staging": "production"
},
{
"old_name": "new_name"
}
]
}
},
"additionalProperties": false
}
},
"required": [
"triggers",
"options"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
createdTigger |
object |
The result of the import operation. |
Copied to Clipboard
{
"message": "Successfully retrieved search results",
"data": [
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "69cee156597828d9067499ec",
"lastExecuted": 8801715,
"migrationVersion": -12608891,
"createdBy": "3e7106eec5cf6252e5bb7a92",
"created": "1997-12-01T09:44:26.945Z",
"lastUpdatedBy": "4fc451c857ceb913baa6a144",
"lastUpdated": "1976-11-28T10:44:15.919Z",
"_id": "dc262e28ef0cb4d9addd1f55"
}
}
]
}