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": "bd64a6dd0583da789c827232", "gbac": { "write": [ { "provenance": "ldap", "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": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "1976-05-28T09:03:10.772Z", "lastUpdatedBy": "officia dolor", "lastUpdated": "1964-12-29T07:05:31.061Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "1ff51ee67ce34e68b95001d2", "verb": "POST", "routeName": "rZrpI6OW", "schema": null, "_id": "b476bae27dc1e795ed7d3abd", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 16565358, "createdBy": "id esse cillum fugiat dolore", "created": "1972-01-03T04:17:15.111Z", "lastUpdatedBy": null, "lastUpdated": "1994-05-10T06:03:38.72Z" }, { "name": "sit est dolore deserunt aliqua", "type": 62476882, "enabled": true, "actionType": 73302053, "actionId": "non consectetur culpa aute", "formData": 31881378.431662768, "firstRunAt": false, "processMissedRuns": 21444926, "repeatUnit": "ut cillum quis esse", "repeatFrequency": -50497146, "repeatInterval": 44497483.420484185, "_id": "tempor proident", "formId": 73907637.8952192 }, { "name": "proident nulla", "type": 13967177, "enabled": 12332098.529131174, "actionType": 92418196, "actionId": true, "formData": 62017528.60288474, "firstRunAt": 34149383, "processMissedRuns": "ad aliqua", "repeatUnit": -52725700, "repeatFrequency": 49200640.332669586, "repeatInterval": 35340121.188868016, "_id": 89619547.39342582, "formId": "qui aliquip reprehenderit" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "f1edc5ff34d6b0da4d6ecf78", "gbac": { "write": [ { "provenance": "ldap", "name": "operators", "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": "localAAA", "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" } ] }, "componentName": null, "createdBy": "esse minim proident", "created": "1967-05-22T03:57:49.235Z", "lastUpdatedBy": null, "lastUpdated": "2000-12-08T04:44:38.998Z", "triggers": [ { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "baaf5ea406f5d611b01afe4f", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "8a9988186c2ec001c42f1c65", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 84299932, "createdBy": "exercitation", "created": "2004-07-11T07:47:59.039Z", "lastUpdatedBy": "ut veniam velit", "lastUpdated": "1945-03-30T19:02:50.299Z", "formSchemaHash": null, "legacyWrapper": true }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "d30dac34c3d802a0e1624eb7", "verb": "POST", "routeName": "tQL_1", "schema": null, "_id": "2b1c1ff3d8bc7e96172ae8ad", "description": "Some helpful information about the document", "lastExecuted": 84359167, "migrationVersion": -2191045, "createdBy": null, "created": "1979-06-04T10:38:19.283Z", "lastUpdatedBy": "culpa occaecat", "lastUpdated": "1991-10-03T10:31:50.771Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "543298db84473bcafaff003e", "source": "aliqua in est", "topic": "sit in irure", "schema": null, "_id": "0f70c3e3379378d376bcc098", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 48249480, "legacyWrapper": false, "createdBy": null, "created": "2024-03-29T09:45:49.983Z", "lastUpdatedBy": "anim sint", "lastUpdated": "1992-02-03T13:49:13.855Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "57af00307afc6d783ef9555c", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "0bd3b008434d62ad6f31d722", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -34744324, "createdBy": null, "created": "1954-02-09T06:42:56.036Z", "lastUpdatedBy": null, "lastUpdated": "1962-06-30T18:07:34.216Z", "formSchemaHash": null, "legacyWrapper": true }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "b701e3c0c2e5a85d7b37daa6", "verb": "POST", "routeName": "yMgLT0VSXJy", "schema": null, "_id": "9822632a812c12fa88ecc7aa", "description": "Some helpful information about the document", "lastExecuted": 43318662, "migrationVersion": -27988892, "createdBy": "laboris", "created": "1956-03-11T16:24:54.41Z", "lastUpdatedBy": "veniam aliqua", "lastUpdated": "1970-11-02T08:36:41.01Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "60a3d389a43d345ecb3fb3f7", "gbac": { "write": [ { "provenance": "localAAA", "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": "ldap", "name": "designers", "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": "localAAA", "name": "designers", "description": "Description of a group" } ] }, "componentName": null, "createdBy": "id aliqua est", "created": "1978-03-31T02:09:06.406Z", "lastUpdatedBy": "pariatur aliquip", "lastUpdated": "2003-03-01T20:07:37.95Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "db0d9e9b3dc3e0228cf3719a", "verb": "POST", "routeName": "0f", "_id": "a20caaedf905e38b402dd09f", "description": "Some helpful information about the document", "lastExecuted": 86781734, "migrationVersion": 2903914, "createdBy": "laboris est aliquip velit", "created": "2020-10-17T00:55:37.502Z", "lastUpdatedBy": null, "lastUpdated": "2016-12-14T09:30:16.211Z" } ] } ], "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 retrieved search results", "data": [ { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "Pronghorn", "created": "1987-01-03T07:54:14.288Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2014-08-28T02:48:56.236Z", "_id": "23306ff6e076f96fb23b2981", "gbac": { "write": [ "8ca79f5dfe1435b5536057ec", "8eca4d459789a56f45519a2e" ], "read": [ "11deec3e1dd7fe86eb0a8bfe" ] }, "componentId": "e60cda84-2fdc-4CaF-9bC1-ee98DEA0C3dC" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "9df1e708cecac984c6f9fdc4", "created": "1949-07-05T03:26:32.221Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2021-07-25T10:56:19.671Z", "_id": "346be6374faf5c27a06987d1", "gbac": { "write": [ "2d39b5c22d92655a0d518f1b", "352a34512eec10f707d5937c", "c1d4296aa3050c897fad2401" ], "read": [ "c1122c0cee7545eec07d4c8f" ] }, "componentId": "DC47724D-DEA8-BecF-D06C-06fDac312861" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "9263b0d8befc02eb69d80e97", "created": "1956-09-13T14:26:08.258Z", "lastUpdatedBy": "64eb8a4997d216047f7640d2", "lastUpdated": "1995-06-08T11:16:01.671Z", "_id": "0fd702082bf7261fb3db633b", "gbac": { "write": [ "5af15503846ef64606606ea8" ], "read": [ "c0bf4892a66229086bcac4bb", "d397abd7e53b1d7757271588" ] }, "componentId": "cb7cc54f86d12a3eeb2e7877" } } ] }
{ "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" } } } ] } } } } } } ] }