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": "edc75a5d2c645ead2d96bbb3", "gbac": { "write": [ { "provenance": "localAAA", "name": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ] }, "componentName": "pariatur", "createdBy": null, "created": "1947-07-10T23:38:04.442Z", "lastUpdatedBy": null, "lastUpdated": "1969-05-03T16:39:30.434Z", "triggers": [ { "name": "tempor dolor ut consectetur deserunt", "type": -2256589, "enabled": true, "actionType": 18822297.033689946, "actionId": 20609107, "formData": -38524572, "firstRunAt": -42479788, "processMissedRuns": 70836808, "repeatUnit": 69216091.24666843, "repeatFrequency": 95734508.68856424, "repeatInterval": "dolor enim veniam irure", "_id": true, "formId": false } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "f92bc93121afadd96e1e7047", "gbac": { "write": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" } ] }, "componentName": "tempor", "createdBy": null, "created": "1993-12-25T23:07:57.376Z", "lastUpdatedBy": null, "lastUpdated": "2021-04-11T13:43:30.16Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "cefad8a37ec1b29aa6bfd24a", "source": "nisi officia magna laborum ad", "topic": "commodo", "_id": "685c2f6e3542d6048ef3f581", "description": "Some helpful information about the document", "lastExecuted": 74743698, "migrationVersion": -21067529, "createdBy": null, "created": "1954-10-11T23:39:54.487Z", "lastUpdatedBy": null, "lastUpdated": "1954-01-14T02:33:20.189Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "7e5d9dd37cbd85eb95d53d46", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "8481a7eff8e35d625fba216f", "formId": null, "description": "Some helpful information about the document", "lastExecuted": 27126475, "migrationVersion": 67228886, "createdBy": "non eiusmod", "created": "1997-12-01T05:14:41.567Z", "lastUpdatedBy": null, "lastUpdated": "1963-02-12T19:17:46.309Z", "formSchemaHash": null } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "e2bcb0fe003635aae66e2de9", "gbac": { "write": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" } ] }, "componentName": "cupidatat", "createdBy": null, "created": "1949-09-06T21:42:48.411Z", "lastUpdatedBy": null, "lastUpdated": "2008-06-18T06:55:59.193Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "579a85b01f239ccdfa556a66", "source": "mollit exercitation", "topic": "Lorem magna", "schema": null, "_id": "185c7e4ee117598add506495", "description": "Some helpful information about the document", "lastExecuted": 40183356, "migrationVersion": -62259234, "createdBy": "minim", "created": "1980-04-13T12:05:29.619Z", "lastUpdatedBy": "enim veniam ex", "lastUpdated": "1946-04-25T22:58:29.919Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "446e7101968d0a2de1ea2d2b", "source": "nisi", "topic": "occaecat amet enim", "schema": null, "_id": "6101c66b40de732310087382", "description": "Some helpful information about the document", "lastExecuted": 80280824, "migrationVersion": 78071102, "createdBy": null, "created": "2022-09-18T17:10:04.486Z", "lastUpdatedBy": "consequat Duis", "lastUpdated": "1985-02-22T19:45:47.254Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "afae15708c1d87727bcf6e7f", "verb": "POST", "routeName": "62RIeYUED_O", "schema": null, "_id": "b726b36ee83dac410a0237f5", "description": "Some helpful information about the document", "lastExecuted": 13057625, "migrationVersion": 31043667, "createdBy": "ut mollit exercitation elit qui", "created": "2018-07-15T16:06:07.612Z", "lastUpdatedBy": "quis Lorem pariatur", "lastUpdated": "1990-06-16T18:09:33.52Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "0ecbc28371bda2e33f49d561", "source": "nulla sit", "topic": "eiusmod Ut cillum", "_id": "b54ef6e0f4eb6b776f395e5f", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 81882800, "migrationVersion": -11725742, "createdBy": null, "created": "1970-02-13T22:32:40.041Z", "lastUpdatedBy": null, "lastUpdated": "2020-12-22T16:42:39.971Z" } ] } ], "options": { "adapterMap": { "old_name": "new_name" } } }
{ "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": "19ccfbae30b8153767bcf312", "created": "1996-06-30T00:45:13.762Z", "lastUpdatedBy": "83ed055c5bb067823c9e1e0f", "lastUpdated": "1965-06-29T05:09:01.389Z", "_id": "876a4edc5284b1cba491d852", "gbac": { "write": [ "9e32956c6aee3114e4ec7c24", "79b54ada4c6d9e16030609b6", "0b850ad699a6980f412aab46", "333484fba510a24d684d1983", "3f704080e9ef21907b1e184a" ], "read": [ "cfeefc95ced92e90ecf3deee" ] }, "componentId": "ccf072f6373b25b0859f7c3a" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "fe190ec786e50e34f1b55a8c", "created": "1992-02-02T07:02:23.466Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2022-07-18T18:17:32.154Z", "_id": "5de5b684de5fdd943fba4c8a", "gbac": { "write": [ "99056f3f6c1a606f72a08339", "b2b28199a4e7286e73bd19ec", "d0a62d710969f568469f3601" ], "read": [ "9bdfa3c5a33d913454dd3d01", "77365fc497e020aa2ab3520f" ] }, "componentId": "cf2F3329-05fD-12C5-D5E3-56F7f06c9518" } } ] }
{ "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" } } } ] } } } } } } ] }