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": "6b8bb3a8c52b3d4554963a2a", "gbac": { "write": [ { "provenance": "localAAA", "name": "designers", "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": "designers", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" } ] }, "componentName": "sit", "createdBy": "consequat Lorem", "created": "2006-10-31T06:06:56.81Z", "lastUpdatedBy": "aliqua nulla laborum mollit in", "lastUpdated": "2010-10-25T18:49:53.18Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "100127bbb0e2c6e243362091", "verb": "POST", "routeName": "0nvlJVg", "schema": null, "_id": "77d97793db6313e0277063af", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 59765090, "createdBy": "qui ea", "created": "1990-09-10T00:20:56.502Z", "lastUpdatedBy": null, "lastUpdated": "1966-06-27T16:09:54.911Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "51acccbaf2fb3f0c13786de1", "verb": "POST", "routeName": "n40oK_Wysl7", "_id": "e665c962aab4d2594fd41926", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 64701822, "migrationVersion": 93835716, "createdBy": null, "created": "1969-05-03T19:33:32.211Z", "lastUpdatedBy": "reprehenderit", "lastUpdated": "1988-09-12T06:32:46.855Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "22fdebadcb2eb4d5c9e30866", "verb": "POST", "routeName": "iBw", "schema": null, "_id": "9235b6e98ebf268956f677ce", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 55544804, "createdBy": null, "created": "2003-03-22T03:18:20.885Z", "lastUpdatedBy": null, "lastUpdated": "1964-03-28T02:17:07.74Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "99ba3996e8ee08d55a155e14", "gbac": { "write": [ { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ] }, "componentName": "dolore ipsum occaecat Lorem labore", "createdBy": "id aliqua nulla non", "created": "2011-09-23T18:28:57.58Z", "lastUpdatedBy": null, "lastUpdated": "1977-01-25T22:24:05.274Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "f286418846cba64af2ebe77a", "source": "occaecat", "topic": "id sit cillum", "_id": "3e0f5c15991ccfcf0a780166", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 17918958, "migrationVersion": -8430016, "legacyWrapper": false, "createdBy": null, "created": "1957-10-14T06:17:42.654Z", "lastUpdatedBy": "est sed do", "lastUpdated": "1997-08-18T11:54:52.466Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "ucm_compliance_plans", "_id": "18529ff2ef068e9ed5cb8d43", "gbac": { "write": [ { "provenance": "localAAA", "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" } ], "read": [ { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" } ] }, "componentName": "Ut dolore", "createdBy": "aliqua anim", "created": "2021-07-04T23:08:06.321Z", "lastUpdatedBy": null, "lastUpdated": "1975-09-24T23:34:28.228Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "6220305e92fb118e6e15103c", "verb": "POST", "routeName": "eI", "_id": "bb8ed74aea713a701b5c9ee0", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 51042071, "migrationVersion": 54649889, "createdBy": "Excepteur pariatur in ut", "created": "2011-03-16T17:58:51.162Z", "lastUpdatedBy": "qui magna cupidatat anim commodo", "lastUpdated": "2014-11-30T03:05:25.201Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "d85c065915de78bfffb706a5", "gbac": { "write": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "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": "ldap", "name": "designers", "description": "Description of a group" } ] }, "componentName": "cupidatat", "createdBy": null, "created": "1957-10-02T14:21:32.285Z", "lastUpdatedBy": "dolore", "lastUpdated": "1961-06-12T21:03:24.509Z", "triggers": [ { "name": "fugiat dolor esse cillum elit", "type": false, "enabled": 58252636, "actionType": 74492137.84780699, "actionId": false, "formData": "laborum voluptate sed nulla sit", "firstRunAt": false, "processMissedRuns": true, "repeatUnit": false, "repeatFrequency": -49140361, "repeatInterval": -18001810, "_id": -3345482, "formId": -26777583 } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "ucm_compliance_plans", "_id": "c70e59c4ade127219820024f", "gbac": { "write": [ { "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": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" } ] }, "componentName": null, "createdBy": "do labore", "created": "1971-10-31T21:56:00.981Z", "lastUpdatedBy": "in sint", "lastUpdated": "1966-05-18T15:02:29.027Z", "triggers": [] } ], "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": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "ucm_compliance_plans", "createdBy": "Pronghorn", "created": "1950-12-08T16:37:42.089Z", "lastUpdatedBy": "fdbf16831f8a46c4eb9de299", "lastUpdated": "1984-11-18T11:02:30.731Z", "_id": "3dd77e75fa9b274d9d62a947", "gbac": { "write": [ "d92e53c3a7dfbf0408b670f9", "26219c2b4f36d1ac5982c166", "ab2ec3314c07a443d3ccc031" ], "read": [ "471db308d5c5d5cdc2f54347" ] }, "componentId": "5371387C-E559-cb42-675B-B735eCcB321d" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "ucm_compliance_plans", "createdBy": "49ca02c3e9703a113026b334", "created": "1982-09-18T16:58:17.69Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2016-07-24T10:01:50.125Z", "_id": "e0d8fea0e1246c525a9eaa0a", "gbac": { "write": [ "ee456ad74e81cb5bd8334384" ], "read": [ "4e3a7fa6067b5098fc94179a", "48722a5afae4552bdaa37c90" ] }, "componentId": "bed24ec09217f074d9146cbb" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "Pronghorn", "created": "2008-09-08T08:50:51.923Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2008-11-17T19:59:08.075Z", "_id": "94f75865bfc7a6764583abab", "gbac": { "write": [ "8fe666034f7f552bd0efeb1a", "080fafc2ac7b4d941cc7f188", "28cb4455847cfce3dd3bdeae" ], "read": [ "7869f90e2fc20f6721b03c70", "d716de4b9f1e07623f05c167" ] }, "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" } } } ] } } } } } } ] }