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": "91724d14a026f2e91af16a4d", "gbac": { "write": [ { "provenance": "ldap", "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": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "admins", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "1973-02-18T05:34:09.812Z", "lastUpdatedBy": null, "lastUpdated": "2019-07-13T06:37:12.085Z", "triggers": [ { "name": 82987124, "type": false, "enabled": false, "actionType": "exercitation", "actionId": 70465541.28448555, "formData": false, "firstRunAt": 16118963, "processMissedRuns": -68407176, "repeatUnit": "Lorem esse exercitation reprehenderit labore", "repeatFrequency": "dolore adipisicing eiusmod", "repeatInterval": false, "_id": false, "formId": true }, { "name": "id qui", "type": 29647230, "enabled": -17720522, "actionType": -1816543, "actionId": "officia", "formData": 20852054.39181386, "firstRunAt": 36966049.36737552, "processMissedRuns": "exercitation sit elit", "repeatUnit": 72208191.76743999, "repeatFrequency": "magna aliquip veniam eiusmod nisi", "repeatInterval": 53811128, "_id": 91014139, "formId": 25523497.9969019 }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "8cc1e7e594e303b8c49afa5b", "source": "commodo sed sint", "topic": "elit laboris velit", "schema": null, "_id": "e15f627553bc8dd9c99c6271", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -23653184, "legacyWrapper": true, "createdBy": null, "created": "1967-12-27T05:03:49.193Z", "lastUpdatedBy": "in id ipsum anim", "lastUpdated": "2023-05-01T12:45:47.755Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "d0ab2f3a00be14d63e3def0a", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "a5cbf35dfc093f12c71dfe4a", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -30346059, "createdBy": "dolore commodo", "created": "1999-03-01T06:09:32.715Z", "lastUpdatedBy": "occaecat anim", "lastUpdated": "1992-02-13T20:20:28.062Z", "formSchemaHash": null, "legacyWrapper": false } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "2d2097d83135b248fd8ba736", "gbac": { "write": [ { "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": "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": "admins", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "1948-01-30T01:43:13.093Z", "lastUpdatedBy": "pariatur", "lastUpdated": "1996-09-03T21:11:37.533Z", "triggers": [ { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "7c78e6c4d8c0a904c2563490", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "b7e595d8c8599759c8eef02e", "formId": null, "description": "Some helpful information about the document", "lastExecuted": 69335504, "migrationVersion": 80304895, "createdBy": "Ut", "created": "1977-05-26T05:57:44.646Z", "lastUpdatedBy": null, "lastUpdated": "1962-10-19T19:32:15.296Z", "formSchemaHash": null, "legacyWrapper": true } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "8338939cb55b0a3b2f4a7eb5", "gbac": { "write": [ { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "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" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" } ], "read": [ { "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" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "1966-01-04T13:04:25.695Z", "lastUpdatedBy": null, "lastUpdated": "1965-02-25T10:27:41.64Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "a7b51650394e27c7df1ecb47", "verb": "POST", "routeName": "R2298I5gr", "_id": "102bbea829ab8433369a8c9a", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 37063573, "migrationVersion": -58835330, "createdBy": null, "created": "1976-04-07T11:15:56.596Z", "lastUpdatedBy": null, "lastUpdated": "1982-03-13T12:04:15.01Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "407d26dcd44f6a230caed600", "verb": "POST", "routeName": "14xFNkRX", "schema": null, "_id": "8296da0811c06f31a10f3b18", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -33367933, "createdBy": null, "created": "1969-10-10T09:41:11.667Z", "lastUpdatedBy": "Excepteur sunt ut quis", "lastUpdated": "1946-06-01T02:06:19.793Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "be9e3d8afdb7e2d600bc1417", "verb": "POST", "routeName": "U3_A", "_id": "30bad6cc8db65b5160721ff4", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -61146822, "createdBy": null, "created": "1972-01-15T03:45:49.273Z", "lastUpdatedBy": "Excepteur aliqua adipisicing", "lastUpdated": "1968-01-29T06:15:40.606Z" } ] } ], "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": "workflows", "createdBy": "4719d7e1cc34eefb3f192640", "created": "1958-08-15T10:30:12.549Z", "lastUpdatedBy": "09148d0a59ae5bffb8f93526", "lastUpdated": "1955-02-16T11:13:55.984Z", "_id": "8b47ab55cae67b6fa86bc6f2", "gbac": { "write": [ "d6c2fa29baa9670e9d52b30e", "6d314d86111ed35c08caad31", "7c22d60e9262fecd20267622", "04b402dbc084b10e20988c4e", "54db674f9ed028a7825efe9d" ], "read": [ "4972ad3dfd9332b9a13ea74b", "544f3d73d804b37db2879d46", "eb9f96c56ca176de1e20ab28" ] }, "componentId": "AD33Df7a-7745-C191-2Bee-0370dFCcF48F" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "b1f14ec348403b897fc4d526", "created": "1968-07-29T02:16:23.52Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2019-01-23T19:37:34.088Z", "_id": "0b6e9f37894bf9fdda207242", "gbac": { "write": [ "61e39d6e3669f3913010f123", "fb2649f9eb47ad3a7afd157b", "567191be0217587007e130e6" ], "read": [ "fdf7904a462583266cd193c6", "bff0335d70e09e860829d601", "d45274e8310e484a7c3b1785" ] }, "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" } } } ] } } } } } } ] }