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": "1267604c2d80a03fc7a71a23", "gbac": { "write": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "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" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" } ] }, "componentName": "in", "createdBy": "reprehenderit quis incididunt", "created": "1996-03-13T10:27:07.537Z", "lastUpdatedBy": null, "lastUpdated": "2007-07-06T11:06:10.515Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "1ea704260508d5e7dec3d730", "verb": "POST", "routeName": "abcW", "schema": null, "_id": "456896a06a482ace69ac04ec", "description": "Some helpful information about the document", "lastExecuted": 42244090, "migrationVersion": 91160147, "createdBy": "dolore reprehenderit irure sunt Duis", "created": "1948-09-23T18:06:09.362Z", "lastUpdatedBy": "ut reprehenderit minim proident", "lastUpdated": "2009-08-23T06:12:40.756Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "6a16ce35671e17046d3eedcb", "source": "Ut Lorem sunt", "topic": "ut", "_id": "67f016e5997a85797020c46e", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 56093774, "migrationVersion": 56756038, "legacyWrapper": true, "createdBy": "cupidatat", "created": "1983-04-04T16:57:44.623Z", "lastUpdatedBy": "in fugiat", "lastUpdated": "1955-03-17T20:41:15.881Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "c043926b4cc6fafb6c808fd5", "source": "dolor", "topic": "in dolor eiusmod culpa", "_id": "f238df35420f8837a4810922", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 89307625, "migrationVersion": -89137685, "legacyWrapper": false, "createdBy": "esse eiusmod sunt id Excepteur", "created": "1989-07-18T17:41:54.503Z", "lastUpdatedBy": "sit incididunt officia in dolore", "lastUpdated": "1982-03-22T17:24:41.737Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "0376f16a9aa74dad28feed70", "source": "ullamco culpa", "topic": "sit aliqua ex proident ut", "schema": null, "_id": "9216186f695059c426a72915", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 60639363, "migrationVersion": 31425975, "legacyWrapper": false, "createdBy": null, "created": "2012-09-04T00:21:42.681Z", "lastUpdatedBy": "nisi", "lastUpdated": "1997-03-12T03:37:21.419Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "775504edf3cec5d07c8cda1e", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "131d37bf7a361ffd08329dc7", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": 25006698, "migrationVersion": -22417985, "createdBy": null, "created": "1946-02-10T01:15:59.235Z", "lastUpdatedBy": "exercitation sit fugiat", "lastUpdated": "1977-01-13T13:27:52.175Z", "formSchemaHash": null, "legacyWrapper": true } ] } ], "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": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "c0fd5069eb4b6a6539784a81", "created": "1960-06-20T21:16:23.743Z", "lastUpdatedBy": "08530dc10fc52ac1919342d8", "lastUpdated": "1953-03-16T13:47:34.38Z", "_id": "c7f093607f9e110e04e273e4", "gbac": { "write": [ "fdfd5bf4492bafd579ca7721", "a90fa6063561886333c157f3" ], "read": [ "cc933f83e955d456d1a87d52", "b1038617ce259b52683bcc78", "de3d5d986d85c08e853695ae", "f620e5cf183febd8986bbf91", "a24634496b1fce9910ace4c0" ] }, "componentId": "A60D24bd-dAfa-B779-F5C7-f33AE546BFC4" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "Pronghorn", "created": "1969-01-25T11:14:36.083Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1956-10-25T08:17:48.788Z", "_id": "22a13a3236913753acbebc1b", "gbac": { "write": [ "8105fd7ec8fab4942de0c40b", "112484ee717102962d196f8d", "2286e858b4b4afe80c5c492d" ], "read": [ "c2760022730b79062621b6f0", "93948934de4da9c8a8e22c5a" ] }, "componentId": "" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "Pronghorn", "created": "1956-10-13T01:48:43.427Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2012-07-02T17:21:46.77Z", "_id": "32e0943d4ebdf7e1c4e4d8aa", "gbac": { "write": [ "f1f1e9ada7c134746253e56d", "ef9d1ce5c4b5cca91c5dc795", "6248a70c030bdca21cc2f293" ], "read": [ "1262c5442e054e6f4662676a", "409f0bd304c80b1dd35e0e28", "1d1153b95f19f3b41be6e967" ] }, "componentId": "Ba965aCb-E23E-fe9c-6DbF-BeF88D8E34dd" } } ] }
{ "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" } } } ] } } } } } } ] }