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": "et",
"type": 5287176,
"enabled": "minim",
"actionType": 58486330.43123251,
"actionId": -34075509,
"formData": -41184014.70948947,
"firstRunAt": true,
"processMissedRuns": 81417093.6403651,
"repeatUnit": "velit id",
"repeatFrequency": -71517100.70682675,
"repeatInterval": -79082149.70357484,
"_id": 47265386,
"formId": -82173878.31935
},
{
"name": "myCoolDocumentName",
"type": "eventSystem",
"enabled": false,
"actionType": "automations",
"actionId": "7f6a43d2997c9f92bb597373",
"source": "culpa magna labore dolore laborum",
"topic": "nostrud veniam",
"schema": null,
"_id": "f3bf3eada29a9a99acaba8f7",
"jst": null,
"description": "Some helpful information about the document",
"lastExecuted": null,
"migrationVersion": -57893071,
"createdBy": null,
"created": "2018-05-19T06:13:25.731Z",
"lastUpdatedBy": null,
"lastUpdated": "1957-08-22T23:57:17.77Z"
}
],
"options": {
"adapterMap": {
"old_name": "new_name"
}
}
}
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": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "c678c999200b10fcdbd83b28",
"lastExecuted": null,
"migrationVersion": 84950958,
"createdBy": "Pronghorn",
"created": "1960-02-18T01:22:03.671Z",
"lastUpdatedBy": "5f138b59e66b2778b861b1c7",
"lastUpdated": "2013-09-19T19:55:06.47Z",
"_id": "578f9fecad99010f5231320c"
}
},
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "3ac97e6c7b23fadebe41c2c8",
"lastExecuted": 85374188,
"migrationVersion": -21332960,
"createdBy": "Pronghorn",
"created": "1986-03-22T11:03:53.376Z",
"lastUpdatedBy": "7df9162d5fc3e2f77b841d21",
"lastUpdated": "1954-10-18T08:17:41.025Z",
"_id": "1953eb0b2cd01f9fcad9877c"
}
},
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "b1bbfb211f128b215352ffa6",
"lastExecuted": null,
"migrationVersion": -11691977,
"createdBy": "e46905b70e2ecc8e2bb5c964",
"created": "1946-09-05T08:40:02.347Z",
"lastUpdatedBy": "cf8766080cb154743d461552",
"lastUpdated": "1992-12-14T13:40:17.394Z",
"_id": "9fc8b9c334583fe78156f7ac"
}
}
]
}