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": null, "_id": "99953c754fc02fe21f487e4c", "gbac": { "write": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "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" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" } ] }, "componentName": "et", "createdBy": "do cupidatat eiusmod aliquip", "created": "1955-09-19T18:20:15.933Z", "lastUpdatedBy": "ullamco nostrud in proident", "lastUpdated": "1958-09-22T12:20:58.191Z", "triggers": [ { "name": "dolore cupidatat aliqua", "type": false, "enabled": "sit officia ipsum", "actionType": false, "actionId": true, "formData": "quis incididunt", "firstRunAt": false, "processMissedRuns": -10554150, "repeatUnit": true, "repeatFrequency": "dolor nulla fugiat", "repeatInterval": "tempor aliqua laboris", "_id": 16338027, "formId": 45956711 }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "f0a1d7427f70136c130e5585", "source": "Duis amet velit sit consectetur", "topic": "dolor", "_id": "c05a33a4722e297ebb7814b2", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 36531850, "legacyWrapper": true, "createdBy": null, "created": "1978-08-15T21:59:03.087Z", "lastUpdatedBy": "occaecat et", "lastUpdated": "2012-11-12T22:24:05.165Z" }, { "name": false, "type": "adipisicing ex in", "enabled": -53496838.74489024, "actionType": "officia laborum in irure eu", "actionId": "labore ad est", "formData": false, "firstRunAt": -1167249, "processMissedRuns": -42610564, "repeatUnit": -16084127.8517541, "repeatFrequency": "et do labore", "repeatInterval": 98534011, "_id": true, "formId": -18016306 } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "d3551053f4e6debfd1ba57a1", "gbac": { "write": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ] }, "componentName": "in qui Excepteur", "createdBy": null, "created": "1954-02-20T22:14:42.266Z", "lastUpdatedBy": null, "lastUpdated": "2025-04-24T21:17:48.765Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "e62c9fc288b5cd862efd8e35", "verb": "POST", "routeName": "3XTa9fuoJ", "_id": "5ed670028575309c4981c926", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -91651309, "createdBy": null, "created": "1969-03-05T17:13:00.2Z", "lastUpdatedBy": "nisi aute incididunt qui", "lastUpdated": "2009-10-03T12:08:31.592Z" }, { "name": "in culpa labore", "type": false, "enabled": "aliquip mollit cillum labore", "actionType": 93201904, "actionId": -23083061, "formData": -59284028, "firstRunAt": "amet", "processMissedRuns": false, "repeatUnit": 88667011.86469004, "repeatFrequency": true, "repeatInterval": -25565462.70685272, "_id": false, "formId": -48172183.3433304 } ] } ], "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": "1eac7653a6f2c6ce9cfe3744", "created": "2008-02-24T06:02:36.834Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2023-05-31T00:38:44.977Z", "_id": "78f0d9afd22ba6f14d200dda", "gbac": { "write": [ "b137de785ef05d15c066a633" ], "read": [ "3d8d916c2d40adf3330ba5a4", "7721293a3f1077745499d3bc" ] }, "componentId": null } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "ucm_compliance_plans", "createdBy": "b2bd96ae0336a1e5086b49df", "created": "1951-07-16T18:29:20.741Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1954-09-20T18:19:31.528Z", "_id": "fe29e3cdf649f8e308e78c42", "gbac": { "write": [ "8813e2ad7c36badc2ed3b378", "f86f006b002a321deba4e783", "9338f5442138e02b4e4a393e", "dfd13bb3bb0aed2f2194aad6" ], "read": [ "092bc7a14913fb5811d3840a" ] }, "componentId": "5ABf40b9-47E5-CB47-a938-BC8B4bF330Eb" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "776070ba41fe0f764faa0792", "created": "2007-03-12T23:46:39.509Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1983-09-13T17:24:16.285Z", "_id": "c4c98444bc46d140da2ed081", "gbac": { "write": [ "529d3834c91237e393ff3b97", "1985b5970c0fe3be5e763df5", "54aa7e81cc1359caf6f292af", "2201e3f18e5992d74c0320bf", "37e4b57c5b45e4ec070e9475" ], "read": [ "24a321e7635aa251dd506ec0", "9d53eb16970d4d7a8009c77b" ] }, "componentId": "" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "Pronghorn", "created": "1960-07-29T12:45:02.616Z", "lastUpdatedBy": "fa53238e4c06888888816a34", "lastUpdated": "2006-12-11T07:08:20.653Z", "_id": "af654444f935bc8d5b950243", "gbac": { "write": [ "272cbcbf44ea9106ad2d7df8", "d77c6f9e90aecbec921c3158" ], "read": [ "fe3293babbc01aba889e16f5", "723e686d9f45a55bd21cb389", "08cb2453819a8483d46f37d1" ] }, "componentId": "" } } ] }
{ "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" } } } ] } } } } } } ] }