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": "bf2f7e1cefd28cd0eac3af31", "gbac": { "write": [ { "provenance": "ldap", "name": "operators", "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" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "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": "localAAA", "name": "designers", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "2000-02-16T23:05:36.449Z", "lastUpdatedBy": "veniam in labore sint mollit", "lastUpdated": "1979-10-19T10:16:00.655Z", "triggers": [ { "name": -27722700, "type": -31086638, "enabled": 40009794, "actionType": 11870316.94812344, "actionId": 95936227.99934009, "formData": -76942337, "firstRunAt": -92660013.88986132, "processMissedRuns": 42836746, "repeatUnit": -56623094, "repeatFrequency": -80073984, "repeatInterval": -23223117, "_id": -82005350.37357742, "formId": -2383463.8894019425 }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "bb818ee611e938e844c419ad", "verb": "POST", "routeName": "3MX_yA8Ee", "schema": null, "_id": "11efa956be3d3278122ddc0f", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -52746275, "createdBy": null, "created": "1958-04-11T10:01:57.623Z", "lastUpdatedBy": "anim proident do eiusmod non", "lastUpdated": "1993-11-01T20:59:25.212Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "7d818d96c6146cf4bfe1a8a8", "source": "reprehenderit dolore exercitation", "topic": "exercitation et aliquip pariatur", "_id": "10b4187c04eb452532859022", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 3232198, "migrationVersion": 49364945, "legacyWrapper": false, "createdBy": null, "created": "1998-11-02T19:20:31.03Z", "lastUpdatedBy": "aliquip laboris nostrud aliqua eu", "lastUpdated": "2022-11-02T15:08:34.719Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "be5002420cc1bc516e9351f6", "source": "ipsum voluptate", "topic": "aute laborum officia", "_id": "415cdfdff04c6ee1df877738", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -58494385, "legacyWrapper": false, "createdBy": null, "created": "1958-08-23T11:42:49.044Z", "lastUpdatedBy": null, "lastUpdated": "1954-08-16T14:01:07.884Z" } ] } ], "options": { "adapterMap": { "staging": "production" } } }
{ "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": "workflows", "createdBy": "20031a69118b9778b5939710", "created": "1945-09-17T11:44:57.953Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1957-04-24T09:29:26.867Z", "_id": "313dafc82c06363ba5bb6638", "gbac": { "write": [ "bcec8daa0cdcb1a11cd89b08", "87fabc02394741c75cc5a00e", "0b56a4f33600d5b2e5860835", "f09f578c6fa3fc65e694d7e1", "9ea4c955a15e08b9a5e0fc5a" ], "read": [ "2a91e0395b35ca145504d9de" ] }, "componentId": "" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "Pronghorn", "created": "1956-04-07T17:23:36.148Z", "lastUpdatedBy": "cdc1cd365982d878d22c4f6c", "lastUpdated": "2012-12-31T18:21:46.466Z", "_id": "70b2f768a0d1ed997892788f", "gbac": { "write": [ "6e2cca398379fb765c7b6b07", "8d353cbdbfc04736202af9be", "8287cd54636045d71631ceae", "3bbaf360b6afbf063a56b739" ], "read": [ "95ca29256d0eb1886cf89179", "3314ec2c47e3deb7c86abf9c", "9f979a604c96af92ba52555d", "713c235691f086539f0db0d5" ] }, "componentId": null } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "604dbb7ee17b16860fd7c642", "created": "1959-09-17T11:41:25.678Z", "lastUpdatedBy": "c0f06114864accb9ef91d064", "lastUpdated": "2021-06-25T03:32:01.475Z", "_id": "119a0d213ce451876fe98fa1", "gbac": { "write": [ "549c15e542d2407958228db2", "8700319b67ba2b36f5f115a4" ], "read": [ "f35c3d7f56711545513e681f", "a2368bb25b16fecb8185e9d9", "83c81d40afdda5fce298e16e" ] }, "componentId": "6acb98e59f890cb6dbc3525e" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "7e91dc712beae34f0f6e838a", "created": "1957-03-13T22:21:13.869Z", "lastUpdatedBy": "e062d8ca622fb6623d94d581", "lastUpdated": "1978-02-26T13:51:11.076Z", "_id": "f9d1bd93b9ae437e54d04049", "gbac": { "write": [ "4ffe96efae364f9d717e5a31", "781cc938fd84fee48404b49f", "1f9ff7e10d9705d69e584a00" ], "read": [ "b63afb05a2368903b379b644", "04ac738e69013fd9e0f80113" ] }, "componentId": "A1CfC647-0A8b-6977-3Ec5-b4fcB26485ce" } } ] }
{ "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" } } } ] } } } } } } ] }