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": "de758dc04dc609cf5fce5e03", "gbac": { "write": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "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": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ] }, "componentName": "sunt in tempor", "createdBy": "ut mollit irure laboris ea", "created": "2023-09-03T23:13:55.463Z", "lastUpdatedBy": "minim adipisicing tempor qui cupidatat", "lastUpdated": "1987-06-21T21:03:26.011Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "8f444122a9abd91c12ff4a3c", "source": "reprehenderit nostrud", "topic": "pariatur dolore voluptate", "_id": "324f992cffc5947ce6154f20", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 55718584, "createdBy": null, "created": "1957-10-06T23:14:22.494Z", "lastUpdatedBy": null, "lastUpdated": "1989-11-03T07:25:57.443Z" }, { "name": true, "type": "ut nostrud", "enabled": 54316357.64014846, "actionType": 29776887.97677836, "actionId": "in in cillum aliqua mollit", "formData": -36850982.72062048, "firstRunAt": "do aute ad dolore nostrud", "processMissedRuns": false, "repeatUnit": false, "repeatFrequency": -87666958.47739658, "repeatInterval": true, "_id": "in enim", "formId": false }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "fb2bec5e3dba38c533c10c4f", "source": "eiusmod nisi proident enim", "topic": "nulla", "schema": null, "_id": "7045a3889b8328f3b473bf6e", "description": "Some helpful information about the document", "lastExecuted": 79007357, "migrationVersion": -39661387, "createdBy": "fugiat sunt commodo ex", "created": "2005-05-13T00:25:44.622Z", "lastUpdatedBy": null, "lastUpdated": "1968-02-20T20:52:06.102Z" } ] } ], "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 retrieved search results", "data": [ { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "Pronghorn", "created": "1963-09-03T01:13:52.557Z", "lastUpdatedBy": "031d171b3e2f92b33ac7bd78", "lastUpdated": "1981-05-08T19:51:45.828Z", "_id": "157e7b1bf4925b8b9b447019", "gbac": { "write": [ "0ccfb89a02b1bbf48e935696", "425c8edfb0064ec3aa6b38ae" ], "read": [ "346a9cbe5471f9065d367f7e" ] }, "componentId": "" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "9915322b796419f2f73ba06f", "created": "1996-01-24T04:47:41.525Z", "lastUpdatedBy": "4748a8238ad53ca2ba2fcc24", "lastUpdated": "2014-07-16T23:13:51.703Z", "_id": "5712b798f68a50a29a7f30a8", "gbac": { "write": [ "7756c5a14364f7c955b11aab", "055baa2c57d49eba4de0546b", "15cc0aafc1c51329860f7def", "34cd8763766b55cf0819f866", "ea9bc547b5860012b94449a4" ], "read": [ "609c7262e9fdd952152d9bda" ] }, "componentId": "5307Aa8D-81D9-B64f-0Cc4-AA67Bdd5fcE7" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "775a750bed7dfd7b5601cea4", "created": "1972-05-16T07:20:05.101Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2004-06-28T10:59:04.813Z", "_id": "3482bc77b1cf3f61bbb84b87", "gbac": { "write": [ "98454be9a74891f1c1690609", "ae2c6a0ffe6c22209d00b44a", "96690aa0b6246a1923f61135", "a51a8c768a7c208e147d0be2", "efdecc799a8bcf30175f7f02" ], "read": [ "e39516a65e5aceecdd791d34", "334b54d7824c456f78b29f26", "6b7199fbd16d1f530f3623db" ] }, "componentId": "b0Cc054a-1F55-dC3b-5530-feF85C09Fa91" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "Pronghorn", "created": "1996-10-27T17:00:33.427Z", "lastUpdatedBy": "6d11a3161f314d6c55d0a170", "lastUpdated": "1997-04-22T13:15:37.098Z", "_id": "c13bea27005dd1e19eed8479", "gbac": { "write": [ "2cfef9cfac7c453e12f6c935", "dd7b389c824ba60ffda6662d" ], "read": [ "1102dd23ab14ea0abd2830d9", "cc2ec2116e89721af29a773a", "ba8b998e8ff5c6c0e0e2af53" ] }, "componentId": "59af48490cf73b90aafdc633" } } ] }
{ "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" } } } ] } } } } } } ] }