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": -40978964,
"type": 69679774,
"enabled": "amet id nisi aute nulla",
"actionType": 22061016.536434248,
"actionId": -23941076.050937712,
"formData": 49508541.86469892,
"firstRunAt": true,
"processMissedRuns": true,
"repeatUnit": true,
"repeatFrequency": -49862400,
"repeatInterval": "esse nostrud cillum aute proident",
"_id": "qui id",
"formId": false
}
],
"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": "dde6df9479679c00352fce48",
"lastExecuted": 44177797,
"migrationVersion": -6413504,
"createdBy": "Pronghorn",
"created": "1947-01-14T23:08:11.035Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1961-09-29T19:52:58.719Z",
"_id": "f7c1ae24fab4998f1865b229"
}
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "015ea1ed8a4dab8cfcb3b765",
"lastExecuted": 15421356,
"migrationVersion": -65908698,
"createdBy": "3cc09848380f3dfb1d50c314",
"created": "1976-05-03T10:40:09.559Z",
"lastUpdatedBy": "1abd349cde0269c16eea1c1f",
"lastUpdated": "1971-10-23T09:15:02.553Z",
"_id": "c1a237041304525fbcb66360"
}
},
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": true,
"actionType": "automations",
"actionId": "29c658a4a24f6ed03264a829",
"lastExecuted": 19117503,
"migrationVersion": -54124341,
"createdBy": "ec1484ede549c1ed72e0563e",
"created": "2007-03-28T18:45:49.121Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1961-08-25T20:04:03.821Z",
"_id": "c52a8f5be001a99ecbe35283"
}
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "7dcd17bb57b260f7b3daf154",
"lastExecuted": 55243320,
"migrationVersion": 49830618,
"createdBy": "313f4f332f00aa4cbbcafeb6",
"created": "1984-02-03T03:11:33.32Z",
"lastUpdatedBy": "c8554469e84e38085147e494",
"lastUpdated": "1993-04-29T05:32:22.565Z",
"_id": "054f8ea4c8c0225a0d202956"
}
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "a1acdea373bd2292ff5e670c",
"lastExecuted": null,
"migrationVersion": 11113188,
"createdBy": "Pronghorn",
"created": "1993-05-04T17:05:10.704Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "2021-11-05T08:49:24.106Z",
"_id": "64b5f7c0aae1f729e8e64967"
}
}
]
}