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": "4c39c9fa15b28c4244bd48e7", "gbac": { "write": [ { "provenance": "localAAA", "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": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" } ] }, "componentName": null, "createdBy": "velit non", "created": "1987-02-10T20:44:56.707Z", "lastUpdatedBy": null, "lastUpdated": "2001-04-23T09:15:41.49Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "5479ba84df19a4efb66d11aa", "source": "incididunt deserunt", "topic": "veniam", "schema": null, "_id": "5e4bf405e47d89a8e49c1bed", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 52438742, "legacyWrapper": true, "createdBy": null, "created": "1980-04-26T19:04:34.768Z", "lastUpdatedBy": "cupidatat fugiat in ea", "lastUpdated": "1964-05-25T15:53:14.448Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "18511d54553b933a0f96d692", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "c0c73d03189a194bacad4db9", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": 47865223, "migrationVersion": 3393073, "createdBy": "commodo do irure et", "created": "1961-04-20T05:45:36.759Z", "lastUpdatedBy": "commodo", "lastUpdated": "1947-02-03T03:12:55.908Z", "formSchemaHash": "aute sint exercitation", "legacyWrapper": false } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "003871c3242ff2967e77d6ce", "gbac": { "write": [ { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "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" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "1962-09-17T02:37:27.3Z", "lastUpdatedBy": null, "lastUpdated": "1972-12-21T19:57:35.438Z", "triggers": [ { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "54da36ddf1e7cf7d518e1015", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "8d83170a4e727e39b5158162", "formId": null, "description": "Some helpful information about the document", "lastExecuted": 83321095, "migrationVersion": 24014692, "createdBy": null, "created": "1977-09-30T12:15:52.758Z", "lastUpdatedBy": "aliqua ut magna", "lastUpdated": "1974-07-04T03:53:46.095Z", "formSchemaHash": "qui ut incididunt", "legacyWrapper": false }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "4c3d62b502a30f3715703950", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "65fd036d338b491ccad30302", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": 77084988, "migrationVersion": 94366409, "createdBy": "enim ut irure anim", "created": "1972-09-06T11:23:44.744Z", "lastUpdatedBy": "Duis Lorem dolor", "lastUpdated": "1990-08-11T13:22:42.745Z", "formSchemaHash": null, "legacyWrapper": false }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "a6ffd473a8c8e36376cb76b3", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "7f1db7da7cd248f5f094d60d", "formId": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -51898263, "createdBy": null, "created": "2016-08-13T12:26:00.507Z", "lastUpdatedBy": "magna ad", "lastUpdated": "2024-01-26T03:45:23.762Z", "formSchemaHash": "cillum sint elit", "legacyWrapper": true }, { "name": 18516722, "type": false, "enabled": false, "actionType": 86933931, "actionId": 976353.731617868, "formData": false, "firstRunAt": -8817414, "processMissedRuns": -49533785, "repeatUnit": 46231569.34982911, "repeatFrequency": true, "repeatInterval": -61561820, "_id": false, "formId": 55596573 }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "ef3af16c2ca5bc4506820e55", "source": "dolore velit officia sint", "topic": "in", "_id": "07e003ddf9a5af026cd6482e", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 96793088, "migrationVersion": 4391773, "legacyWrapper": false, "createdBy": "amet ipsum", "created": "2001-03-08T18:41:29.697Z", "lastUpdatedBy": null, "lastUpdated": "2018-01-03T23:58:30.193Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "ucm_compliance_plans", "_id": "57a863c3230c9fe4b08afd96", "gbac": { "write": [ { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ], "read": [ { "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" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" } ] }, "componentName": null, "createdBy": "Duis sed in sit occaecat", "created": "1997-03-25T12:22:01.095Z", "lastUpdatedBy": "fugiat in esse et", "lastUpdated": "2012-07-31T22:22:42.322Z", "triggers": [ { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "235f66473687686778ea6186", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "bc0ba321f280df9bbccee803", "formId": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -17647716, "createdBy": null, "created": "1960-11-18T19:55:12.533Z", "lastUpdatedBy": "in ad", "lastUpdated": "1967-08-27T14:45:29.296Z", "formSchemaHash": "velit ea eiusmod", "legacyWrapper": true } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "eea417d58016ed56ebf457e7", "gbac": { "write": [ { "provenance": "localAAA", "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": "operators", "description": "Description of a group" } ] }, "componentName": "quis sint dolor", "createdBy": null, "created": "1986-04-27T21:21:38.087Z", "lastUpdatedBy": null, "lastUpdated": "1965-12-10T12:18:22.835Z", "triggers": [ { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "b3ea2b6f9a497a170ffe20b9", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "b1d9e033a9345a6603a4dca6", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": 52984281, "migrationVersion": -49879750, "createdBy": null, "created": "1998-12-15T06:34:02.96Z", "lastUpdatedBy": "commodo mollit do ex", "lastUpdated": "2004-08-19T05:39:35.026Z", "formSchemaHash": null, "legacyWrapper": true }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "9786cdd906b652b6df0a0efd", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "3401474f4a7865b1f0a4a881", "formId": null, "description": "Some helpful information about the document", "lastExecuted": 66215540, "migrationVersion": 83051240, "createdBy": "voluptate elit aliqua nisi", "created": "1985-11-18T05:52:05.334Z", "lastUpdatedBy": null, "lastUpdated": "1997-03-06T01:07:01.584Z", "formSchemaHash": "velit enim dolore in Ut", "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": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "0d73c7d4522eee3708ac6a0b", "created": "1963-04-17T19:48:26.519Z", "lastUpdatedBy": "75ad618bbb1437fa09cc86a5", "lastUpdated": "2003-07-11T11:59:38.697Z", "_id": "10fd52ad470fe8baa9c70176", "gbac": { "write": [ "e3842decbc05e9f0243a1bd8" ], "read": [ "915d23773b1542685bd5315c" ] }, "componentId": "" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "be69db72c93d50d8cb2ca9ce", "created": "1953-11-10T15:05:51.592Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1986-03-12T20:04:27.977Z", "_id": "5718a995eb8e647e3baf5774", "gbac": { "write": [ "868a6c57cf5a92e0ab05965a", "0fbb770e883686b1af8c5e5c", "f070420ab3555384a9e56e88" ], "read": [ "d7d43132e36075f2c9667e3b", "5c82df12cc1371cc96bebefd" ] }, "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" } } } ] } } } } } } ] }