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": "c06ec406cd85582aafa1f1f1", "gbac": { "write": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ] }, "componentName": "proident est", "createdBy": null, "created": "1955-02-19T06:41:21.499Z", "lastUpdatedBy": null, "lastUpdated": "2001-09-20T14:46:18.293Z", "triggers": [ { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "c026a943a06c17804eb35be7", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "e5ddedd9d58e8dc6f85ae680", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": 90308879, "migrationVersion": 35482243, "createdBy": "Duis", "created": "1957-07-05T02:02:21.553Z", "lastUpdatedBy": "ipsum in aute", "lastUpdated": "1977-04-05T01:11:33.438Z", "formSchemaHash": null, "legacyWrapper": false } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "5c8864e8f9bd3d53a11df947", "gbac": { "write": [ { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ] }, "componentName": "nulla irure tempor amet et", "createdBy": null, "created": "1984-04-06T17:45:43.834Z", "lastUpdatedBy": null, "lastUpdated": "1970-11-30T02:51:04.752Z", "triggers": [ { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "f11840656c70665380dfbc09", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "a6b02616060cb47265563fbc", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": 56964387, "migrationVersion": -11321346, "createdBy": null, "created": "1986-06-16T19:54:07.834Z", "lastUpdatedBy": "quis sed sit nisi", "lastUpdated": "1944-06-01T17:05:32.119Z", "formSchemaHash": null, "legacyWrapper": false }, { "name": true, "type": 1986119, "enabled": 42612134.10046697, "actionType": false, "actionId": true, "formData": -88654458.10243534, "firstRunAt": -91838780, "processMissedRuns": -43200230.85680269, "repeatUnit": false, "repeatFrequency": -99866841.95967764, "repeatInterval": true, "_id": "voluptate et nisi dolore", "formId": "aliquip exercitation non Excepteur" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "3e494a3430f3c75b5b7c5b17", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "927f2ad18ad342012edc1f53", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": 46187645, "migrationVersion": 71143150, "createdBy": "ex consectetur dolor labore", "created": "1953-09-17T21:04:56.911Z", "lastUpdatedBy": "magna exercitation", "lastUpdated": "1997-11-24T07:41:35.478Z", "formSchemaHash": null, "legacyWrapper": true }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "2ca7066d54f70c546643092f", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "c1be2faae720b202891f466e", "formId": null, "description": "Some helpful information about the document", "lastExecuted": 43573839, "migrationVersion": -93857743, "createdBy": "sunt labore officia enim irure", "created": "1988-07-28T10:51:03.608Z", "lastUpdatedBy": "eiusmod elit irure", "lastUpdated": "1964-12-21T15:21:55.234Z", "formSchemaHash": "sit", "legacyWrapper": false }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "daa19aa51677e9735ec963ca", "verb": "POST", "routeName": "t2xt", "schema": null, "_id": "f8b9f2575a4e675c30403299", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -15135899, "createdBy": "quis in elit fugiat", "created": "1957-07-15T16:07:26.083Z", "lastUpdatedBy": null, "lastUpdated": "2021-08-14T11:17:49.988Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "ucm_compliance_plans", "_id": "8f730c3495001dbc6f68bef2", "gbac": { "write": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "1957-10-23T07:20:21.512Z", "lastUpdatedBy": null, "lastUpdated": "1999-02-16T11:26:23.373Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "23a7cea57022316623b2bdad", "source": "occaecat", "topic": "amet enim labore", "schema": null, "_id": "adf04808242034aa1ff782d2", "description": "Some helpful information about the document", "lastExecuted": 12992419, "migrationVersion": 62027725, "legacyWrapper": true, "createdBy": null, "created": "1980-04-12T10:56:58.734Z", "lastUpdatedBy": "irure ea", "lastUpdated": "1964-05-30T20:22:48.928Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "4b8c5305adbd5af005fddcdc", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "6c304e6dd2d40842d24cb50a", "formId": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -85081764, "createdBy": null, "created": "1985-08-11T09:27:25.515Z", "lastUpdatedBy": "nulla nostrud dolore", "lastUpdated": "1999-02-15T18:34:12.361Z", "formSchemaHash": "pariatur non", "legacyWrapper": false }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "3a3d188db1716bb33c9292cd", "source": "sint occaecat laboris amet est", "topic": "labore", "_id": "317bd5fff5635fd036e8c908", "description": "Some helpful information about the document", "lastExecuted": 52778259, "migrationVersion": 14044348, "legacyWrapper": false, "createdBy": "do consectetur", "created": "1991-03-14T18:31:28.973Z", "lastUpdatedBy": null, "lastUpdated": "1963-05-02T04:16:11.416Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "6982f9d24ddeabace4d28055", "source": "sunt", "topic": "nulla tempor aliquip amet in", "schema": null, "_id": "8c9ed40c3a24aeb2fff15767", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -89600086, "legacyWrapper": true, "createdBy": "mollit", "created": "1987-09-07T22:10:18.483Z", "lastUpdatedBy": null, "lastUpdated": "1955-07-30T09:54:10.735Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "4282101807a2f2bf5b704835", "gbac": { "write": [ { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "2002-03-01T01:31:37.129Z", "lastUpdatedBy": null, "lastUpdated": "1964-02-22T14:43:13.881Z", "triggers": [ { "name": -90274502, "type": 44162666.74081588, "enabled": 55922095, "actionType": 74146196, "actionId": -36600392.91667223, "formData": false, "firstRunAt": true, "processMissedRuns": false, "repeatUnit": "sint fugiat", "repeatFrequency": 96261624.45002672, "repeatInterval": -83130992, "_id": "dolore nisi anim dolor cupidatat", "formId": "incididunt cupidatat" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "5a42a174ab0b4037c54d3e59", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "55f2dca2c2a2c45c84966cea", "formId": null, "description": "Some helpful information about the document", "lastExecuted": 8455129, "migrationVersion": -26156367, "createdBy": null, "created": "1965-11-19T23:45:23.28Z", "lastUpdatedBy": "ullamco occaecat velit Ut", "lastUpdated": "1955-01-04T16:21:49.724Z", "formSchemaHash": null, "legacyWrapper": true }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "689e0e20f92931caa4fe157e", "verb": "POST", "routeName": "5-K", "_id": "de6300fba1ce4e4a52da8911", "description": "Some helpful information about the document", "lastExecuted": 53692679, "migrationVersion": 70353516, "createdBy": null, "created": "2021-07-02T08:15:05.251Z", "lastUpdatedBy": "adipisicing do consequat cillum", "lastUpdated": "1956-02-14T00:45:47.897Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "61abe94e5271d57c02812381", "gbac": { "write": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "1966-06-19T14:38:07.388Z", "lastUpdatedBy": "officia nisi cupidatat", "lastUpdated": "1951-08-16T08:21:52.766Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "29f5d9f2aca3c314a34b1b93", "source": "tempor anim ea Lorem", "topic": "reprehenderit Lorem aliquip non", "_id": "703fc20f70d4fdd34b992ab2", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 23363087, "migrationVersion": 73898138, "legacyWrapper": false, "createdBy": null, "created": "2011-03-06T01:59:46.999Z", "lastUpdatedBy": "irure ullamco consequat culpa elit", "lastUpdated": "2011-12-09T01:36:53.153Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "4dedaa42f43cd6fc9de854e9", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "9aabd7da89cdaab148fca232", "formId": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -81891075, "createdBy": null, "created": "2014-05-15T21:40:35.053Z", "lastUpdatedBy": null, "lastUpdated": "1993-08-14T19:11:27.404Z", "formSchemaHash": null, "legacyWrapper": false } ] } ], "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": "ucm_compliance_plans", "createdBy": "6ea49d1b36e676cc6f3748fa", "created": "2020-06-08T18:05:36.372Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2005-02-02T14:24:49.996Z", "_id": "9359e5780031827577c808e1", "gbac": { "write": [ "c088169c60a9403a8e8d6b47", "c1764807c5bb6134462e3e8b", "c61690806a414986afab1c69" ], "read": [ "a23e560dcdc9489f670a46cc" ] }, "componentId": "d444e526927dc8359e4851d7" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "77eba6ce343eae2354e0265a", "created": "1945-07-30T02:26:42.504Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1982-08-22T08:45:27.599Z", "_id": "2eb666f78380343d32cc0be1", "gbac": { "write": [ "7fe974ee031d95546882a99c", "7b501b5fa2e4591900ace0ed", "2831401af459819e5cb05c94", "67ae9473438ec2d32058d700", "8a1bdc8d65515a2943abc23e" ], "read": [ "59cfd4f0b9c992485cfe85d0", "db8c19fca73fc69a3369125c", "045c0c3d2d1709c628889a6a", "888bad388e32cfe38db8c262", "22355697b350165367225b17" ] }, "componentId": "23bfEcFb-D1Fe-DF59-20f8-d6291B6Cb497" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "Pronghorn", "created": "2009-03-28T08:36:19.946Z", "lastUpdatedBy": "610f3624c0ac647fa4e11eab", "lastUpdated": "1989-03-11T17:28:39.191Z", "_id": "42ded52998d8dea40d14f845", "gbac": { "write": [ "47c71c1e85b9943fce98361c" ], "read": [ "d5233ff43e5a5a98448d7e7e", "ebcbd0479e918e008af6acf8" ] }, "componentId": "912a072280639f32126ba716" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "f7f872cd1ac31e1f52d8803c", "created": "2021-10-21T08:34:50.669Z", "lastUpdatedBy": "a641efd2addcfd31f56bae3b", "lastUpdated": "1968-08-12T09:52:46.516Z", "_id": "354137b16ffe0ed1818eedee", "gbac": { "write": [ "a801eabd789b902a24b52653", "71502530e016b9d71374f94f", "445062eb3cb315c6905a2890" ], "read": [ "c52e603f8fe2c6f613226c23", "420694de52c489a177fd19e0", "8640e5513324cd19e5a65ea4" ] }, "componentId": "0FEF60A6-6267-95ba-aabF-dbDdaCedd119" } } ] }
{ "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" } } } ] } } } } } } ] }