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": "6f302e95c490b59726bc1b82", "gbac": { "write": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "1945-08-04T12:31:08.915Z", "lastUpdatedBy": null, "lastUpdated": "1951-01-16T12:09:29.837Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "0bef991fc96390e3a3b7a935", "source": "cillum exercitation", "topic": "in in Duis ut amet", "_id": "fbc12915534385de82bfaef9", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -34050180, "legacyWrapper": false, "createdBy": null, "created": "1993-01-25T18:21:24.516Z", "lastUpdatedBy": null, "lastUpdated": "1950-06-24T16:38:30.531Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "ucm_compliance_plans", "_id": "703b79a3d317d785891e0311", "gbac": { "write": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "operators", "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": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "1958-07-23T04:54:48.064Z", "lastUpdatedBy": null, "lastUpdated": "2019-06-07T21:03:12.559Z", "triggers": [ { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "364225f5cf27a8d53e4782fa", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "64818785283a1c256909b56f", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -65765039, "createdBy": "eu exercitation fugiat dolor", "created": "1982-11-05T14:56:40.43Z", "lastUpdatedBy": "nisi incididunt", "lastUpdated": "2004-07-16T06:07:04.438Z", "formSchemaHash": null, "legacyWrapper": true } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "ucm_compliance_plans", "_id": "a5a99a18908e17c076a0be01", "gbac": { "write": [ { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "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": "eiusmod", "createdBy": "occaecat elit Duis", "created": "1965-12-17T04:28:40.024Z", "lastUpdatedBy": "non irure deserunt ex", "lastUpdated": "1952-11-01T21:25:13.965Z", "triggers": [ { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "0afa4a080ab9a9331bfa25f5", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "5024aed064e21d1af5658dad", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": 5149898, "migrationVersion": 72724962, "createdBy": "consectetur in", "created": "1954-02-07T12:29:33.561Z", "lastUpdatedBy": "dolore sed id", "lastUpdated": "2013-01-19T03:08:11.685Z", "formSchemaHash": null, "legacyWrapper": false }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "c2b5ed4adb5ebd8678e9cc1f", "verb": "POST", "routeName": "nZdMrhe", "_id": "805ab30ac73fdc2babafd17c", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 49803618, "createdBy": null, "created": "1989-03-16T00:18:46.239Z", "lastUpdatedBy": null, "lastUpdated": "1968-06-03T02:12:28.911Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "ucm_compliance_plans", "_id": "92da5cdd1d85f1464a9bf976", "gbac": { "write": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ] }, "componentName": "incididunt ut veniam minim", "createdBy": "ea ut", "created": "1978-08-25T09:12:30.915Z", "lastUpdatedBy": "quis", "lastUpdated": "1990-12-12T19:38:46.108Z", "triggers": [ { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "0f34312538f2dd1656782491", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "fbf26dd516d0697bdb80786a", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 58012265, "createdBy": "tempor", "created": "1992-01-03T19:15:16.206Z", "lastUpdatedBy": null, "lastUpdated": "2007-02-23T21:41:40.81Z", "formSchemaHash": null, "legacyWrapper": false }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "ff60d990197050b8eb65dbe8", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "614857f46c6f705e51492c99", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 56084365, "createdBy": "do sit incididunt", "created": "1948-09-29T06:09:29.178Z", "lastUpdatedBy": "mollit commodo nostrud ad Lorem", "lastUpdated": "1983-11-12T13:31:57.984Z", "formSchemaHash": "cillum officia sint", "legacyWrapper": true }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "2e4cee311a7a2b3e924b19cd", "verb": "POST", "routeName": "SIxr_QwQzl", "schema": null, "_id": "407830da75dd0fd0f17a13de", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 66448136, "createdBy": "nisi", "created": "1984-02-23T16:34:22.833Z", "lastUpdatedBy": "incididunt quis nostrud velit Duis", "lastUpdated": "1960-01-16T03:37:54.899Z" }, { "name": 73415485, "type": -2168846.0051501542, "enabled": -27708359, "actionType": 38615562.7966592, "actionId": true, "formData": false, "firstRunAt": true, "processMissedRuns": "consectetur deserunt eu adipisicing esse", "repeatUnit": "irure eiusmod qui enim", "repeatFrequency": -31728652, "repeatInterval": -40910179.8643877, "_id": -16674018, "formId": -93752356 } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "edfcdf6e0ede207f256ca534", "gbac": { "write": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "1975-12-27T21:41:00.562Z", "lastUpdatedBy": null, "lastUpdated": "2008-08-01T02:05:58.482Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "e212a691f311b346e346f7a5", "verb": "POST", "routeName": "4sUX9rIZV", "schema": null, "_id": "e7cb0c3f5c2136da73340dd2", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -87589471, "createdBy": null, "created": "1997-03-23T09:55:00.139Z", "lastUpdatedBy": "et Excepteur do in laborum", "lastUpdated": "2007-07-25T05:23:53.871Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "e9190a0abb1aaff50a806137", "source": "Duis reprehenderit nulla mollit eiusmod", "topic": "ullamco anim eiusmod", "schema": null, "_id": "0d5566c43c83f5beec39b0b7", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 4619330, "legacyWrapper": false, "createdBy": null, "created": "2019-08-28T21:06:27.647Z", "lastUpdatedBy": "laboris ex proident", "lastUpdated": "2017-07-24T02:41:37.674Z" } ] } ], "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": "ucm_compliance_plans", "createdBy": "95c703b28ec69af40208f194", "created": "1949-03-22T19:15:24.306Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1963-09-07T13:57:47.781Z", "_id": "9ddfba8b524ba2d6f739467f", "gbac": { "write": [ "7538e06ac473a043ef870518", "dec0e118d2a4c208487eb34d", "fd914a5fe523782a11068473", "41170d979042f555a0474b3f", "7974f4d896e3aa6b8eaedb6b" ], "read": [ "673955617c0f46581573a7dd", "5a7cf031f69a4ef1443d46f1" ] }, "componentId": "" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "ucm_compliance_plans", "createdBy": "Pronghorn", "created": "1972-11-04T11:05:17.116Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1972-11-01T04:19:33.787Z", "_id": "23ca808b94a3ebf5736516e2", "gbac": { "write": [ "53d6f3bda62c7a40a317af58", "3627244777f3aa199eba0bf2", "dd3ba6dd03bdf60bb6da643e", "c2c1a804441bc9d044fac828", "a03856c8f425418d2eaa5284" ], "read": [ "cbff52175b12b1d5c24b9a9e" ] }, "componentId": "" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "68e34f3c848b7e58acb07bab", "created": "1970-08-23T13:23:57.982Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2004-10-01T05:26:00.964Z", "_id": "28e4853f9cd39ae68b7ac4a4", "gbac": { "write": [ "9847e3c26c5d7d38b97b919e" ], "read": [ "945e999ec244901b0acf1cf3", "172f68ce29093d4e1f417827", "1b729fc775112528b1b15c5d" ] }, "componentId": null } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "Pronghorn", "created": "1953-07-24T14:46:43.922Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2015-12-24T03:36:51.753Z", "_id": "a1b4b29b29ec9f8da9d92d3d", "gbac": { "write": [ "f1f89f8f932b9e027f0b64ed", "d3e84ace23b216347250fcb4", "4705699a2a04cfeffeb1ffda", "884f5fa34b08e99fa3fab48d", "a9250ceef1b19b409c139657" ], "read": [ "7d4eae6d05c3f516664a7312", "6c4bfcac286ceca4fef92e88" ] }, "componentId": "899d5378d34f8fc4cd242b35" } } ] }
{ "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" } } } ] } } } } } } ] }