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": "ucm_compliance_plans", "_id": "0796ee4629b95ea1a351c71a", "gbac": { "write": [ { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "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": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "1998-12-18T09:53:28.243Z", "lastUpdatedBy": "nulla fugiat reprehenderit do", "lastUpdated": "2024-07-23T23:16:01.404Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "dfd0bfc06300deec359c94a8", "verb": "POST", "routeName": "s4OTAl", "_id": "2a95e307bf1dc4e44dbc5792", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 42136912, "createdBy": null, "created": "1984-05-01T04:10:05.616Z", "lastUpdatedBy": null, "lastUpdated": "1953-09-01T16:01:04.233Z" }, { "name": 75019945, "type": false, "enabled": false, "actionType": -91615407, "actionId": true, "formData": false, "firstRunAt": -19911336, "processMissedRuns": "ipsum et Duis veniam", "repeatUnit": "sint aliquip consectetur", "repeatFrequency": 38138286.33240041, "repeatInterval": -69308390.43612643, "_id": "ullamco do nulla", "formId": -51751557 }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "649a34c1a85dedf9b8a4bfc3", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "9486ad5e02c7a55bb27f6580", "formId": null, "description": "Some helpful information about the document", "lastExecuted": 84721690, "migrationVersion": -73086306, "createdBy": "velit sed labore", "created": "1948-10-05T12:54:20.124Z", "lastUpdatedBy": "dolor non aute adipisicing", "lastUpdated": "2011-05-07T17:04:33.931Z", "formSchemaHash": null, "legacyWrapper": false }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "b83b92a9a4caa8fc0818c7b5", "source": "eu irure magna", "topic": "proident", "_id": "67065ed2354d1fcde29bd9c3", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -15304594, "legacyWrapper": true, "createdBy": "do exercitation deserunt", "created": "2015-06-01T14:16:05.746Z", "lastUpdatedBy": "sint", "lastUpdated": "2005-01-22T07:32:05.779Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "1490fbfb5037778f956d2895", "gbac": { "write": [ { "provenance": "ldap", "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": "ldap", "name": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" } ] }, "componentName": "Duis", "createdBy": "officia", "created": "1956-04-06T12:08:01.225Z", "lastUpdatedBy": null, "lastUpdated": "1950-07-03T21:16:50.943Z", "triggers": [ { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "447051e6ea312662327f890e", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "8ba4a7bc41746a4e4381ba51", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": 69610934, "migrationVersion": 71651677, "createdBy": "est minim nostrud", "created": "1962-06-23T00:06:33.161Z", "lastUpdatedBy": null, "lastUpdated": "1988-07-19T22:18:11.192Z", "formSchemaHash": null, "legacyWrapper": false } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "ucm_compliance_plans", "_id": "eea0d6d8986d56b75dd3741a", "gbac": { "write": [ { "provenance": "ldap", "name": "operators", "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": "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": "localAAA", "name": "designers", "description": "Description of a group" } ] }, "componentName": "sint dolor consectetur deserunt aliqua", "createdBy": null, "created": "2011-03-07T00:52:57.822Z", "lastUpdatedBy": "aliquip esse eu officia sed", "lastUpdated": "1961-02-04T03:19:30.946Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "cef638c792ca5a00b3f9c4df", "source": "velit", "topic": "ad", "_id": "42423c51cf105bbab76d1b77", "description": "Some helpful information about the document", "lastExecuted": 91483133, "migrationVersion": -47947227, "legacyWrapper": true, "createdBy": "exercitation aute dolor culpa sit", "created": "1977-01-03T20:57:07.03Z", "lastUpdatedBy": "tempor Lorem", "lastUpdated": "1999-07-04T18:52:09.235Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "5be710a6536041eebbbae687", "gbac": { "write": [ { "provenance": "localAAA", "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" }, { "provenance": "localAAA", "name": "admins", "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": "anim amet Excepteur exercitation Lorem", "created": "2017-03-17T19:00:40.858Z", "lastUpdatedBy": "cupidatat ut", "lastUpdated": "1945-01-14T03:00:51.99Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "d48b35a0940cb7efe961b676", "source": "do in", "topic": "sit laborum et officia", "schema": null, "_id": "eae9564f5b5c75eed7389f3f", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -21879278, "legacyWrapper": true, "createdBy": "esse consequat", "created": "2020-12-29T09:42:12.491Z", "lastUpdatedBy": null, "lastUpdated": "1972-04-30T07:12:33.484Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "ef57898f58e97eaf2d0673f2", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "dbc989516c9c502f82336fca", "formId": null, "description": "Some helpful information about the document", "lastExecuted": 52065374, "migrationVersion": 50201066, "createdBy": null, "created": "1998-11-09T14:21:36.226Z", "lastUpdatedBy": null, "lastUpdated": "1968-04-17T12:00:56.86Z", "formSchemaHash": null, "legacyWrapper": true }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "6bd95313d334a8253ddaf925", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "88b8653a3c3c29a77b2d66bd", "formId": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 35196805, "createdBy": null, "created": "2021-05-05T03:46:21.643Z", "lastUpdatedBy": "ut sed non Lorem", "lastUpdated": "1975-08-25T08:31:05.604Z", "formSchemaHash": null, "legacyWrapper": false }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "daa66d174522f28a1d0c2f2b", "verb": "POST", "routeName": "L2ReXyr4ds9", "schema": null, "_id": "2c67ed08b5660cfdbbba891a", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 12189309, "createdBy": null, "created": "2022-02-26T10:48:45.683Z", "lastUpdatedBy": null, "lastUpdated": "1978-12-13T03:11:41.092Z" } ] } ], "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 imported 3 of 4 documents", "data": [ { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "ucm_compliance_plans", "createdBy": "11ed0bd43f01627a253d39c8", "created": "1994-04-05T14:40:27.915Z", "lastUpdatedBy": "b1d12867a92c20ceae7a087b", "lastUpdated": "2013-01-11T19:37:33.368Z", "_id": "2fd58af673eff7cf73c533c0", "gbac": { "write": [ "9c698a1b853fe6362265a9ce", "bdddb4f9fe0af6888b40eede" ], "read": [ "1683a1b5a210f74aa20a65a2", "ab51fb0957c67f5a8f4c2e0d", "a261cd77590fe922db2eb4ff" ] }, "componentId": "C43d3636-84F5-5da5-6254-CEbb60FAc35e" } } ] }
{ "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" } } } ] } } } } } } ] }