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": "d635112cdb56ef79fd2bb316", "gbac": { "write": [ { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "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": null, "created": "1958-02-08T19:36:33.46Z", "lastUpdatedBy": "ex", "lastUpdated": "2012-01-26T18:57:13.408Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "7b4c711ba62cfb3151d9d921", "source": "Lorem consequat cupidatat", "topic": "cillum consequat", "_id": "282e48e2f8db5a0888ce11c5", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -39667120, "legacyWrapper": true, "createdBy": null, "created": "1984-06-26T03:47:15.925Z", "lastUpdatedBy": "est exercitation nulla ut", "lastUpdated": "1985-01-23T22:00:24.951Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "56628bf82838b06b3ddcfc48", "gbac": { "write": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" } ] }, "componentName": "incididunt aute do est", "createdBy": "reprehenderit", "created": "1961-12-13T13:42:44.553Z", "lastUpdatedBy": null, "lastUpdated": "1979-11-03T22:01:17.142Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "78e9535680226847f205c1fb", "source": "in incididunt consectetur cillum sint", "topic": "Lorem mollit", "_id": "1a2470731bbe212332bf3d56", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 41518871, "migrationVersion": 29159956, "legacyWrapper": false, "createdBy": "et sint veniam", "created": "2015-05-14T06:24:39.515Z", "lastUpdatedBy": "amet incididunt", "lastUpdated": "2011-09-25T03:38:22.382Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "e0b1be537908b94355d7af80", "source": "nisi ullamco", "topic": "aliqua elit magna", "schema": null, "_id": "0b876d42357e44b3d79679d5", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 83407340, "migrationVersion": 70774656, "legacyWrapper": true, "createdBy": "exercitation cupidatat eu nisi", "created": "1971-06-06T03:42:19.077Z", "lastUpdatedBy": null, "lastUpdated": "2020-01-09T10:23:03.702Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "1772808c3f1ae714d9775e1a", "verb": "POST", "routeName": "_", "schema": null, "_id": "8d3d9d14bf50a5a085bb3a76", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 91975814, "migrationVersion": -9690067, "createdBy": "esse adipisicing", "created": "2009-05-30T00:17:13.097Z", "lastUpdatedBy": null, "lastUpdated": "2022-09-14T05:36:08.333Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "a02016f835f99d06d5498efa", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "7847676e92ef579311e58b56", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": 63918357, "migrationVersion": -18243073, "createdBy": "quis aute anim est", "created": "1976-02-03T08:37:19.152Z", "lastUpdatedBy": "velit dolor", "lastUpdated": "1955-03-14T10:03:12.577Z", "formSchemaHash": null, "legacyWrapper": false } ] } ], "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": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "86ad6479a7a884498f6c0e7d", "created": "2003-04-04T23:07:44.269Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2008-04-11T11:04:20.783Z", "_id": "4f389aa46643633a71a1d3de", "gbac": { "write": [ "2fad6520c502e0d94ae83a68", "93cdf62886fe91a562bc3660", "dcbdffdfe9520bcee5e39346" ], "read": [ "5ec18ecd22d964a7a15a1e28", "c290cc230e12081a257d7c2c", "c8d6a5b6bb8b3ea81327fd52" ] }, "componentId": "" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "Pronghorn", "created": "1968-10-15T19:00:20.487Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2021-06-29T19:46:16.227Z", "_id": "2e7d7ba9cfa4398496500d42", "gbac": { "write": [ "e11062f403d55758302555dd", "0d5cf0c26b5555f7b8f21a08", "c1721a7caa59bce6584780ae", "11ae26a5d0863852cfeeb8ab" ], "read": [ "b66d1fbe3102362d20988602" ] }, "componentId": "" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "6238429c5b8ecfb3de111d7b", "created": "1964-09-28T10:58:12.366Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1958-09-28T00:27:14.413Z", "_id": "05b0ada57ec4445870af5922", "gbac": { "write": [ "b098f38ca3cf097308ef8ff5" ], "read": [ "c597d8c8498f0a32148fa8c4", "2c69a44a4ae3177e4bc61bbc", "4f164c14debe083f9b4161d9" ] }, "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" } } } ] } } } } } } ] }