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": "9d4f26c265cb7555d83421ef", "gbac": { "write": [ { "provenance": "localAAA", "name": "operators", "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" } ], "read": [ { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" } ] }, "componentName": null, "createdBy": "eu consequat", "created": "1992-12-22T23:50:16.523Z", "lastUpdatedBy": "cupidatat nisi laborum Ut", "lastUpdated": "1946-11-11T18:36:21.86Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "41164078c98f5b17ce1a051a", "verb": "POST", "routeName": "a7HxGyZR", "schema": null, "_id": "99dc8334c51e4bdc31e75717", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 91454347, "createdBy": null, "created": "1988-02-13T20:33:39.923Z", "lastUpdatedBy": "id", "lastUpdated": "2014-01-07T20:53:11.753Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "f76d8b1a10334016efc0692d", "gbac": { "write": [ { "provenance": "ldap", "name": "operators", "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": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "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" } ] }, "componentName": "ullamco et", "createdBy": "dolor sed sit officia", "created": "2025-09-27T07:20:16.54Z", "lastUpdatedBy": "Duis", "lastUpdated": "1988-11-20T14:12:16.988Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "7de1e7c6dab1a3045d9afa53", "verb": "POST", "routeName": "K8Xs", "schema": null, "_id": "ce86a54eb66b0c159ec0b0cc", "description": "Some helpful information about the document", "lastExecuted": 70522266, "migrationVersion": 25104075, "createdBy": "sit ut irure", "created": "1968-02-23T02:39:43.57Z", "lastUpdatedBy": null, "lastUpdated": "2003-11-24T13:47:36.01Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "9118f65281315e075aef8f4b", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "6d720c51e934ea5c7308b19e", "formId": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -35629378, "createdBy": null, "created": "2002-09-18T17:04:41.223Z", "lastUpdatedBy": "ipsum sunt anim", "lastUpdated": "1974-03-02T14:12:51.664Z", "formSchemaHash": null, "legacyWrapper": false }, { "name": false, "type": -76581229.77028504, "enabled": false, "actionType": "magna ea consequat reprehenderit", "actionId": 35396976.82558596, "formData": -61767384, "firstRunAt": -44453506, "processMissedRuns": true, "repeatUnit": -49581757, "repeatFrequency": false, "repeatInterval": "dolor mollit et elit", "_id": false, "formId": 17642385 }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "2c615824ffdb97d1ae7aff55", "source": "deserunt", "topic": "qui cillum", "schema": null, "_id": "cd9d03bdd5df5607821c83ef", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 60061958, "migrationVersion": 9494100, "legacyWrapper": true, "createdBy": null, "created": "1966-05-15T22:30:45.89Z", "lastUpdatedBy": null, "lastUpdated": "1975-11-23T20:35:52.373Z" } ] } ], "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": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "2e46a22fb36bee25a9b54a55", "created": "1985-05-26T05:28:47.237Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1965-08-16T07:31:49.453Z", "_id": "f1c0381bd22279bace020f7b", "gbac": { "write": [ "02990393831e8e381910cbc6", "ad9717a0d637920220b25ca7" ], "read": [ "133120f4db41f285c4da4de7", "f289f172db7733e142798926", "683b10861c693568adc23e2b", "fd9441112e2febeb31ff7c16" ] }, "componentId": "a7C14bD3-1C9B-5c40-fAa5-5e026bf4F19e" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "5ff183f3c1b9e0cdaf440285", "created": "1947-05-04T01:10:45.922Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2003-06-19T04:51:34.603Z", "_id": "7c278618563749f4b1255d10", "gbac": { "write": [ "b734fa14ba83d49afa8f6878", "681325157d157dea07a23add", "cb986ddc099ad62e2cd195fa", "853c134d13ff51a770d68ae0" ], "read": [ "409b35243ab4735c13504021", "8b1e425f0cd5448442f95867" ] }, "componentId": "9d069cfb5320d90d70d7aad2" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "Pronghorn", "created": "1967-06-02T01:38:01.572Z", "lastUpdatedBy": "c7240da70aa86e68d28f816c", "lastUpdated": "1983-03-14T07:05:32.912Z", "_id": "bef1396523efd896ed937859", "gbac": { "write": [ "379c9fa99542dba60f44acb9", "8b8d9adcc4aa6f91c87b1889" ], "read": [ "cc23ff2296b7af167ed90b70", "44a45a67cd5fb72157920ee4", "cd1b6e2c3ea191a474c33597", "f56a80e8dfd7bf5873cd87c3", "38bbdd82fe5ef1b173e6a9c7" ] }, "componentId": "" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "ec1d1aae272758bb45625268", "created": "1990-05-22T13:25:37.499Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1950-11-28T01:38:33.763Z", "_id": "0dcbb6b67d4875f37ab47dd6", "gbac": { "write": [ "ee4270f7b0082f5fe42944a9" ], "read": [ "0c55bcec7cdbf674bd8060c2", "4da615be05a70d3f5ae66241" ] }, "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" } } } ] } } } } } } ] }