Summary
Import Automations
Description
Import Automations.
Route
PUT /operations-manager/automations
Roles
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| automations | array | yes | An array of exported Automation documents. |
| options | object | yes | Optional parameters. |
{ "automations": [ { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "fdf4f62e2a0cc3f371d69002", "gbac": { "write": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" } ] }, "componentName": null, "createdBy": "aliquip dolore Duis fugiat", "created": "1971-10-19T15:44:58.437Z", "lastUpdatedBy": "et Ut", "lastUpdated": "2016-02-12T04:26:13.902Z", "triggers": [ { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "e01da2d815eedaac7a382a92", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "91e55c6c53e1e0850962ee45", "formId": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 47592818, "createdBy": null, "created": "2010-08-21T03:18:03.139Z", "lastUpdatedBy": "aliquip", "lastUpdated": "1959-04-27T19:30:02.944Z", "formSchemaHash": "dolore", "legacyWrapper": false }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "66f5362668d82f7d13df89bd", "verb": "POST", "routeName": "zwgz", "_id": "3e5ed1a61f55a63e209a4087", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 17147345, "createdBy": "eiusmod", "created": "1998-06-03T23:01:18.814Z", "lastUpdatedBy": null, "lastUpdated": "1984-02-16T06:37:11.193Z" }, { "name": false, "type": -63309597.5584026, "enabled": -78108394, "actionType": true, "actionId": false, "formData": -52061971, "firstRunAt": false, "processMissedRuns": 11318947, "repeatUnit": 97948643, "repeatFrequency": "do mollit in", "repeatInterval": false, "_id": -30171502.157077685, "formId": -61014387.6650588 }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "1ebc8c44754fba9c4576d6b2", "verb": "POST", "routeName": "AJ", "schema": null, "_id": "aa13a44578922d062425758b", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 86159527, "migrationVersion": -9684995, "createdBy": null, "created": "2012-01-27T15:30:36.967Z", "lastUpdatedBy": "sint adipisicing Excepteur", "lastUpdated": "2022-08-15T15:35:04.0Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "4ea4aa5088c96c4664e305bc", "verb": "POST", "routeName": "07zAki", "schema": null, "_id": "38aff3eddcbfcb1e78511dba", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -43782814, "createdBy": null, "created": "1986-04-20T18:56:51.126Z", "lastUpdatedBy": "ea ut consectetur enim", "lastUpdated": "1976-03-18T00:17:18.861Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "a74c6f78f15500655a4d97cb", "gbac": { "write": [ { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ] }, "componentName": "sunt adipisicing nulla aute", "createdBy": "in nostrud tempor", "created": "1995-02-16T09:04:20.103Z", "lastUpdatedBy": "aute cupidatat", "lastUpdated": "1989-01-29T17:19:21.354Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "06797207e01950b3fd52a4e5", "verb": "POST", "routeName": "BE", "schema": null, "_id": "e5c850104cb4729c99a2f7ce", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 15912962, "createdBy": null, "created": "1967-09-21T04:40:54.342Z", "lastUpdatedBy": "in proident id qui elit", "lastUpdated": "2002-11-03T14:07:19.634Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "a0ca09ff69d2959c3433d781", "gbac": { "write": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" } ] }, "componentName": null, "createdBy": "in nulla incididunt ex fugiat", "created": "1971-10-08T02:55:04.761Z", "lastUpdatedBy": "ea aliqua", "lastUpdated": "1967-11-21T05:58:02.041Z", "triggers": [ { "name": -57531351.29109816, "type": -40600921, "enabled": "mollit", "actionType": 46600668.5950937, "actionId": 35988005.14493024, "formData": -18319282.47885099, "firstRunAt": true, "processMissedRuns": -38859658.286866106, "repeatUnit": 13709724.246006384, "repeatFrequency": true, "repeatInterval": -22392844, "_id": false, "formId": true }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "d6875bfb16031aded502aed7", "verb": "POST", "routeName": "fAjDPg4-X", "schema": null, "_id": "c9bf08db4c893e3ac39d267d", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -13081413, "createdBy": null, "created": "1997-03-26T00:36:51.124Z", "lastUpdatedBy": "fugiat ut adipisicing quis", "lastUpdated": "1955-05-15T13:32:56.853Z" } ] } ], "options": { "adapterMap": { "staging": "production" } } }
{ "type": "object", "properties": { "automations": { "title": "automations", "type": "array", "items": { "$ref": "automation-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": [ "automations", "options" ], "additionalProperties": false }
Return
| Name | Type | Description |
|---|---|---|
| status | object | The result of the import operation. |
{ "message": "Successfully imported 3 of 4 documents", "data": [ { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "Pronghorn", "created": "1953-06-21T22:04:28.381Z", "lastUpdatedBy": "e49db123d2fd2a3099f515b6", "lastUpdated": "1974-08-23T15:15:44.709Z", "_id": "1a7fcb965cbdffcf24b97829", "gbac": { "write": [ "2fdee4eae5eb010e5f944b82", "32dbb85fb8f3c8d14bcb2e87", "0125307f5c3d2e9accc8147c" ], "read": [ "66b793bc5b66e465255c07fa" ] }, "componentId": null } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "736258e21dd99408991ac8df", "created": "1974-07-21T16:54:43.246Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1999-05-18T01:51:42.934Z", "_id": "8d5df309a27b0e5b9ec845d7", "gbac": { "write": [ "6d4270c5fc894986b112fc25", "37ad64fd1a103fc9822fb5c0" ], "read": [ "d1b6b14eaf472dc69bcfc388" ] }, "componentId": "dff00cb1-C67f-5b8E-4FeC-4c928FAE6960" } } ] }
{ "title": "status", "allOf": [ { "$ref": "common-api#/definitions/success-response" }, { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "properties": { "success": { "type": "boolean" }, "data": { "allOf": [ { "$ref": "automation-common#/definitions/commonFields" }, { "$ref": "common#/definitions/metadataFields" }, { "type": "object", "properties": { "_id": { "$ref": "common#/definitions/ObjectIdLikeString" }, "gbac": { "$ref": "automation-common#/definitions/gbac" }, "componentId": { "$ref": "automation-common#/definitions/componentId" } } } ] } } } } } } ] }