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": "workflows", "_id": "478ecef05e5d042fc8439ac4", "gbac": { "write": [ { "provenance": "ldap", "name": "operators", "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" } ], "read": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "1949-04-17T13:29:52.39Z", "lastUpdatedBy": "consequat enim", "lastUpdated": "1960-02-22T21:26:29.738Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "dcdf98b907fbcd4a8f5d3661", "verb": "POST", "routeName": "B5RdG", "_id": "98c3cf1cb483be385fefd1ab", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 93811777, "migrationVersion": -3307324, "createdBy": "exercitation incididunt et ex esse", "created": "1996-09-04T16:22:41.086Z", "lastUpdatedBy": "laboris aliqua ipsum fugiat", "lastUpdated": "2018-03-08T09:12:30.655Z" }, { "name": 17490846, "type": true, "enabled": false, "actionType": 31022098, "actionId": true, "formData": "do Lorem", "firstRunAt": "eu Lorem sunt", "processMissedRuns": "eiusmod aliquip esse minim", "repeatUnit": false, "repeatFrequency": false, "repeatInterval": "incididunt laborum", "_id": "officia ut", "formId": "aliqua voluptate cupidatat" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "9aa2d3fb04cddb6c40502e6b", "source": "deserunt elit non ex sint", "topic": "ut amet", "_id": "7df179c1426a2fae796e1371", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -68620326, "legacyWrapper": true, "createdBy": null, "created": "1959-03-27T00:17:46.827Z", "lastUpdatedBy": "labore do Lorem anim", "lastUpdated": "2012-04-30T13:58:55.201Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "9c227556e9f7fe39a5127684", "gbac": { "write": [ { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "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": "proident consectetur voluptate dolore", "createdBy": "amet", "created": "1995-06-05T02:46:51.197Z", "lastUpdatedBy": null, "lastUpdated": "1971-09-28T12:43:52.983Z", "triggers": [ { "name": 18124449.616550684, "type": false, "enabled": true, "actionType": true, "actionId": "ut exercitation ea", "formData": -59275439, "firstRunAt": "consectetur", "processMissedRuns": false, "repeatUnit": "ad ut in incididunt", "repeatFrequency": -43678102.637686364, "repeatInterval": true, "_id": "ut Excepteur", "formId": -61502892.90325599 }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "56dba7bf71c63865070a9213", "verb": "POST", "routeName": "oXhqks", "schema": null, "_id": "de11593fd386d312fe01fc6a", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -23176967, "createdBy": null, "created": "1982-07-15T23:34:56.201Z", "lastUpdatedBy": "Duis consectetur proident deserunt", "lastUpdated": "1950-07-10T18:41:46.021Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "56732132f9ab70935fd28235", "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": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "2022-04-22T06:08:47.604Z", "lastUpdatedBy": "laborum ad cillum", "lastUpdated": "2003-06-02T07:27:01.667Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "aad52785cdffe58ab3739dc6", "verb": "POST", "routeName": "rbU6FMPEdd", "_id": "baadae6ef2263e789e461351", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -24704943, "createdBy": null, "created": "2021-03-15T06:55:28.077Z", "lastUpdatedBy": "eiusmod cillum elit deserunt", "lastUpdated": "2011-05-21T22:33:32.842Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "da0f635c6bf4093b6ed3a06f", "source": "pariatur velit", "topic": "amet laborum", "schema": null, "_id": "9e57b693b981e9cccb5bcd03", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -26824777, "legacyWrapper": true, "createdBy": "Duis commodo", "created": "2015-05-18T17:56:27.986Z", "lastUpdatedBy": "consequat ut culpa do", "lastUpdated": "1957-09-02T02:13:43.371Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "4e4689f5ae4fbb19fccdafc1", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "d816efe91d0b80aeb00ede22", "formId": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 87353891, "createdBy": null, "created": "2014-03-30T15:58:16.353Z", "lastUpdatedBy": "pariatur", "lastUpdated": "1998-08-16T12:37:08.717Z", "formSchemaHash": null, "legacyWrapper": false }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "9bc359acedbad17a9113a289", "verb": "POST", "routeName": "kqFH", "_id": "685ff66df47bc35916d89e44", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -28902365, "createdBy": "ullamco veniam aute", "created": "1953-04-04T16:22:52.31Z", "lastUpdatedBy": "irure nostrud in officia", "lastUpdated": "2010-01-29T10:38:37.497Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "0769bbb7c2767996bdd7640a", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "3d6a721b4e6b6b9453408326", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 32126931, "createdBy": null, "created": "2009-05-24T16:11:20.63Z", "lastUpdatedBy": null, "lastUpdated": "2016-07-11T07:56:30.216Z", "formSchemaHash": null, "legacyWrapper": false } ] } ], "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 created the requested item", "data": [ { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "Pronghorn", "created": "2012-08-28T08:51:28.251Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2003-03-08T03:53:05.916Z", "_id": "ae374deaf6801fd950fe90d8", "gbac": { "write": [ "87c595353a248937655f2d3d" ], "read": [ "2db601506694793e35571c28", "297d87433d8d32d1eebf6cfc", "e6647d531291abcc56745305" ] }, "componentId": "0421F787-3Dc5-BB8c-0B0C-Be9216FCCfC0" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "Pronghorn", "created": "1987-09-22T18:10:13.886Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1950-06-13T12:00:30.021Z", "_id": "17001750f09751a68954c97a", "gbac": { "write": [ "ad35f3a4bbdbcda29de2706d", "865d0c7513936aa8077d927f", "04eb716f283f2d376f8c7745" ], "read": [ "9ec651edf050ddd662d4893a" ] }, "componentId": "e348136842cf22a2927fa8a9" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "Pronghorn", "created": "1974-06-08T11:51:25.985Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1961-10-03T22:34:25.851Z", "_id": "a0ceefede3b2bb6efd285dd0", "gbac": { "write": [ "7801522d7b1e7579209b3918", "15f0e2f76a5f6325a8baff3b", "2dcde9d4857b464aa9098e2b", "916141186bda55c24a559f47" ], "read": [ "0b57c2ece6fac7121e15cd2c", "85d2b4ddc943f2f9aecd37e5", "40007a611105d73490fa8860", "89808ca7e91134576279f69c", "7d03f63d6fa80d9684dcd43e" ] }, "componentId": null } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "ucm_compliance_plans", "createdBy": "Pronghorn", "created": "1952-07-01T12:24:56.461Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1981-05-25T21:51:52.394Z", "_id": "afa3a7b8a1163b8026b99e78", "gbac": { "write": [ "8c81bc51b15c72037b8e6435" ], "read": [ "bceccd7a4b04896e09f1e4f5", "99c0d50db7675a6f93ab38ed", "94fb7301f9cf46cc6ac28e50", "0dc3998f9580e8e5e8414f90" ] }, "componentId": "aaa6af612780f7e11884df44" } } ] }
{ "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" } } } ] } } } } } } ] }