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": "b4236bc63b7f2fc6d684b883", "gbac": { "write": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ] }, "componentName": "culpa", "createdBy": "ex elit consectetur officia", "created": "1965-06-17T23:48:20.888Z", "lastUpdatedBy": null, "lastUpdated": "1987-03-01T20:04:03.379Z", "triggers": [ { "name": -38554424.56791529, "type": "esse", "enabled": 40719920, "actionType": true, "actionId": 96986876.23100817, "formData": "veniam id tempor dolore", "firstRunAt": false, "processMissedRuns": 94828351, "repeatUnit": 69569105, "repeatFrequency": 43374899.34062448, "repeatInterval": 31996426.7722324, "_id": "magna laboris sunt est", "formId": -23149383.99155788 }, { "name": false, "type": 60348043, "enabled": false, "actionType": 14215899, "actionId": "veniam ut ad dolor", "formData": -32525951.580887467, "firstRunAt": -71113822.80503245, "processMissedRuns": "Lorem et adipisicing", "repeatUnit": "incididunt", "repeatFrequency": false, "repeatInterval": "amet", "_id": true, "formId": "adipisicing id tempor ullamco veniam" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "85867ec4dee0ad197182c0b1", "source": "nostrud nulla", "topic": "deserunt", "_id": "ca48736c1c3b1dfe79b3c173", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -78735626, "legacyWrapper": false, "createdBy": null, "created": "1953-12-24T18:21:33.779Z", "lastUpdatedBy": null, "lastUpdated": "1960-07-31T18:05:47.065Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "10694babeb440ed323127dc7", "source": "ullamco ut in ut", "topic": "ad ullamco fugiat voluptate", "_id": "78a55c35deafdf8022f237de", "description": "Some helpful information about the document", "lastExecuted": 10070400, "migrationVersion": 58861536, "legacyWrapper": true, "createdBy": null, "created": "2011-12-06T15:56:28.521Z", "lastUpdatedBy": null, "lastUpdated": "1969-04-28T03:42:56.225Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "18aef51347cd5fbf0f143f08", "source": "in elit aliqua aliquip sint", "topic": "ipsum ut", "_id": "b23834817e50f31434e7fb0f", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -6419746, "legacyWrapper": false, "createdBy": "enim cupidatat officia anim", "created": "1985-03-29T20:09:37.346Z", "lastUpdatedBy": null, "lastUpdated": "1967-07-19T13:11:32.526Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "ucm_compliance_plans", "_id": "c62270a08b7f4a29a659e263", "gbac": { "write": [ { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "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" } ] }, "componentName": "labore veniam occaecat", "createdBy": null, "created": "1992-03-13T22:11:36.728Z", "lastUpdatedBy": null, "lastUpdated": "2000-01-28T05:32:36.848Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "dc7eff7343426c4d37d1ca3f", "source": "labore eu enim commodo", "topic": "dolore ut sed elit", "schema": null, "_id": "8db995dcd91715d838058ab8", "description": "Some helpful information about the document", "lastExecuted": 15400299, "migrationVersion": -92111648, "legacyWrapper": true, "createdBy": "proident magna", "created": "1985-10-10T21:45:42.428Z", "lastUpdatedBy": null, "lastUpdated": "1964-04-01T21:58:09.556Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "7dd5d9873bff00eeef7adea4", "source": "laborum quis consectetur nostrud ullamco", "topic": "dolore dolore tempor eiusmod", "schema": null, "_id": "aa8169ab966bad3d5c7c1d6a", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -19454422, "legacyWrapper": true, "createdBy": null, "created": "1965-05-02T16:21:51.325Z", "lastUpdatedBy": "voluptate do dolore", "lastUpdated": "2011-03-05T03:07:31.011Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "d04f9691bfcc2219c177b2e0", "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": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "1996-02-11T14:46:36.427Z", "lastUpdatedBy": null, "lastUpdated": "2006-04-16T15:44:44.411Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "ca87013c363706ad598610bd", "verb": "POST", "routeName": "s--io", "_id": "28be666e86e00a2b84fbf542", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 86062991, "createdBy": "dolore", "created": "1971-07-31T00:02:58.948Z", "lastUpdatedBy": "sunt id consectetur", "lastUpdated": "2006-04-30T11:51:44.445Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "c97e27460526ec8f8a9d7167", "verb": "POST", "routeName": "agKNe5", "schema": null, "_id": "0e35dff1882d7b22e0f77f5b", "description": "Some helpful information about the document", "lastExecuted": 89371927, "migrationVersion": 37833674, "createdBy": null, "created": "1950-12-27T16:39:33.971Z", "lastUpdatedBy": null, "lastUpdated": "1999-08-17T22:16:06.671Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "ucm_compliance_plans", "_id": "e445181ac2bcffb31b361541", "gbac": { "write": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" } ] }, "componentName": "eu", "createdBy": "velit enim", "created": "1993-10-09T23:08:52.82Z", "lastUpdatedBy": null, "lastUpdated": "1960-10-26T04:24:38.996Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "d3208f48996297f05805e589", "source": "ut cillum sed", "topic": "adipisicing enim ipsum Excepteur", "_id": "a8202916c306469925338a14", "description": "Some helpful information about the document", "lastExecuted": 29909996, "migrationVersion": 39957498, "legacyWrapper": true, "createdBy": null, "created": "1966-07-18T07:37:59.64Z", "lastUpdatedBy": null, "lastUpdated": "1969-11-09T05:12:52.584Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "e76dcd44911e3a7382f9b476", "source": "sunt", "topic": "fugiat", "_id": "18f8179a2e899021174cfedf", "description": "Some helpful information about the document", "lastExecuted": 17538199, "migrationVersion": 4281635, "legacyWrapper": false, "createdBy": null, "created": "1983-03-17T01:19:40.31Z", "lastUpdatedBy": null, "lastUpdated": "2014-06-12T02:21:11.143Z" } ] } ], "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": "Pronghorn", "created": "1977-11-30T16:10:26.984Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1962-08-23T01:23:31.21Z", "_id": "fc6f004634f46b877f51bcc9", "gbac": { "write": [ "864b46544860fb216d983c29", "8a2bdd3b0d467886b837e087" ], "read": [ "7994023ba3f720933d92876e", "1bcd2bc14afb974eedb979e7" ] }, "componentId": null } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "Pronghorn", "created": "2004-11-28T05:40:26.456Z", "lastUpdatedBy": "c1c9191adcdbb67670a1c038", "lastUpdated": "2009-12-18T19:35:13.401Z", "_id": "f4f3ce8ef4475b2cd64d78b1", "gbac": { "write": [ "95a7d6b2cbbd667f19f105fb", "9e27f97172348764cb298aa2", "72e5ca3b3c3db135385bc782", "1d4be44f60757789699efada" ], "read": [ "2b11dbcb2defd30256e01cbd", "8a1551759879c503346a407f", "224b61d92a0de51b9f28c153", "7c9cbb4219531b5f11a12ca4", "59b3a5971f9ebaf6e7b149ec" ] }, "componentId": "8990ed9398ffcb49741c1493" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "0a6586c4da799eea680ca133", "created": "1973-09-20T08:22:57.44Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2002-01-16T01:10:59.962Z", "_id": "66d50bce0ced7a3c996b5284", "gbac": { "write": [ "410863f1429f5d21213c3aba", "e8a299ba46dccec90982579f", "6c949a83c2d23b17ac004a86", "0950273fed61bc213208f89e", "2af7cc5cc9a63bcc3fd29051" ], "read": [ "c7c2de052b5c6225abab5157", "27db2406b8d98a22b2381bec", "c1fc85d72a59b71094cdb313", "203ed1178834b839efa27fbc" ] }, "componentId": "5e50b84a2853067a17fa90ab" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "ucm_compliance_plans", "createdBy": "a5e916da29f229fe482c581c", "created": "2011-12-08T15:33:00.059Z", "lastUpdatedBy": "7a80b0dce5ac70e9a171e763", "lastUpdated": "1982-10-04T07:07:42.152Z", "_id": "79f68d101036d8161fdc0ea8", "gbac": { "write": [ "1e9506c16fb95a330b7a3d10", "ed55203f1096fd91d59fef97", "18b6e129581f7518181daee7", "e2f86143515a7ec6184722b9", "dae966909d94b41108017035" ], "read": [ "4cc87a305cfb72e0d703da79" ] }, "componentId": "6914e01e79d221bf09548483" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "Pronghorn", "created": "1948-02-25T06:13:42.154Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1962-06-13T10:53:12.72Z", "_id": "07193459b8c2a6715d7c22db", "gbac": { "write": [ "659fed567535b248d41d8c63" ], "read": [ "f125d9bf8257ec23368e96e3", "950d63ac332581388e782fce", "6cb676ee29b61e868067ffcb", "f6922a834cd3c52853cc1bda", "e5b04fbc449c035d12d06a86" ] }, "componentId": null } } ] }
{ "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" } } } ] } } } } } } ] }