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": "1ee80a5179f8a4961b6edaed", "gbac": { "write": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "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": "admins", "description": "Description of a group" } ] }, "componentName": null, "createdBy": "Excepteur fugiat eu", "created": "1959-05-02T09:23:13.625Z", "lastUpdatedBy": "qui dolore eu", "lastUpdated": "1996-08-21T18:08:48.795Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "3c5e928847f447940f02b21b", "verb": "POST", "routeName": "QyWwspxr6d", "schema": null, "_id": "825230e5be84e68621ea3b69", "description": "Some helpful information about the document", "lastExecuted": 32821143, "migrationVersion": 13138047, "createdBy": "in", "created": "1953-07-16T12:24:51.254Z", "lastUpdatedBy": "in ullamco irure esse laboris", "lastUpdated": "2001-08-07T06:00:45.347Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "6d020578355dc6246e8a397c", "verb": "POST", "routeName": "nUWeNVV", "_id": "449b7f473529b41cadafea3e", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -30328562, "createdBy": null, "created": "2018-01-02T20:38:05.106Z", "lastUpdatedBy": null, "lastUpdated": "2002-05-07T01:51:29.884Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "ucm_compliance_plans", "_id": "d58b8366429ab60b2e035dd7", "gbac": { "write": [ { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" } ] }, "componentName": null, "createdBy": "et veniam", "created": "2009-06-23T01:22:59.304Z", "lastUpdatedBy": "qui", "lastUpdated": "2023-01-10T22:52:50.215Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "9aee7187c7d4486c231349c5", "verb": "POST", "routeName": "PL2nGGbl", "_id": "a5acdab609a4a211204b0bca", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 11330082, "createdBy": "labore sit Excepteur occaecat", "created": "1952-08-25T05:46:33.645Z", "lastUpdatedBy": null, "lastUpdated": "2010-09-09T07:35:29.067Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "f78fb55aab1e2a12797a1412", "verb": "POST", "routeName": "zFQbqozjqyp", "schema": null, "_id": "5d95aadbcd23f73f04a2575d", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 45540311, "migrationVersion": -89707588, "createdBy": null, "created": "2010-06-11T21:31:33.251Z", "lastUpdatedBy": "magna occaecat aliqua Excepteur", "lastUpdated": "1959-11-07T12:13:45.945Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "97dc7f63e5cd4c3ba096cd8d", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "16dc8f49312c691110411a14", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -32722312, "createdBy": null, "created": "1954-08-28T02:40:27.742Z", "lastUpdatedBy": "dolore do in Excepteur", "lastUpdated": "1973-11-22T06:25:37.857Z", "formSchemaHash": null, "legacyWrapper": false }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "6a32aaf1981026fcb6a357c8", "source": "voluptate in", "topic": "cupidatat qui", "_id": "12b507222cbdf1aa64322def", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -2593184, "legacyWrapper": false, "createdBy": "culpa ut eu est ea", "created": "1967-07-07T07:23:25.893Z", "lastUpdatedBy": null, "lastUpdated": "1993-11-03T00:10:02.644Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "a3d552bc5443a67e4904f79c", "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": "operators", "description": "Description of a group" }, { "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" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "1974-08-15T16:56:18.084Z", "lastUpdatedBy": null, "lastUpdated": "2007-11-04T06:03:45.819Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "05482881bcf3043743c0a553", "verb": "POST", "routeName": "R_diHKgY5", "schema": null, "_id": "5ee9874a83c847da1b8e7cf0", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 52100813, "migrationVersion": -13611101, "createdBy": "incididunt eu ut fugiat", "created": "1981-02-20T11:59:24.124Z", "lastUpdatedBy": "ad occaecat enim culpa", "lastUpdated": "1984-01-28T17:23:30.214Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "5d9764b127cc71a406316588", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "632b85f82a2456f8aaef484a", "formId": null, "description": "Some helpful information about the document", "lastExecuted": 262057, "migrationVersion": -43134984, "createdBy": "fugiat Lorem", "created": "1948-05-31T14:40:59.289Z", "lastUpdatedBy": null, "lastUpdated": "2019-06-11T21:02:35.857Z", "formSchemaHash": null, "legacyWrapper": false }, { "name": true, "type": 54153217, "enabled": 35395672.07876751, "actionType": false, "actionId": "irure commodo tempor voluptate", "formData": -68915199.61831722, "firstRunAt": 60737430, "processMissedRuns": "esse Duis deserunt", "repeatUnit": "dolore", "repeatFrequency": "in quis tempor", "repeatInterval": true, "_id": -65017991, "formId": "velit non" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "5cc49dc271f0f80149034f52", "source": "minim voluptate laboris", "topic": "consectetur et", "_id": "c8fea8135613de97c6aeed85", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 59210608, "migrationVersion": 64808192, "legacyWrapper": true, "createdBy": "dolore", "created": "1953-10-24T01:45:14.876Z", "lastUpdatedBy": "magna", "lastUpdated": "1975-11-23T18:25:42.738Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "30388a419bd10f267c16f9f6", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "327ce471da03e7129316448d", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": 75931940, "migrationVersion": -77769666, "createdBy": "non tempor laboris", "created": "1982-09-02T12:10:50.804Z", "lastUpdatedBy": "sunt dolor Excepteur tempor irure", "lastUpdated": "1987-02-02T19:30:37.376Z", "formSchemaHash": "in in", "legacyWrapper": true } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "ucm_compliance_plans", "_id": "3e2ba26b6adaf0e0f179851e", "gbac": { "write": [ { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "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": "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" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" } ] }, "componentName": "irure fugiat ipsum", "createdBy": "ullamco", "created": "1951-02-12T02:06:13.363Z", "lastUpdatedBy": null, "lastUpdated": "1991-08-16T07:25:40.758Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "be80c4275ea41ed367020252", "verb": "POST", "routeName": "WpNebO_v", "schema": null, "_id": "3da29577c5a2422324741539", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 11723083, "migrationVersion": -50743686, "createdBy": null, "created": "1979-09-03T18:18:59.939Z", "lastUpdatedBy": null, "lastUpdated": "1963-07-21T08:56:41.066Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "4a5e0b672ba9db30b33a8de9", "verb": "POST", "routeName": "j2", "schema": null, "_id": "6422eacd38d462b62cc975e8", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 8051427, "createdBy": null, "created": "1973-12-16T17:37:53.874Z", "lastUpdatedBy": null, "lastUpdated": "2015-11-12T22:10:41.439Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "fb551122e7e40934f58cbcd9", "source": "sed", "topic": "Lorem ut minim dolor labore", "_id": "65b3cefe48ce31fc2ea53ad9", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 84116070, "migrationVersion": 89903604, "legacyWrapper": true, "createdBy": null, "created": "1964-01-16T01:36:36.249Z", "lastUpdatedBy": null, "lastUpdated": "2004-05-31T15:19:47.52Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "88471223fca7be9fa53a539a", "verb": "POST", "routeName": "PeKwK", "schema": null, "_id": "16020fce6af065c9d6661b32", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -28464790, "createdBy": "sunt laboris amet", "created": "2025-01-08T17:58:57.185Z", "lastUpdatedBy": "ex ad occaecat nisi eu", "lastUpdated": "1967-05-07T19:46:23.495Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "a005a454b4df4be8cdb58676", "gbac": { "write": [ { "provenance": "localAAA", "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": "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": "operators", "description": "Description of a group" } ] }, "componentName": null, "createdBy": "occaecat", "created": "2015-02-07T14:33:48.007Z", "lastUpdatedBy": "voluptate Duis", "lastUpdated": "1998-04-29T11:08:44.674Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "beeabb33f8dfb19a752e7d58", "source": "velit dolore quis reprehenderit", "topic": "adipisicing", "_id": "f0820e5870c59455a8b41aa5", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 17846236, "legacyWrapper": false, "createdBy": "ea proident mollit ut adipisicing", "created": "1983-11-02T22:26:24.436Z", "lastUpdatedBy": "esse veniam Ut voluptate", "lastUpdated": "1954-08-23T23:50:01.975Z" } ] } ], "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 created the requested item", "data": [ { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "ucm_compliance_plans", "createdBy": "Pronghorn", "created": "1963-07-13T06:11:14.1Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2015-03-30T19:00:00.745Z", "_id": "261db13900286feb5af33f31", "gbac": { "write": [ "acb2a438ca1c8df25db0ed4c", "48b481fdfb86282fe6c404fc", "091d0d0c0824454928024017", "df7067d7e19a768fd6328d36", "ed5501b3b8c2b4eda821a4d6" ], "read": [ "682edf7705f28d52711fafc7", "cf6820d197f728eb69593a70" ] }, "componentId": "72edf046c5632e7efb958c93" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "Pronghorn", "created": "2020-10-23T22:32:58.697Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1968-02-11T22:35:31.402Z", "_id": "d0b01fd5b9182bbee1102222", "gbac": { "write": [ "3b8d2521a456e64378defaff" ], "read": [ "e6208b879d54a35e68f9adbf", "c5c7fe997ffbc958b490ad22", "511c1c90200bd47b2aadcd6c", "647e7dc408a43d924622e805", "5d7aa306d815edc27a8f9191" ] }, "componentId": "1761aba8-15Bf-ED3F-7b32-f3CFDCf5873B" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "b09f11b53056ffa1a43ae48e", "created": "1985-02-17T17:21:39.117Z", "lastUpdatedBy": "c5de4119ca5c959a164fd3b7", "lastUpdated": "1991-09-11T09:10:20.66Z", "_id": "564dcf6d4ce6d427aa4e0b5b", "gbac": { "write": [ "7d0a622005c5dc1cf6df8656", "18e7c399991f8b12350bbb82", "885b65625fd8864b9e67520c", "2a2610fe9f4e173f55f6e7a5", "dbc457654ba94fb89f926a3b" ], "read": [ "b2bdcd525337830e27e77697", "172d8b212e9da46a0994bbd2" ] }, "componentId": "db72936f5326503f417b1575" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "Pronghorn", "created": "2000-07-04T01:42:18.404Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1948-04-15T03:40:39.442Z", "_id": "85fed0dd466f4e37be144ad3", "gbac": { "write": [ "3ed7bbf6b5eb9e9d6f5b1740", "56cbba85029aa9329b199334", "b934071c9dbd4327ae82cdda", "ae3a58683bacbea06cdc62ab" ], "read": [ "06a49f8ca6f83bf5e702e88a", "e0dfbcb2adcd1c0dbf96c2d9", "61ab900ab9e2e9e1524ad6e7", "b911a2c33f5adb915b3bcbe6", "fc227eb777452969306c5e7d" ] }, "componentId": null } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "ucm_compliance_plans", "createdBy": "Pronghorn", "created": "1977-11-24T23:57:10.711Z", "lastUpdatedBy": "271f017fe496a3869c7ee6d8", "lastUpdated": "2007-07-13T20:04:12.227Z", "_id": "deab9220351e1fe34346dc38", "gbac": { "write": [ "ebfc231f913069e31b4d05a4" ], "read": [ "e01c733f7983cc1851d78b60", "8a342ebd75518e942f3310c5" ] }, "componentId": "34edda9c4bb1ff1df25ebe9f" } } ] }
{ "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" } } } ] } } } } } } ] }