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": "ad06afc313d134377430e85e", "gbac": { "write": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ] }, "componentName": "sit", "createdBy": "Lorem", "created": "2004-10-16T22:03:39.145Z", "lastUpdatedBy": null, "lastUpdated": "1946-04-27T03:41:52.476Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "7498e3f5c47f5cf9fc7f8c28", "verb": "POST", "routeName": "Pi3FoszY", "_id": "272e5b422c1831bec5b34599", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -25693860, "createdBy": "eiusmod amet commodo", "created": "1998-07-23T10:38:06.884Z", "lastUpdatedBy": null, "lastUpdated": "2010-03-12T18:09:11.618Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "71c00f94f680a28346d26eae", "gbac": { "write": [ { "provenance": "localAAA", "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" } ], "read": [ { "provenance": "ldap", "name": "designers", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "1946-12-13T04:35:57.962Z", "lastUpdatedBy": null, "lastUpdated": "2012-08-09T10:17:09.219Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "8c325661190b460493b4e3ed", "verb": "POST", "routeName": "wd1-R", "_id": "a083adf52704c117f413a1b1", "description": "Some helpful information about the document", "lastExecuted": 49477631, "migrationVersion": -48612329, "createdBy": null, "created": "2019-08-13T02:47:06.461Z", "lastUpdatedBy": "veniam non in Ut officia", "lastUpdated": "1987-04-08T08:05:42.687Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "f8e97f765c03a6cf3baeba9a", "gbac": { "write": [ { "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" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" } ], "read": [ { "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" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ] }, "componentName": "eu ea Excepteur mollit", "createdBy": "anim id exercitation", "created": "1952-02-20T13:25:59.033Z", "lastUpdatedBy": null, "lastUpdated": "1971-03-16T12:51:50.433Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "cce7f6ad48a2fd54cfaf6f12", "source": "minim officia Excepteur", "topic": "magna sint in laboris enim", "schema": null, "_id": "063d4a0f6b8040026688fc7d", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -88681737, "legacyWrapper": false, "createdBy": null, "created": "2023-07-06T03:46:33.073Z", "lastUpdatedBy": null, "lastUpdated": "2002-01-16T14:15:29.409Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "42b97ba2db3214bd45d73503", "source": "Lorem ullamco eiusmod irure Ut", "topic": "ipsum", "schema": null, "_id": "0287b7aef48f7ecfbdec23ed", "description": "Some helpful information about the document", "lastExecuted": 5780697, "migrationVersion": -81058014, "legacyWrapper": true, "createdBy": "cillum culpa in ea", "created": "1987-10-06T01:06:26.239Z", "lastUpdatedBy": "exercitation in sit in dolore", "lastUpdated": "2002-03-27T08:44:41.695Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "7381b1b980bef6fc7e2cb6a2", "gbac": { "write": [ { "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" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" } ] }, "componentName": "ex et", "createdBy": null, "created": "1990-08-26T07:39:44.77Z", "lastUpdatedBy": "ad dolor ea incididunt", "lastUpdated": "1953-08-12T05:55:23.99Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "7be86d0c66e5fd5ec1a3cd12", "verb": "POST", "routeName": "y_CnfXUHWZK", "_id": "da7947e93c3a9def126213b7", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -23595410, "createdBy": "dolore eu consequat cupidatat", "created": "2011-02-26T17:43:42.615Z", "lastUpdatedBy": "cillum non ut cupidatat reprehenderit", "lastUpdated": "1985-07-15T04:06:53.795Z" }, { "name": -81468680.6093759, "type": -94817288, "enabled": -18591501, "actionType": "do Excepteur deserunt officia amet", "actionId": "aliqua ipsum in occaecat", "formData": -39705238, "firstRunAt": "aute deserunt", "processMissedRuns": 98863654.2281518, "repeatUnit": true, "repeatFrequency": -99501250, "repeatInterval": -26114341.337686315, "_id": 3583987, "formId": "veniam voluptate" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "4663785793aed35742ed2f37", "source": "adipisicing nisi", "topic": "labore", "schema": null, "_id": "a2c55f25421d66e552a9fff2", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -38076759, "legacyWrapper": true, "createdBy": null, "created": "1947-10-03T17:00:02.175Z", "lastUpdatedBy": "est dolore dolore enim cillum", "lastUpdated": "1999-07-08T18:41:04.456Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "5fedd0d5f6ad7d915961e5f1", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "a6d3c78468612ac4df90e1bd", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -1755272, "createdBy": null, "created": "1995-06-29T18:30:59.358Z", "lastUpdatedBy": null, "lastUpdated": "1976-05-02T02:15:57.79Z", "formSchemaHash": "esse Ut est anim", "legacyWrapper": true }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "a6d43ab92d7f21af7beb3e98", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "5e01cc5f50fcf640477709c4", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -87517176, "createdBy": "Excepteur", "created": "2013-12-14T18:57:44.363Z", "lastUpdatedBy": "esse irure amet", "lastUpdated": "1946-07-18T01:50:49.972Z", "formSchemaHash": null, "legacyWrapper": false } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "ucm_compliance_plans", "_id": "6b34b13e601c13005be42983", "gbac": { "write": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "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": "dolore Duis Ut et", "createdBy": "qui", "created": "1992-08-29T02:46:27.224Z", "lastUpdatedBy": "labore dolor tempor est nulla", "lastUpdated": "2004-06-01T03:11:35.822Z", "triggers": [ { "name": true, "type": "amet dolor", "enabled": -79352446, "actionType": -5016356, "actionId": 74619319, "formData": true, "firstRunAt": -9711897, "processMissedRuns": true, "repeatUnit": 94374234.39345062, "repeatFrequency": -81503613.91863687, "repeatInterval": 85925973.5743295, "_id": 50137174.111358106, "formId": 16570643.380933031 }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "ba1356905d0e8f9f3bfc9a81", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "77341f78aeb04e6abf587ed3", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": 5040949, "migrationVersion": 4530467, "createdBy": "reprehenderit ex fugiat adipisicing tempor", "created": "2016-10-12T01:07:46.785Z", "lastUpdatedBy": "amet", "lastUpdated": "2025-01-03T05:07:17.205Z", "formSchemaHash": null, "legacyWrapper": true }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "e4924cc83e8cc45967b56990", "source": "dolore labore", "topic": "nostrud", "schema": null, "_id": "1002a0e60be018a777a77afb", "description": "Some helpful information about the document", "lastExecuted": 45653810, "migrationVersion": -26116910, "legacyWrapper": false, "createdBy": null, "created": "1991-08-15T14:26:58.884Z", "lastUpdatedBy": "ut qui Ut ex", "lastUpdated": "1965-10-27T05:07:20.866Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "1955857d8950a084494bfa03", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "0d1602e4ec78b59533771b2b", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": 30540151, "migrationVersion": -24184720, "createdBy": "commodo Lorem Duis consequat", "created": "2002-06-02T17:36:08.413Z", "lastUpdatedBy": null, "lastUpdated": "1966-02-11T21:32:03.354Z", "formSchemaHash": "qui commodo labore reprehenderit", "legacyWrapper": false } ] } ], "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 retrieved search results", "data": [ { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "283df7d46f6f1a593d99520c", "created": "1983-05-18T20:03:11.719Z", "lastUpdatedBy": "40c6209a27235d5b923dc4c7", "lastUpdated": "1963-12-09T09:28:27.424Z", "_id": "5832988ad760971930fe72a0", "gbac": { "write": [ "fc984676ac3a3d54cd252d69", "43ed0b7aa48d98ea2233ccbd", "92e08b5dfb6a8bd20ab7eea4" ], "read": [ "32489bc256fce6dbfa3dba67", "00c5e24d17dbabcd9fbba35b" ] }, "componentId": "" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "ceb4a83f0a81753be9b73f08", "created": "1993-02-04T22:56:11.708Z", "lastUpdatedBy": "d016ab84b0c8f78a39f92582", "lastUpdated": "2001-01-15T04:27:11.502Z", "_id": "2e5d7389fcfd2be289f93da4", "gbac": { "write": [ "f0ad011e3cc0dfba8b88e50f", "73d84c926790bc7cc19c63cb" ], "read": [ "2084c53b3ed10e024eb7fb9f", "081240728e4d938517ba5431", "6b83ba055698b5f544b77d8d", "3f100ced9bbac3ed8b2bcd73", "1e6e4c07bdb3cd89256015af" ] }, "componentId": "a627c8b8e4658c132abe3e53" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "Pronghorn", "created": "1955-11-30T07:07:57.66Z", "lastUpdatedBy": "389016f421bb2f350f78dc76", "lastUpdated": "2019-02-08T17:02:36.073Z", "_id": "4332d1f46205ed2bf95da3e7", "gbac": { "write": [ "aa7caca6238899b8753b090c" ], "read": [ "5d00972c6d11c26d43fbc670" ] }, "componentId": null } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "Pronghorn", "created": "2012-03-02T00:29:16.73Z", "lastUpdatedBy": "5b8ad561aebc213bd293b6f1", "lastUpdated": "1966-02-10T00:47:17.844Z", "_id": "ee1871e3b0967476464fe4c2", "gbac": { "write": [ "59b0d52093ff4640f40ad953", "7ff05cdab47d2e48e918980f" ], "read": [ "f05b75bcdabf7e0e5ff0b1ea", "61f7e8d2210e595ae0d9d419", "9fbcd103b0ef7146ecc7a305" ] }, "componentId": null } } ] }
{ "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" } } } ] } } } } } } ] }