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": "8edceaf1171699e112d7b954", "gbac": { "write": [ { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "designers", "description": "Description of a group" } ] }, "componentName": "in Ut officia", "createdBy": "ad ullamco cillum ut commodo", "created": "2006-12-09T12:23:59.494Z", "lastUpdatedBy": null, "lastUpdated": "1961-02-27T23:43:33.288Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "45fa8fd30419eb6457eadcce", "verb": "POST", "routeName": "Qya", "schema": null, "_id": "b1e872673032a42d3f0e4fb9", "description": "Some helpful information about the document", "lastExecuted": 23661874, "migrationVersion": 3844568, "createdBy": null, "created": "1961-12-07T21:12:37.048Z", "lastUpdatedBy": "officia ea", "lastUpdated": "1966-05-02T07:59:31.072Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "8457500b5b03de499e78be64", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "d22bf5080ff4cf7b8f9434a2", "formId": null, "description": "Some helpful information about the document", "lastExecuted": 32033013, "migrationVersion": -56165858, "createdBy": null, "created": "1947-08-15T08:44:15.186Z", "lastUpdatedBy": null, "lastUpdated": "1969-01-27T10:48:46.741Z", "formSchemaHash": "culpa eu exercitation officia qui", "legacyWrapper": false }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "b842cb3ec130992b6718668f", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "6ac6d21200a62bb35e796aea", "formId": null, "description": "Some helpful information about the document", "lastExecuted": 32917867, "migrationVersion": -18079016, "createdBy": "aute est ad veniam", "created": "1956-06-17T21:47:03.58Z", "lastUpdatedBy": "Ut", "lastUpdated": "1989-08-29T16:13:22.234Z", "formSchemaHash": null, "legacyWrapper": true }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "30f0039f3ff70e41ba6b39e9", "source": "consectetur nulla irure dolore", "topic": "occaecat magna", "schema": null, "_id": "8b4e6784846b026e657387ba", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -49194824, "legacyWrapper": false, "createdBy": null, "created": "1987-07-15T06:20:42.302Z", "lastUpdatedBy": "quis ullamco in", "lastUpdated": "1963-08-08T20:21:49.307Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "91b58d4242b02fc411ef9b7d", "gbac": { "write": [ { "provenance": "localAAA", "name": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ] }, "componentName": "eiusmod consequat exercitation", "createdBy": null, "created": "1956-10-20T18:58:26.488Z", "lastUpdatedBy": "elit aliquip", "lastUpdated": "1995-11-17T01:10:07.844Z", "triggers": [ { "name": false, "type": true, "enabled": "aliqua dolor exercitation", "actionType": 48500290.64520815, "actionId": true, "formData": 55929179, "firstRunAt": "in", "processMissedRuns": -50944558.928472936, "repeatUnit": 91467372.63059327, "repeatFrequency": -11890218, "repeatInterval": 20245233.62056914, "_id": -95135544, "formId": false }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "d1291a95d387da1778a8d7eb", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "1d7af4982970dba0a429db06", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -45112020, "createdBy": "esse laboris sit eiusmod elit", "created": "1968-04-03T03:57:11.436Z", "lastUpdatedBy": null, "lastUpdated": "1953-02-11T17:57:12.199Z", "formSchemaHash": "anim", "legacyWrapper": true }, { "name": 84968585.026007, "type": 4797600, "enabled": -32295138.22646779, "actionType": "pariatur incididunt", "actionId": -33970858.993274964, "formData": -46977529, "firstRunAt": "laboris magna laborum nisi", "processMissedRuns": -80891046.51677138, "repeatUnit": 11091991.257679105, "repeatFrequency": true, "repeatInterval": false, "_id": "magna", "formId": "culpa" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "cd3b4fed3b9892fbecd5eb30", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "14ff97ce9d81560ba1a82f88", "formId": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 70199267, "createdBy": null, "created": "1985-12-07T19:29:58.251Z", "lastUpdatedBy": "Ut amet dolore commodo", "lastUpdated": "1961-04-13T21:30:13.588Z", "formSchemaHash": "ipsum consequat veniam incididunt aliqua", "legacyWrapper": true }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "8db786c8ac82950f7e847446", "verb": "POST", "routeName": "pj3u9", "schema": null, "_id": "c1b8230e9f4160621e0bbfc3", "description": "Some helpful information about the document", "lastExecuted": 28277229, "migrationVersion": 38070770, "createdBy": null, "created": "2023-03-03T07:16:59.009Z", "lastUpdatedBy": "est mollit ut", "lastUpdated": "2012-12-11T10:44:59.687Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "940fc5a76b8b85f16acffff1", "gbac": { "write": [ { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "1995-03-08T17:15:45.891Z", "lastUpdatedBy": null, "lastUpdated": "1946-05-25T16:29:49.827Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "c9b528b54df3c94dc62aac46", "source": "magna ipsum", "topic": "aliquip cillum ullamco veniam", "schema": null, "_id": "9ea1a551f56d8581fefab07e", "description": "Some helpful information about the document", "lastExecuted": 47101309, "migrationVersion": 93610397, "legacyWrapper": true, "createdBy": null, "created": "1946-10-13T21:07:36.386Z", "lastUpdatedBy": "occaecat esse in", "lastUpdated": "1958-03-19T07:35:03.218Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "3dd5cafac08ab703074a696f", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "7873d31bbf9edf1ce0c7229c", "formId": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 26501196, "createdBy": "in fugiat", "created": "1986-08-17T15:39:54.438Z", "lastUpdatedBy": "in magna", "lastUpdated": "1980-02-23T03:39:46.773Z", "formSchemaHash": "sint et", "legacyWrapper": true } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "43a3a19af2324d8eed0f0efa", "gbac": { "write": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" } ] }, "componentName": null, "createdBy": "magna adipisicing laborum proident", "created": "1983-06-06T00:36:10.883Z", "lastUpdatedBy": null, "lastUpdated": "1984-07-21T22:21:45.845Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "1aa1b5bdaf1611a7cf355116", "source": "ipsum Lorem tempor Ut fugiat", "topic": "dolor do", "_id": "99b8df15bb443cb0500e578e", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 93816470, "legacyWrapper": false, "createdBy": "nisi fugiat est", "created": "2004-12-22T19:06:07.303Z", "lastUpdatedBy": null, "lastUpdated": "1969-02-18T18:09:03.779Z" } ] } ], "options": { "adapterMap": { "staging": "production" } } }
{ "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": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "Pronghorn", "created": "1989-02-28T14:37:17.382Z", "lastUpdatedBy": "16caa511f80b286a507cd4c5", "lastUpdated": "1986-05-16T09:03:55.553Z", "_id": "180681eaa9cf92e089f2a949", "gbac": { "write": [ "07d3d4897a6c36fec555cbca" ], "read": [ "b7779893f844b8393eef6a62" ] }, "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" } } } ] } } } } } } ] }