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": -30272448.658737123,
"type": true,
"enabled": 96576684.34856558,
"actionType": true,
"actionId": "in",
"formData": false,
"firstRunAt": "do",
"processMissedRuns": false,
"repeatUnit": -96577625,
"repeatFrequency": -38224334,
"repeatInterval": 50971158,
"_id": 94169690,
"formId": "irure ut"
},
{
"name": "myCoolDocumentName",
"type": "manual",
"enabled": false,
"actionType": "automations",
"actionId": "b72eb63e3780c7023735a6d5",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"_id": "b1fabac8c546ab6b382c7a57",
"formId": "myCoolDocumentName",
"description": "Some helpful information about the document",
"lastExecuted": null,
"migrationVersion": 70107415,
"createdBy": "sint cillum consectetur",
"created": "1953-10-05T11:24:38.982Z",
"lastUpdatedBy": null,
"lastUpdated": "1984-03-18T01:30:24.141Z",
"formSchemaHash": null,
"legacyWrapper": true
},
{
"title": "triggers"
},
{
"name": -66736675.6433633,
"type": -37023775.59361154,
"enabled": 26311144,
"actionType": true,
"actionId": true,
"formData": 56713284,
"firstRunAt": "Duis dolor",
"processMissedRuns": 90375715,
"repeatUnit": true,
"repeatFrequency": false,
"repeatInterval": false,
"_id": true,
"formId": -96320739.2358516
}
],
"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 imported 3 of 4 documents",
"data": [
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "e18ac2bbc93a91a181574e17",
"lastExecuted": null,
"migrationVersion": -78788434,
"createdBy": "248d76b296e97a7489b8d79a",
"created": "2018-07-25T17:59:56.933Z",
"lastUpdatedBy": "9cbb6dcf80a4e4d8b85a0509",
"lastUpdated": "1971-05-22T22:32:04.944Z",
"_id": "a85d771ab559cb9072c83fca"
}
},
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "483cab6425663cf98f97dc9d",
"lastExecuted": null,
"migrationVersion": 77531050,
"createdBy": "a33ab89917e1fce9147ce122",
"created": "1947-06-30T03:59:48.326Z",
"lastUpdatedBy": "7b42c0137067657a43b45e3d",
"lastUpdated": "2011-02-13T11:59:24.119Z",
"_id": "b4c151ed8c80590da068725b"
}
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "182c7f3d67012fdf2b6e53bd",
"lastExecuted": 29697379,
"migrationVersion": 95174257,
"createdBy": "Pronghorn",
"created": "2013-07-04T02:13:02.852Z",
"lastUpdatedBy": "Pronghorn",
"lastUpdated": "1993-08-01T00:58:14.473Z",
"_id": "6eaba2870ebd0e9215856105"
}
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"enabled": false,
"actionType": "automations",
"actionId": "6fb1e16fb0ddd8d32a2dcf44",
"lastExecuted": 49132413,
"migrationVersion": 21232094,
"createdBy": "Pronghorn",
"created": "2018-02-08T09:35:37.277Z",
"lastUpdatedBy": "4d2ccdce4dd09ceeafa057ea",
"lastUpdated": "2021-01-09T18:19:27.411Z",
"_id": "68c892ccd5c28e2af4065d3b"
}
}
]
}