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": "dbe154c6eb5b1516f21870cf", "gbac": { "write": [ { "provenance": "ldap", "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" } ], "read": [ { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "1965-09-10T02:35:42.394Z", "lastUpdatedBy": null, "lastUpdated": "2001-10-28T14:34:07.594Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "6b3d016c20d5d0dbd6ed31d8", "source": "nulla labore", "topic": "occaecat in et adipisicing exercitation", "_id": "4a6a65d1ae49c1099f5adb25", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 81684166, "migrationVersion": -94407401, "legacyWrapper": true, "createdBy": null, "created": "1990-10-23T16:18:34.505Z", "lastUpdatedBy": null, "lastUpdated": "1999-03-03T22:34:57.038Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "63114fe35eb9d5f13b0da463", "verb": "POST", "routeName": "DEw2NG", "_id": "44f2807625d1409adcb1f078", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -45593439, "createdBy": null, "created": "2020-06-04T14:48:51.907Z", "lastUpdatedBy": null, "lastUpdated": "1968-01-19T19:55:55.441Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "88ef6ebfbc0483b83a936fbb", "verb": "POST", "routeName": "U62Q", "_id": "dad77d2529b6ffc5d0477d3a", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 84495066, "migrationVersion": 88389791, "createdBy": null, "created": "1998-12-24T00:13:32.903Z", "lastUpdatedBy": "laborum irure", "lastUpdated": "1947-11-08T11:41:22.209Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "8aff51650fae34ecff8e2ad1", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "6b13024fca149c72c19a87cb", "formId": null, "description": "Some helpful information about the document", "lastExecuted": 56175121, "migrationVersion": -29148649, "createdBy": "nostrud", "created": "2017-04-03T17:27:58.213Z", "lastUpdatedBy": "qui", "lastUpdated": "1968-06-18T17:22:24.357Z", "formSchemaHash": null, "legacyWrapper": true } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "beecce192e76f7497a17bdf6", "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": "operators", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "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": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" } ] }, "componentName": "et magna proident esse Excepteur", "createdBy": null, "created": "1960-04-11T04:59:35.522Z", "lastUpdatedBy": "laborum et", "lastUpdated": "1967-01-11T07:52:05.73Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "436b9a9b0de1b80d5cd8e606", "verb": "POST", "routeName": "Rom", "schema": null, "_id": "fec7196458d71657ee10cdff", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -82860611, "createdBy": "eu tempor in culpa ea", "created": "1988-03-16T14:28:07.415Z", "lastUpdatedBy": null, "lastUpdated": "1978-01-31T07:37:40.829Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "6afdf26adb828b369255614f", "source": "dolore ut sint", "topic": "minim", "_id": "e2cc804a36246020c9fbf3bc", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 93584351, "migrationVersion": -78770452, "legacyWrapper": true, "createdBy": "in magna anim", "created": "1977-08-08T04:44:54.209Z", "lastUpdatedBy": null, "lastUpdated": "1976-02-19T09:12:49.422Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "9dcaf2c226e3154398a876ff", "verb": "POST", "routeName": "INIghq", "_id": "ea21307d16155ad7da8f75ad", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -40817923, "createdBy": "Duis et", "created": "1998-09-20T18:48:11.301Z", "lastUpdatedBy": null, "lastUpdated": "1969-05-24T17:18:12.712Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "50abcc6184bbe0b7084a240b", "gbac": { "write": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "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": "localAAA", "name": "designers", "description": "Description of a group" } ] }, "componentName": null, "createdBy": "labore ipsum consequat", "created": "1994-04-25T02:45:20.713Z", "lastUpdatedBy": null, "lastUpdated": "1950-08-05T13:14:41.363Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "2df3a20bf87472de2433ce01", "source": "Duis", "topic": "laboris et", "schema": null, "_id": "b1d292e2105137266fa860bb", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -42546788, "legacyWrapper": true, "createdBy": null, "created": "1989-03-14T13:04:44.871Z", "lastUpdatedBy": "occaecat in", "lastUpdated": "2007-04-06T15:29:33.261Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "d9259e31b36d9029a27ce464", "source": "dolore ullamco cupidatat", "topic": "minim dolore fugiat", "schema": null, "_id": "178977899c3c3e913a7dbd0a", "description": "Some helpful information about the document", "lastExecuted": 69223032, "migrationVersion": 11743136, "legacyWrapper": false, "createdBy": "minim", "created": "1961-03-14T21:21:45.025Z", "lastUpdatedBy": null, "lastUpdated": "1968-11-06T18:18:21.796Z" }, { "name": 84589187, "type": 26012588.181944102, "enabled": "esse elit deserunt sint", "actionType": 86975252, "actionId": 74123481, "formData": true, "firstRunAt": -27063978, "processMissedRuns": false, "repeatUnit": 16206957.648883507, "repeatFrequency": -61460788.996252716, "repeatInterval": 95611748, "_id": -28128931.913779497, "formId": -86693290.48922765 } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "e92b1294c3d97e82588e4453", "gbac": { "write": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "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": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" } ] }, "componentName": null, "createdBy": "dolor in minim", "created": "2015-01-06T09:58:43.482Z", "lastUpdatedBy": "aliquip minim", "lastUpdated": "1965-04-08T03:43:46.403Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "ed21bd9dccf7d60c4f346827", "verb": "POST", "routeName": "G-", "schema": null, "_id": "77a6b99a45fde8e13d9e6cbc", "description": "Some helpful information about the document", "lastExecuted": 24100705, "migrationVersion": -82299133, "createdBy": "laborum aliqua", "created": "1976-06-11T22:27:09.728Z", "lastUpdatedBy": "non magna sit velit", "lastUpdated": "1964-07-04T13:42:40.233Z" } ] } ], "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 created the requested item", "data": [ { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "ucm_compliance_plans", "createdBy": "Pronghorn", "created": "2003-11-20T09:17:31.438Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1960-09-11T09:01:50.732Z", "_id": "976836006ba0fc1495304b3b", "gbac": { "write": [ "557171323435562ab8f0b589" ], "read": [ "9c12161ecccbe85c12217b31", "3814d8c325b717e441a179ec", "68f7486946f5abc46d5df4e4", "ce1becc493cf610c53b5f064", "f1eb47dbf33a5540f14cc48a" ] }, "componentId": null } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "9344a03e8685eb1e6f6ace73", "created": "2006-06-02T06:18:29.162Z", "lastUpdatedBy": "44989175e74c6cd741b8c67e", "lastUpdated": "1983-02-01T22:45:40.498Z", "_id": "deab06508b122e47cb7b44c7", "gbac": { "write": [ "540468c0ab0772c3bd4c0399", "e6c3205165854a1057b45fb1", "ac7892175126dbd65df70750" ], "read": [ "7a65e1880fb8769409067f30", "53a76136a6345f30e8ba055d", "1605a4381a91a480e226b638" ] }, "componentId": "b8bcF8eC-C8bf-aC9C-5d46-bA318e4b0edB" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "5867a8122cf3766b6dfdf014", "created": "1969-09-12T19:18:29.539Z", "lastUpdatedBy": "af16eef20fb25b708be7f46d", "lastUpdated": "1960-12-18T17:30:16.133Z", "_id": "a8904362e122a475e90abb6f", "gbac": { "write": [ "a9e6a605855a70ece36ea7ee" ], "read": [ "72f9b77a8326c9acbd325d56", "eef81cca210bdd25d67a0939" ] }, "componentId": "709783c55f2df0688be566d8" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "Pronghorn", "created": "2019-04-24T07:05:43.126Z", "lastUpdatedBy": "65ad63796fef3188056f44f2", "lastUpdated": "2021-09-15T10:42:08.338Z", "_id": "31776a8d3730b46c4fe997e0", "gbac": { "write": [ "0eb5e269e50adf37ed268af6" ], "read": [ "439d91dec1122c34251885f4", "d276f54729e9e9e514008255" ] }, "componentId": "FC16dD7C-23cd-6e7f-08ef-EE470D9CAcEB" } } ] }
{ "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" } } } ] } } } } } } ] }