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": "8bf245f6c6622985fd494c4e", "gbac": { "write": [ { "provenance": "localAAA", "name": "designers", "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": "ldap", "name": "admins", "description": "Description of a group" } ] }, "componentName": null, "createdBy": "dolor", "created": "1987-07-14T12:46:22.417Z", "lastUpdatedBy": null, "lastUpdated": "2019-10-24T17:11:50.405Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "35060601311a8275da7a6d3e", "source": "voluptate dolor nisi adipisicing sint", "topic": "ullamco sit voluptate", "schema": null, "_id": "2820e9777de8c93562685df8", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 94094979, "migrationVersion": 28920214, "createdBy": null, "created": "1974-06-19T21:48:02.94Z", "lastUpdatedBy": "fugiat", "lastUpdated": "1993-08-15T03:34:09.411Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "0d1505bdaed0854a295d15c0", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "1f3260de041c139c2239eba3", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": 24674207, "migrationVersion": -98913797, "createdBy": "adipisicing id aliquip occaecat ut", "created": "1983-10-29T02:50:55.094Z", "lastUpdatedBy": null, "lastUpdated": "2022-03-12T21:46:27.922Z", "formSchemaHash": "tempor fugiat" }, { "name": true, "type": -67804764, "enabled": 20309840.59740977, "actionType": true, "actionId": "dolor culpa consequat minim do", "formData": "deserunt cillum elit Duis", "firstRunAt": true, "processMissedRuns": true, "repeatUnit": -42818194, "repeatFrequency": "ea est sit deserunt cupidatat", "repeatInterval": -34842052, "_id": -15758879.334644556, "formId": -81727576.34368578 }, { "name": -49376870.54501709, "type": -27145287, "enabled": 22534492.350159988, "actionType": "exercitation dolore", "actionId": -59869467.10903443, "formData": -20507251.37148848, "firstRunAt": 61577137.76746547, "processMissedRuns": 87525719.02958372, "repeatUnit": 78147685.73035699, "repeatFrequency": "culpa ut ea", "repeatInterval": 92051976.1055631, "_id": "ut aliqua", "formId": 63980050 }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "b5a118f821f5625309fcc330", "verb": "POST", "routeName": "F_Rvzxq6y", "schema": null, "_id": "752f62e3414828fce2a71031", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 51056923, "migrationVersion": -97095840, "createdBy": "ea Lorem magna qui", "created": "2010-04-24T04:10:55.323Z", "lastUpdatedBy": null, "lastUpdated": "2017-07-17T01:21:44.386Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "254ace199c6acb7b045b45f3", "gbac": { "write": [ { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "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": "designers", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "operators", "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": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ] }, "componentName": "eu laborum esse et", "createdBy": "eu sunt aute ex ipsum", "created": "2005-10-23T10:21:44.939Z", "lastUpdatedBy": null, "lastUpdated": "1990-08-17T22:24:04.116Z", "triggers": [ { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "561420dc8ea8cb6133ceca95", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "4c21e5731c433a2cf5adb574", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": 36424081, "migrationVersion": 57366648, "createdBy": "sit mollit occaecat", "created": "2003-12-13T13:57:14.019Z", "lastUpdatedBy": null, "lastUpdated": "1963-10-20T20:45:00.574Z", "formSchemaHash": "commodo" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "3043b2aee53ae11e82bf4a82", "verb": "POST", "routeName": "-I_YgM8", "schema": null, "_id": "a77cd711f1b80af419667e94", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 40163138, "createdBy": "do aute nulla", "created": "2021-08-26T14:58:50.23Z", "lastUpdatedBy": "consectetur", "lastUpdated": "1959-07-17T17:35:33.909Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "be40cc6d67c7b544e925af20", "verb": "POST", "routeName": "f8rFaKdPW2c", "_id": "87a74758e0392a056f9a6fd5", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -89299949, "createdBy": "adipisicing dolor eiusmod", "created": "1963-02-06T16:26:51.525Z", "lastUpdatedBy": null, "lastUpdated": "2016-06-16T06:57:10.0Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "9b5e5bcf2eb6b5be30de83d0", "gbac": { "write": [ { "provenance": "ldap", "name": "operators", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "2000-10-06T12:46:56.179Z", "lastUpdatedBy": null, "lastUpdated": "2000-04-15T03:05:26.136Z", "triggers": [ { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "3650b7432e6ddc4d20e87243", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "f7ebd9fd241906ac2593d41d", "formId": null, "description": "Some helpful information about the document", "lastExecuted": 41919699, "migrationVersion": 19095053, "createdBy": null, "created": "2011-12-08T04:38:50.675Z", "lastUpdatedBy": "commodo fugiat", "lastUpdated": "1949-01-05T14:49:59.971Z", "formSchemaHash": null }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "fb99938fe3abaee9fc21e686", "source": "id", "topic": "dolore esse", "schema": null, "_id": "7ad6c86bb35502e4a228af20", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 88009512, "createdBy": null, "created": "1947-03-02T10:24:39.866Z", "lastUpdatedBy": "labore ut occaecat elit", "lastUpdated": "1945-02-05T10:24:29.118Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "2a8bd30726a0b1f4560f47bf", "gbac": { "write": [ { "provenance": "ldap", "name": "admins", "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" } ] }, "componentName": null, "createdBy": null, "created": "1951-06-05T16:03:39.189Z", "lastUpdatedBy": null, "lastUpdated": "1950-05-03T02:54:30.395Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "28f26416c33e6a513e0ffd4d", "verb": "POST", "routeName": "mr7MnDGtboc", "_id": "d27c55d195d051c951904756", "description": "Some helpful information about the document", "lastExecuted": 62471943, "migrationVersion": -11898709, "createdBy": null, "created": "1978-03-29T03:35:17.286Z", "lastUpdatedBy": null, "lastUpdated": "2023-09-04T04:58:07.841Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "ea8258d437364cbe0b58a92b", "gbac": { "write": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "1984-06-27T18:27:16.856Z", "lastUpdatedBy": null, "lastUpdated": "2013-06-09T01:20:52.067Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "969bd3c5719e72699f71ad77", "source": "sint id ut deserunt pariatur", "topic": "Excepteur", "_id": "a9ac068a476f227747f6a8e5", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -97427276, "createdBy": null, "created": "2016-06-07T00:43:42.22Z", "lastUpdatedBy": null, "lastUpdated": "1973-04-21T16:46:26.051Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "6dd1b2ae9d6b3744387ca125", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "67575a45e9605879ee92e7d6", "formId": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 83085414, "createdBy": "Ut laborum dolore eiusmod in", "created": "1950-02-07T02:13:41.615Z", "lastUpdatedBy": null, "lastUpdated": "1999-03-17T09:45:15.759Z", "formSchemaHash": "anim" } ] } ], "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 imported 3 of 4 documents", "data": [ { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "7c7768371c87051caccf0647", "created": "1972-12-22T05:41:08.705Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1954-02-04T09:29:37.088Z", "_id": "98cb3b6f6e95d161623268f5", "gbac": { "write": [ "2a7d7c4416951ec3d40862c4", "1b1eac6f9eab6b9fff04a890", "cdce808257d9648e99ce4d67" ], "read": [ "67fa2acc3e7c774392e2100f", "250631c26edc585caa339bf0", "41eaf1711836fcdbaa9bd03f" ] }, "componentId": "3e7E8840-6970-6a4E-fA4C-3a777a90efe2" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "Pronghorn", "created": "1989-05-18T22:30:50.307Z", "lastUpdatedBy": "6b1c6f302bfb486945abf7e8", "lastUpdated": "2009-07-20T04:23:51.147Z", "_id": "737d3921b4610ace741977d4", "gbac": { "write": [ "e0054a4ad580a3573840f296" ], "read": [ "c8d92f4dfcdc68e6a51a0e9c" ] }, "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" } } } ] } } } } } } ] }