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": "ucm_compliance_plans", "_id": "2f2ce46d18108c32f4fb4129", "gbac": { "write": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "1962-09-21T00:22:17.795Z", "lastUpdatedBy": null, "lastUpdated": "1964-01-02T02:14:40.559Z", "triggers": [ { "name": "dolore occaecat non", "type": "enim", "enabled": "Ut enim nulla voluptate", "actionType": 81827433.00347722, "actionId": "esse Lorem", "formData": 54778838.715253025, "firstRunAt": 85566679, "processMissedRuns": true, "repeatUnit": -1974347.4539742619, "repeatFrequency": 37082400.95932317, "repeatInterval": 6256763, "_id": -80825495, "formId": -80652487 } ] } ], "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": "ucm_compliance_plans", "createdBy": "Pronghorn", "created": "1990-10-08T22:53:20.256Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2021-04-07T01:09:05.557Z", "_id": "f54502f88182aa2851cb0f7f", "gbac": { "write": [ "59256176a4e43e6311137abc", "f98c09b11fee5c48ef830b06", "af6bbc48810efedfedd5112e", "09980ca849ad8e6240c97550", "193fa7fc33a426ab220c50cb" ], "read": [ "036ab2281126d8f5d9e466d8", "809d0ab5a557a6e51352dcbd", "45c07fd4799a120270f7b8fd" ] }, "componentId": "DE79bB33-bC2D-027b-C392-Bfb8e9F1B6F3" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "cecb399f1862da192d1e60ad", "created": "1972-01-03T11:17:08.571Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1978-06-30T11:34:01.78Z", "_id": "1e6880e87925b51f272a1922", "gbac": { "write": [ "ac413872ca36f86c09327ffc", "3689b976e43bc7dd6c9ec483", "8cc2640d785ff777f7bc209a", "6c36bc62e8f2b57685531f4b" ], "read": [ "30bee71e9932a8732dcd3f3b", "4b5b87ffd04b8e46008461c4", "5b9d499ff1ef1d7049d31d55" ] }, "componentId": null } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "44ffcd94ea50c379e6643fa3", "created": "2009-12-26T23:42:21.03Z", "lastUpdatedBy": "8719eeb11cfe0f068229b368", "lastUpdated": "2000-01-07T14:12:38.117Z", "_id": "762cac6ebb9cbe628fea9697", "gbac": { "write": [ "2ebe031f78e828a57e24e6dd", "d01e02718c587320defac37a", "8c50d798b220ce0bfe0380f4", "b67dd5765176c613cc442215", "4494c11addd4a3d5f0c843f2" ], "read": [ "cadbe21b97977d4ac97c8013" ] }, "componentId": "2B3DeC22-eB6f-AC3a-cbB3-4DCED057A8dA" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "7105f7e23a78e936ee41c0bd", "created": "2023-06-23T16:56:21.097Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1964-07-17T23:27:01.154Z", "_id": "ad13209e6ee598c41409e147", "gbac": { "write": [ "51e3ce55b56893a77bfee58b", "964d01168535af22fede9ce6" ], "read": [ "cf6cfd6b3bea1b36bc483988" ] }, "componentId": "f31c85bd6661b031c8aef94e" } } ] }
{ "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" } } } ] } } } } } } ] }