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": null, "_id": "e933a60298a97054ce227017", "gbac": { "write": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "1956-12-16T00:58:20.152Z", "lastUpdatedBy": "elit Duis ipsum", "lastUpdated": "2000-10-05T05:41:17.587Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "4ae31824165c44e11026e8ab", "source": "commodo irure", "topic": "aliquip laborum velit exercitation veniam", "schema": null, "_id": "e5a2654d408a085ce6c41200", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 17192358, "legacyWrapper": false, "createdBy": "et cupidatat", "created": "1954-06-19T03:30:04.861Z", "lastUpdatedBy": null, "lastUpdated": "1976-03-24T21:18:30.5Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "1197bf7a90d3109724641403", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "6f08640a30c724c582686d8a", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": 91718967, "migrationVersion": -6843691, "createdBy": null, "created": "1961-04-18T15:14:35.81Z", "lastUpdatedBy": "dolor aute magna velit proident", "lastUpdated": "1995-03-19T17:43:53.92Z", "formSchemaHash": null, "legacyWrapper": false } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "ucm_compliance_plans", "_id": "c03601a14bce09175367991e", "gbac": { "write": [ { "provenance": "localAAA", "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" } ], "read": [ { "provenance": "ldap", "name": "operators", "description": "Description of a group" } ] }, "componentName": "ullamco nulla laboris dolor", "createdBy": null, "created": "1946-03-27T19:52:55.411Z", "lastUpdatedBy": "sed incididunt", "lastUpdated": "1998-02-26T19:23:51.572Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "0841e203311e134ea78e0d0d", "verb": "POST", "routeName": "W", "_id": "e8791407a3350e74ee92a39c", "description": "Some helpful information about the document", "lastExecuted": 94414245, "migrationVersion": -97089372, "createdBy": null, "created": "2019-09-15T04:18:19.259Z", "lastUpdatedBy": null, "lastUpdated": "2022-04-11T11:35:04.727Z" }, { "name": -30315105, "type": true, "enabled": "ut tempor", "actionType": "aute officia Lorem ut", "actionId": 2916798.171235159, "formData": -60032697, "firstRunAt": -48752045.09135669, "processMissedRuns": "mollit sunt in", "repeatUnit": true, "repeatFrequency": true, "repeatInterval": 8203128.342079729, "_id": false, "formId": "adipisicing" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "8ece3a56d00699f19ebdf58b", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "8d7c8232de778e1e60ccd594", "formId": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -90331351, "createdBy": "commodo laborum sit officia", "created": "2019-08-29T09:00:46.641Z", "lastUpdatedBy": null, "lastUpdated": "1977-04-06T10:10:35.302Z", "formSchemaHash": "cupidatat", "legacyWrapper": false }, { "name": false, "type": 24644768, "enabled": "labore tempor irure ut dolore", "actionType": "incididunt fugiat sint quis aliqua", "actionId": -90466957.47235067, "formData": -4500987, "firstRunAt": false, "processMissedRuns": 47883459.30347186, "repeatUnit": -48419159, "repeatFrequency": -89379364, "repeatInterval": 93342338, "_id": -41900468.783694714, "formId": true }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "7284acfc31a2b0179a868a66", "verb": "POST", "routeName": "6kPtUPXEVXM", "schema": null, "_id": "4299a403dd780c9bb69db839", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -3137283, "createdBy": "sed Lorem sit irure", "created": "1968-12-05T16:42:01.385Z", "lastUpdatedBy": null, "lastUpdated": "1978-09-11T21:42:48.727Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "da2aa305918b66eb67ee948d", "gbac": { "write": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "1978-12-25T01:40:18.702Z", "lastUpdatedBy": null, "lastUpdated": "1978-03-13T07:53:07.576Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "76c1844c4d613e5afee1a4e9", "source": "labore proident", "topic": "aute reprehenderit", "_id": "e97730b166721f4aa6a21843", "description": "Some helpful information about the document", "lastExecuted": 27411504, "migrationVersion": -26808421, "legacyWrapper": true, "createdBy": null, "created": "1994-06-02T16:20:46.107Z", "lastUpdatedBy": "sunt nostrud aute commodo tempor", "lastUpdated": "1990-12-09T01:56:02.875Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "b4b3153c5414fbe820cea0f0", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "4b7d56cca2bd87a40721fe1f", "formId": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -30231907, "createdBy": "eu", "created": "1983-05-07T02:29:16.057Z", "lastUpdatedBy": "cupidatat irure", "lastUpdated": "2016-06-21T13:32:21.481Z", "formSchemaHash": null, "legacyWrapper": false }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "4a182d2575f316f23c4bcb25", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "191940f29d77ad6a3c604032", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": 86434552, "migrationVersion": -33746702, "createdBy": null, "created": "1981-04-15T05:52:00.703Z", "lastUpdatedBy": "anim nulla commodo", "lastUpdated": "1999-04-23T04:36:30.478Z", "formSchemaHash": "fugiat Excepteur exercitation", "legacyWrapper": true }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "7371afe2804dd237ef32f0fc", "source": "cupidatat dolore ex", "topic": "ex ut dolore amet Lorem", "_id": "dfb067cd9de619e3154b4673", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 56744621, "migrationVersion": -93559535, "legacyWrapper": true, "createdBy": "ea quis Ut non", "created": "1947-01-03T14:51:17.614Z", "lastUpdatedBy": "voluptate Duis eu et", "lastUpdated": "1961-03-06T04:51:40.883Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "2ae7c5ed2b01685757075c2b", "gbac": { "write": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" } ] }, "componentName": "adipisicing Ut nostrud sit", "createdBy": "in", "created": "2016-07-01T10:00:20.043Z", "lastUpdatedBy": "sint non aute ea eiusmod", "lastUpdated": "2002-02-25T14:46:38.496Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "d588b16424de7b1bcd3d577e", "source": "ex reprehenderit Lorem dolore dolore", "topic": "officia", "_id": "ae2c56380d20e00fc0e08b5e", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 94561904, "migrationVersion": -94270899, "legacyWrapper": true, "createdBy": null, "created": "1961-04-27T22:49:39.877Z", "lastUpdatedBy": null, "lastUpdated": "2003-09-01T03:30:56.02Z" } ] } ], "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": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "Pronghorn", "created": "1980-09-16T02:20:42.995Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1982-11-18T15:08:05.211Z", "_id": "e98a282027a0d7960b4adeb2", "gbac": { "write": [ "21d0eced62a160c86545ac1c", "daf7c62f78be49a14bf388bb", "bf3859b05b6bb7bbe68023c2", "145895d082b2e66793d02e2a", "e43dcb6f259a73797ffdd969" ], "read": [ "da8618ee5e7908d4f0eb49bf", "81937dd92a1e777134cd19f5", "991f77763de995aec14f9bed", "f88b32af65f9095449fb092e" ] }, "componentId": "" } } ] }
{ "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" } } } ] } } } } } } ] }