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": "769f41fdfc7c28be084199af", "gbac": { "write": [ { "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" } ], "read": [ { "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" } ] }, "componentName": null, "createdBy": null, "created": "1950-07-23T07:31:19.663Z", "lastUpdatedBy": "laboris est labore ut velit", "lastUpdated": "1970-06-05T09:48:37.961Z", "triggers": [ { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "e39218dd0c2a5ea8e69404b0", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "edabfc60e939bcb38d0c1883", "formId": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 28538422, "createdBy": "nulla eu do", "created": "1972-02-10T16:56:59.581Z", "lastUpdatedBy": null, "lastUpdated": "1988-11-05T12:05:41.172Z", "formSchemaHash": null }, { "name": "exercitation", "type": -38248734, "enabled": -32070673.27262947, "actionType": "magna sit cillum ut ad", "actionId": false, "formData": "Duis ut in", "firstRunAt": false, "processMissedRuns": -35570794, "repeatUnit": false, "repeatFrequency": "cupidatat dolore", "repeatInterval": "Excepteur", "_id": false, "formId": true }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "2294aaf8677552ce936b9c54", "verb": "POST", "routeName": "Y", "_id": "2ad6d9e51a95aabf136b02aa", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 65738249, "createdBy": "et", "created": "1988-08-03T15:23:07.737Z", "lastUpdatedBy": "in sed amet enim tempor", "lastUpdated": "2001-11-27T19:55:28.037Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "4d73ce3e702cbd1865b42787", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "c9eb03f06d69de91d7958c5f", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": 75559583, "migrationVersion": 23000408, "createdBy": null, "created": "2004-02-01T05:43:19.576Z", "lastUpdatedBy": "Lorem anim", "lastUpdated": "2009-08-11T02:22:30.718Z", "formSchemaHash": null } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "358f97ffa780d282bcb43b9e", "gbac": { "write": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ], "read": [ { "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": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ] }, "componentName": "et", "createdBy": "nisi et Lorem id est", "created": "1981-12-23T12:25:56.064Z", "lastUpdatedBy": "laboris labore", "lastUpdated": "2003-11-01T04:20:36.004Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "cc2cac438037bf9def9ec90d", "verb": "POST", "routeName": "9K", "_id": "95721ae960b399860bba3805", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 74352269, "migrationVersion": -88684393, "createdBy": "dolore eiusmod do fugiat", "created": "2004-11-17T02:47:18.531Z", "lastUpdatedBy": "in sed aute qui", "lastUpdated": "1984-04-11T04:32:18.193Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "dffc51fe1bb590668d8a5ea2", "source": "in", "topic": "aliqua pariatur incididunt culpa adipisicing", "_id": "06091de59cab44b8de3d2b26", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -47445287, "createdBy": "ut ipsum", "created": "1970-04-11T02:09:57.422Z", "lastUpdatedBy": "anim laborum", "lastUpdated": "1993-07-01T17:00:05.551Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "e8dd211557bc7363f3df0c3f", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "f1eb5acd6ee8b0f758790909", "formId": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -21702207, "createdBy": "ut", "created": "1974-10-10T19:11:29.385Z", "lastUpdatedBy": null, "lastUpdated": "1969-03-17T21:28:51.221Z", "formSchemaHash": "aliqua veniam" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "1e48a67f1794d0a45d7c3cdf", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "bc78289b10c87a7e632c2de4", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -96073889, "createdBy": null, "created": "1995-12-12T05:36:38.012Z", "lastUpdatedBy": "incididunt culpa adipisicing qui velit", "lastUpdated": "2002-10-20T17:34:08.819Z", "formSchemaHash": null }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "7fe2bab941c459224ab15734", "source": "incididunt", "topic": "in", "schema": null, "_id": "a33e7f254959033d259604f7", "description": "Some helpful information about the document", "lastExecuted": 15042014, "migrationVersion": -44601434, "createdBy": null, "created": "2013-09-04T01:46:06.089Z", "lastUpdatedBy": null, "lastUpdated": "1967-06-12T08:11:42.506Z" } ] } ], "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": null, "createdBy": "c3f927c5a060daa315207324", "created": "1980-10-20T08:56:30.151Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2003-09-27T07:05:20.066Z", "_id": "32b9e7e2829d90ced9df2bf9", "gbac": { "write": [ "ee1f117b3ace79a2836492cb", "68cb1b1855b6db76b191f631" ], "read": [ "0282942c5e3c7a9ff14dc3d7" ] }, "componentId": "f0b1b56f5c4a2a255c418178" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "Pronghorn", "created": "1976-04-24T23:18:10.76Z", "lastUpdatedBy": "85b71cd08b3c8408e0495c88", "lastUpdated": "1968-04-21T11:10:59.34Z", "_id": "c9103e077a333ad10f75f426", "gbac": { "write": [ "9632bd08110c61da38b0e670", "ba7b951b0f352a4e82282ee9" ], "read": [ "1350900a58fab43ff712ef10", "dc466f07e5e4556f6caec093", "4587ea610bd69601c58897a3" ] }, "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" } } } ] } } } } } } ] }