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": "dd24d607cd1c534d9de5eefd", "gbac": { "write": [ { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "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": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "2014-06-17T22:06:06.975Z", "lastUpdatedBy": null, "lastUpdated": "1979-08-16T22:39:05.092Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "b5fdea394a392a38c91e7a28", "verb": "POST", "routeName": "o0OYCL", "schema": null, "_id": "d4a8311cb17bcb0d8337df0d", "description": "Some helpful information about the document", "lastExecuted": 73575766, "migrationVersion": 96633507, "createdBy": null, "created": "1986-04-13T20:28:26.727Z", "lastUpdatedBy": null, "lastUpdated": "1993-06-19T07:34:50.414Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "d59b8d36a40e20ef30c2c808", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "323f5b4a89555dba30a06e30", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": 94105467, "migrationVersion": -1426920, "createdBy": "laboris incididunt reprehenderit cillum do", "created": "1946-10-02T18:21:47.434Z", "lastUpdatedBy": "ex dolor", "lastUpdated": "1972-01-31T05:06:37.987Z", "formSchemaHash": null, "legacyWrapper": true }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "0f3b5ec1d3a70da6239369a0", "source": "quis qui Excepteur sed dolor", "topic": "dolore labore in id ipsum", "_id": "4dd87d77d42dc04754896d2b", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 54998498, "legacyWrapper": true, "createdBy": null, "created": "1948-02-17T01:41:55.968Z", "lastUpdatedBy": "proident pariatur consequat", "lastUpdated": "1964-03-13T23:16:32.662Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "d0fdfee27a89df3191a23a5b", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "f2738d248b3099a0caa1108c", "formId": null, "description": "Some helpful information about the document", "lastExecuted": 99022212, "migrationVersion": 34818938, "createdBy": null, "created": "1949-01-16T07:51:27.874Z", "lastUpdatedBy": "ea", "lastUpdated": "1948-01-06T10:07:08.651Z", "formSchemaHash": null, "legacyWrapper": true } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "47d3640b4a9736c06a918eb0", "gbac": { "write": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" } ] }, "componentName": "amet labore elit", "createdBy": "consequat dolore voluptate ea", "created": "1986-08-04T03:11:02.316Z", "lastUpdatedBy": null, "lastUpdated": "1981-02-07T17:31:26.257Z", "triggers": [ { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "d1a1e199722734cd8acbc85e", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "11291b9567e5ecb97ce466b0", "formId": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -88906514, "createdBy": null, "created": "1988-12-30T18:55:09.241Z", "lastUpdatedBy": null, "lastUpdated": "1986-04-01T00:11:06.934Z", "formSchemaHash": null, "legacyWrapper": false }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "c91530e27e329a7383dbe24d", "source": "qui amet culpa", "topic": "fugiat velit ea officia sint", "schema": null, "_id": "8cb058cbbb04974faf53b83f", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -54450670, "legacyWrapper": false, "createdBy": null, "created": "1948-02-09T22:55:32.724Z", "lastUpdatedBy": "voluptate nisi est", "lastUpdated": "1981-11-15T04:02:10.277Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "b7d67e788038e745a4574b2d", "verb": "POST", "routeName": "-DHp9HTwb", "_id": "09c35f2502ace2004f9f1a0a", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -47413336, "createdBy": null, "created": "1966-04-06T07:07:34.701Z", "lastUpdatedBy": "qui eiusmod anim tempor laborum", "lastUpdated": "1998-07-06T08:50:00.283Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "0ab13dfbea0d5283a97fbfe3", "gbac": { "write": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" } ] }, "componentName": null, "createdBy": "id esse", "created": "2002-11-08T21:53:05.684Z", "lastUpdatedBy": "culpa eu do", "lastUpdated": "1950-09-29T06:41:22.01Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "24714a83cd5ce0323a40d7a6", "verb": "POST", "routeName": "5nY6", "schema": null, "_id": "b00f5aee74395fb4d9553bb8", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -33571532, "createdBy": null, "created": "1978-07-22T14:23:04.93Z", "lastUpdatedBy": "culpa et anim ullamco irure", "lastUpdated": "1978-07-09T08:39:52.651Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "3c6197048c7324fdac1ec335", "source": "cillum consequat consectetur", "topic": "sint non", "schema": null, "_id": "e68448cfe40eb96841a275eb", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -95735587, "legacyWrapper": false, "createdBy": "exercitation adipisicing pariatur", "created": "1985-12-13T09:45:47.636Z", "lastUpdatedBy": "voluptate sint id est", "lastUpdated": "2017-02-17T03:25:53.433Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "d462b60ef89b134a706c0919", "gbac": { "write": [ { "provenance": "localAAA", "name": "operators", "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" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "designers", "description": "Description of a group" } ] }, "componentName": "irure voluptate mollit tempor occaecat", "createdBy": "minim eiusmod cillum mollit", "created": "1952-10-05T08:54:29.5Z", "lastUpdatedBy": "occaecat", "lastUpdated": "2012-08-25T17:07:30.552Z", "triggers": [ { "name": "in ullamco", "type": "sint Ut aliquip adipisicing exercitation", "enabled": 83058279.71168846, "actionType": false, "actionId": true, "formData": true, "firstRunAt": -78291121, "processMissedRuns": -8753010.851117834, "repeatUnit": 94837804.73492616, "repeatFrequency": "dolore", "repeatInterval": false, "_id": false, "formId": -69450175.94438735 }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "8897d51678589f459c6ef549", "verb": "POST", "routeName": "YhOSP", "_id": "14b4cec981a1afb5586bbb5e", "description": "Some helpful information about the document", "lastExecuted": 16333383, "migrationVersion": 24365085, "createdBy": "aliquip labore nisi", "created": "2010-02-24T06:29:10.887Z", "lastUpdatedBy": null, "lastUpdated": "1991-01-20T08:51:41.668Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "4616d44898aa827e72afd04f", "source": "occaecat aliqua sit do labore", "topic": "ut tempor consectetur", "schema": null, "_id": "36907da5042beebd195a7899", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 50117713, "migrationVersion": 40635511, "legacyWrapper": true, "createdBy": null, "created": "2001-05-30T06:00:27.588Z", "lastUpdatedBy": null, "lastUpdated": "1991-05-25T01:22:13.677Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "f68f8ce3c953efbc73f7ca17", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "bc7b4f39c455143ddb3ca653", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -27669213, "createdBy": null, "created": "1995-03-21T10:08:47.974Z", "lastUpdatedBy": null, "lastUpdated": "1978-11-15T15:03:45.379Z", "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 imported 3 of 4 documents", "data": [ { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "Pronghorn", "created": "2013-05-29T22:48:48.802Z", "lastUpdatedBy": "89fd378da5f8297fd769a8d0", "lastUpdated": "2009-02-11T17:31:52.923Z", "_id": "a345f31ed473298d6d3d1e44", "gbac": { "write": [ "1e39c38384f2218b44355fab", "ab31dd4bdc6ef88cc57bb9b5" ], "read": [ "d114445e83ebbc3cec970551", "88b58ae5f472d002e14debd7", "b7cc554f17c2ece99494da4b", "cd550c46d662095aa4baecd3" ] }, "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" } } } ] } } } } } } ] }