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": "f55491d2be12eeea39af8def", "gbac": { "write": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "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" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ], "read": [ { "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" } ] }, "componentName": "labore dolore eiusmod qui", "createdBy": null, "created": "2006-06-17T05:15:06.837Z", "lastUpdatedBy": null, "lastUpdated": "1966-07-22T04:06:46.412Z", "triggers": [ { "name": -29788785.442653462, "type": true, "enabled": false, "actionType": -67433325.04982224, "actionId": "aute proident ad minim", "formData": 16735633.74920693, "firstRunAt": 2373068, "processMissedRuns": 62892270.32199931, "repeatUnit": "adipisicing anim in", "repeatFrequency": true, "repeatInterval": false, "_id": 36581532.56552744, "formId": -65692754 }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "f179db5572cbec1b63f40607", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "a6c51d4da78554dc323487c8", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 73679662, "createdBy": "in do", "created": "2009-06-19T14:44:40.758Z", "lastUpdatedBy": "commodo fugiat", "lastUpdated": "1991-12-23T22:14:20.179Z", "formSchemaHash": null, "legacyWrapper": true } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "3648b4d3b8c6a71d9f2ea03e", "gbac": { "write": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" } ] }, "componentName": "nisi veniam magna", "createdBy": null, "created": "1966-11-18T18:34:59.566Z", "lastUpdatedBy": "ullamco quis Excepteur pariatur non", "lastUpdated": "1978-03-05T04:04:25.535Z", "triggers": [ { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "1f25da10b1715de7f6fdbdbf", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "292d4980530f0043d125cf30", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": 93763739, "migrationVersion": 55291302, "createdBy": null, "created": "2025-02-10T07:55:43.221Z", "lastUpdatedBy": null, "lastUpdated": "2026-02-04T00:04:41.26Z", "formSchemaHash": null, "legacyWrapper": false }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "3a06a923f7fb1e7b32db5b97", "verb": "POST", "routeName": "fNvd8kCGa8", "_id": "929437ca1685f42439cbe7c2", "description": "Some helpful information about the document", "lastExecuted": 27321318, "migrationVersion": -27026313, "createdBy": "sint ut irure dolor quis", "created": "1946-06-11T15:16:14.32Z", "lastUpdatedBy": null, "lastUpdated": "1971-05-18T10:17:36.17Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "fe2530b51400eca94fe583be", "source": "eiusmod eu Ut sunt nostrud", "topic": "nulla in", "schema": null, "_id": "8a234c9d0c9dc78336d372cf", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 12858997, "legacyWrapper": true, "createdBy": null, "created": "2017-01-08T22:19:22.343Z", "lastUpdatedBy": "reprehenderit sint ullamco", "lastUpdated": "1959-02-12T07:00:53.566Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "f1ff33da31bba9308ef58552", "source": "labore esse aliqua nostrud sed", "topic": "consectetur non irure mollit", "schema": null, "_id": "7384e16970ba2dc3be4cb11b", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 97888879, "migrationVersion": -43808901, "legacyWrapper": false, "createdBy": "pariatur", "created": "1949-12-06T22:19:17.304Z", "lastUpdatedBy": "laboris veniam", "lastUpdated": "1946-04-30T04:13:58.87Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "830631f929b1d6b0d557f462", "gbac": { "write": [ { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "1966-11-21T00:02:09.081Z", "lastUpdatedBy": null, "lastUpdated": "1955-06-21T17:46:48.236Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "382389b47debcccc9c2af388", "verb": "POST", "routeName": "xIao", "schema": null, "_id": "034e8e4b28260b40f87f0b83", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -49928892, "createdBy": "et Duis", "created": "1973-09-25T06:37:23.143Z", "lastUpdatedBy": null, "lastUpdated": "2004-10-26T14:21:52.313Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "a9a70fce193949af8019af28", "verb": "POST", "routeName": "tWPNHaFddC6", "schema": null, "_id": "824fef08d54d3a18a2ad2ee7", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 92045668, "createdBy": "nulla cillum", "created": "1950-02-26T09:41:22.623Z", "lastUpdatedBy": "mollit consectetur ex exercitation non", "lastUpdated": "1959-12-27T22:09:46.175Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "0cd0028b33b2e812d628a0c1", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "76b78fe1f71df9700fc3592f", "formId": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -99988626, "createdBy": "anim laboris aute cillum", "created": "1987-12-07T09:40:40.633Z", "lastUpdatedBy": "in sit ut", "lastUpdated": "1947-09-29T21:45:38.175Z", "formSchemaHash": "dolore", "legacyWrapper": true }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "4b16bd80c1199d1d3fe31664", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "32e2925e2af8bdf3efb35cf6", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": 50461453, "migrationVersion": 50278759, "createdBy": null, "created": "1995-02-16T18:47:23.647Z", "lastUpdatedBy": "cupidatat in nulla labore voluptate", "lastUpdated": "1989-10-22T06:04:25.29Z", "formSchemaHash": null, "legacyWrapper": true } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "ucm_compliance_plans", "_id": "2d3deb9f46519786778f202b", "gbac": { "write": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "1986-10-15T14:38:26.447Z", "lastUpdatedBy": "aliquip", "lastUpdated": "1983-09-02T02:43:17.912Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "928883f77d693753dc43c37a", "verb": "POST", "routeName": "w5H", "schema": null, "_id": "490a47c0617e0526639961aa", "description": "Some helpful information about the document", "lastExecuted": 37232568, "migrationVersion": 7678100, "createdBy": null, "created": "2006-09-15T17:16:47.692Z", "lastUpdatedBy": null, "lastUpdated": "2024-08-10T21:42:09.929Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "053abd725bfbde78590cc664", "verb": "POST", "routeName": "ZBYITA0G6N", "schema": null, "_id": "af251cff59118a2e08484f35", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 66642497, "createdBy": null, "created": "1958-08-01T14:41:21.713Z", "lastUpdatedBy": null, "lastUpdated": "1967-06-30T01:19:48.359Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "9256f062f853a5f0e4b48737", "gbac": { "write": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ] }, "componentName": "reprehenderit voluptate Excepteur", "createdBy": null, "created": "1949-07-05T11:53:57.371Z", "lastUpdatedBy": "sit quis officia ipsum", "lastUpdated": "1962-01-12T05:17:33.651Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "0aab3fd9286b8739bff18f5e", "source": "Duis est velit", "topic": "cillum amet", "_id": "da79a652920c38e14ae45584", "description": "Some helpful information about the document", "lastExecuted": 33037080, "migrationVersion": 92610324, "legacyWrapper": true, "createdBy": "id", "created": "2020-02-08T06:23:27.634Z", "lastUpdatedBy": null, "lastUpdated": "1964-04-21T05:20:07.642Z" } ] } ], "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": "570c6b19e992437997ef81cd", "created": "1947-10-20T19:09:03.302Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1983-08-17T20:26:33.998Z", "_id": "9f21fc74935a6d3efa837862", "gbac": { "write": [ "a4de9f7f33f685561a9e49e6", "b0287a1711779167ed40ae7c" ], "read": [ "87005a1f68e87d50d7c48eb6", "d8652296552580cbb6fc73ba" ] }, "componentId": "6d6d0377f66906bda00c685f" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "Pronghorn", "created": "2005-04-26T17:33:44.751Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1988-09-25T15:42:08.721Z", "_id": "6b13dc0a5ae668b0fdc52942", "gbac": { "write": [ "43fb09f7bbf08e6c61adc492" ], "read": [ "f80fd6bc89f529e80c65586f" ] }, "componentId": "7bb4ca9de7b4535bbf106c1e" } } ] }
{ "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" } } } ] } } } } } } ] }