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": "b372d08a51584e3c9c14bb59", "gbac": { "write": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "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" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ] }, "componentName": null, "createdBy": "officia irure mollit est", "created": "2016-08-25T06:38:41.446Z", "lastUpdatedBy": null, "lastUpdated": "1954-04-29T10:48:35.774Z", "triggers": [ { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "2c0df8ca2b67273075d2126c", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "4882dec603b76c29f3e3485e", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -55056149, "createdBy": "pariatur dolor sunt dolore", "created": "1999-03-19T12:08:34.302Z", "lastUpdatedBy": null, "lastUpdated": "1959-12-01T19:57:29.744Z", "formSchemaHash": null, "legacyWrapper": true } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "b07c7d622087d05b7c5e74b3", "gbac": { "write": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "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" } ], "read": [ { "provenance": "localAAA", "name": "admins", "description": "Description of a group" } ] }, "componentName": null, "createdBy": "et enim velit consequat", "created": "1999-02-16T23:44:57.553Z", "lastUpdatedBy": "reprehenderit dolor", "lastUpdated": "1983-09-05T16:49:30.062Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "4e0113326527a44035a8ae75", "verb": "POST", "routeName": "mUC0m4luM2", "_id": "6c6d8f947cdc225a0da35281", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 5900620, "migrationVersion": -92969490, "createdBy": "officia reprehenderit esse", "created": "1970-09-07T09:13:04.394Z", "lastUpdatedBy": null, "lastUpdated": "2022-10-23T16:23:16.883Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "d497a70fc62a248c7d6358b2", "source": "tempor ullamco aliqua cillum", "topic": "deserunt", "_id": "f9e7182360348e31f30aeba7", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 49834645, "migrationVersion": -87541508, "legacyWrapper": true, "createdBy": null, "created": "1999-06-18T21:32:02.816Z", "lastUpdatedBy": "elit cupidatat aliquip voluptate", "lastUpdated": "1972-10-26T15:31:24.992Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "6eedb7085348997a4d219e13", "source": "dolore ut", "topic": "in labore", "schema": null, "_id": "ab1206c433756b0456edad3c", "description": "Some helpful information about the document", "lastExecuted": 67543380, "migrationVersion": -40952527, "legacyWrapper": true, "createdBy": "non enim", "created": "1990-05-14T02:14:29.2Z", "lastUpdatedBy": null, "lastUpdated": "1969-09-20T15:14:45.591Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "ecab7ee750609d8294c6e7e2", "source": "Duis nisi", "topic": "irure in ut fugiat minim", "schema": null, "_id": "d71fcf483b1bf47b942bf3ed", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 30079374, "migrationVersion": -49381826, "legacyWrapper": false, "createdBy": null, "created": "1993-06-04T07:08:25.605Z", "lastUpdatedBy": "minim ut sit", "lastUpdated": "1965-06-01T22:22:52.737Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "ucm_compliance_plans", "_id": "2840f23d72ce83a870535ff4", "gbac": { "write": [ { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "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" } ], "read": [ { "provenance": "ldap", "name": "operators", "description": "Description of a group" } ] }, "componentName": null, "createdBy": "Excepteur sint Duis", "created": "1950-04-19T11:56:18.873Z", "lastUpdatedBy": "sunt Ut sint elit proident", "lastUpdated": "1951-11-19T11:15:36.159Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "74a789170aedb94575dcdf0c", "verb": "POST", "routeName": "BNvVx0", "_id": "ab445ab4ed58c46eb1302068", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 61699312, "migrationVersion": 9409075, "createdBy": null, "created": "1969-10-23T01:58:56.077Z", "lastUpdatedBy": null, "lastUpdated": "2009-01-01T12:24:02.905Z" }, { "name": -87374631, "type": 27950756.596606, "enabled": true, "actionType": -30554499.05477716, "actionId": 49590596, "formData": "ad", "firstRunAt": -19507432, "processMissedRuns": true, "repeatUnit": -1335946, "repeatFrequency": -58236271.46201433, "repeatInterval": true, "_id": "cillum laborum", "formId": -48579729.03361074 }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "9873c8ed514b4ebf78a39efb", "source": "non", "topic": "incididunt cillum fugiat proident", "_id": "fec00e55f7c90f18bf5820c9", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -61907011, "legacyWrapper": true, "createdBy": null, "created": "1979-12-23T16:35:43.303Z", "lastUpdatedBy": "consequat", "lastUpdated": "1982-12-22T12:14:52.106Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "3d93aa1c2e6a692c77e8e62a", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "285f14212dd631ed098539f6", "formId": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -96595400, "createdBy": "in deserunt", "created": "2003-10-19T04:41:28.118Z", "lastUpdatedBy": null, "lastUpdated": "1968-09-30T23:04:31.869Z", "formSchemaHash": null, "legacyWrapper": false } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "ucm_compliance_plans", "_id": "125e6a2024e630f42d8e6bdb", "gbac": { "write": [ { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ] }, "componentName": "in", "createdBy": null, "created": "2011-06-11T11:11:04.575Z", "lastUpdatedBy": "fugiat quis proident Lorem", "lastUpdated": "1948-04-29T23:46:28.467Z", "triggers": [ { "name": 81804917.86979046, "type": 36247445, "enabled": true, "actionType": 10935100, "actionId": true, "formData": "sed", "firstRunAt": "do dolore Duis Excepteur", "processMissedRuns": "deserunt nisi ut ipsum labore", "repeatUnit": false, "repeatFrequency": 16033969.651485294, "repeatInterval": -57377348, "_id": false, "formId": "sint Duis" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "80ff5a92792af2098698dea7", "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" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ] }, "componentName": null, "createdBy": "exercitation laborum sint do", "created": "1952-01-28T05:05:16.631Z", "lastUpdatedBy": "laborum in", "lastUpdated": "2012-09-30T16:48:34.962Z", "triggers": [ { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "13221aa60f8efa76279243f5", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "476aef5b3bebda071d87523a", "formId": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -49759442, "createdBy": null, "created": "1987-06-07T21:36:09.613Z", "lastUpdatedBy": "eu in fugiat Excepteur", "lastUpdated": "1956-03-04T14:17:54.322Z", "formSchemaHash": "Lorem occaecat quis ex ullamco", "legacyWrapper": true } ] } ], "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": null, "createdBy": "Pronghorn", "created": "2018-09-15T02:58:54.313Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2001-05-10T17:38:43.263Z", "_id": "47f5eabacbb46a6c19a75684", "gbac": { "write": [ "71badc20a64c770e8981574e", "08da6ac14c96047b22381023", "fc98efb7ab98893222273a5e", "c0dba430ec8469bb096b3c37", "5f64e27b54f0e5a9b82e3172" ], "read": [ "22fc07720e42795f7a3c6844", "b4b8a1c9f59b8608201f00d8", "2478c2a2f6bd8131b3f59665", "bafe89457d636231b409a7c8" ] }, "componentId": "Bd8F17de-623f-1dF4-dc80-D0dA047ABE8A" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "9c82cb3dee1491938c4d31fb", "created": "1996-09-20T18:17:03.427Z", "lastUpdatedBy": "d52aebfa5923163be02e42fc", "lastUpdated": "1983-06-04T22:01:55.33Z", "_id": "68066381c12e8c4c03285974", "gbac": { "write": [ "0251693ac4757fcf101304ec" ], "read": [ "4f1f47d5c8900e151147693a", "d3675183887a0979a352b6dd", "cb753754b8f3e92296b10f15", "1cc7005a389222d89c514ca7", "965ef5204f54ab4a28643b4c" ] }, "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" } } } ] } } } } } } ] }