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": "d35b23fe886a36560796fa0a", "gbac": { "write": [ { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "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" } ] }, "componentName": null, "createdBy": null, "created": "1961-01-27T02:11:11.509Z", "lastUpdatedBy": null, "lastUpdated": "2005-09-15T08:25:04.241Z", "triggers": [ { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "0bb1ab0bfe9f05f77e40e471", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "b559d8264cb5263e2d259295", "formId": null, "description": "Some helpful information about the document", "lastExecuted": 82583556, "migrationVersion": -49163735, "createdBy": "commodo nulla", "created": "1972-03-24T13:27:08.763Z", "lastUpdatedBy": null, "lastUpdated": "2017-01-17T09:17:53.042Z", "formSchemaHash": "non nostrud aliqua fugiat" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "3e90529e218e2cabde7d1092", "source": "laborum", "topic": "culpa dolor", "_id": "4c87f6b2cfeb55613ba1120c", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 47930380, "createdBy": "ipsum laboris laborum", "created": "2007-05-22T07:50:17.984Z", "lastUpdatedBy": null, "lastUpdated": "1983-10-31T11:26:59.592Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "3c3a1005e54fb8b46c4b9b1c", "verb": "POST", "routeName": "RgjJeDRviz", "schema": null, "_id": "7c5942fbf155a8f5209d944d", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -95756752, "createdBy": null, "created": "1971-02-13T05:26:50.117Z", "lastUpdatedBy": "ipsum laborum eiusmod dolore in", "lastUpdated": "1994-06-17T12:04:45.041Z" }, { "name": "dolor Ut aliquip commodo", "type": "non", "enabled": "minim mollit sunt", "actionType": false, "actionId": -11798037.929814726, "formData": 56377650, "firstRunAt": true, "processMissedRuns": "aute", "repeatUnit": "non ipsum anim culpa adipisicing", "repeatFrequency": -38676776.36926636, "repeatInterval": false, "_id": true, "formId": "Lorem" }, { "name": -37488814, "type": true, "enabled": true, "actionType": "Ut", "actionId": -82589367.26178962, "formData": false, "firstRunAt": -29042784, "processMissedRuns": false, "repeatUnit": 96080890.42676342, "repeatFrequency": -62469209, "repeatInterval": "labore fugiat qui magna sed", "_id": true, "formId": 30371340.93864067 } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "60a10942167fb4b691065a4d", "gbac": { "write": [ { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ] }, "componentName": null, "createdBy": "eu nostrud sunt", "created": "1994-02-24T14:23:52.176Z", "lastUpdatedBy": null, "lastUpdated": "1969-12-25T21:42:51.975Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "41612476281e73266501e484", "source": "quis anim elit ut Duis", "topic": "tempor", "_id": "a7517d4b4df75f76f75d552b", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 41009345, "createdBy": "ut", "created": "2001-07-11T10:26:53.861Z", "lastUpdatedBy": "ex", "lastUpdated": "2006-07-13T19:29:14.907Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "7bad76b722153bc7674e5da1", "gbac": { "write": [ { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "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" } ], "read": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ] }, "componentName": "dolore qui ea", "createdBy": "in consequat", "created": "1970-01-15T18:23:58.01Z", "lastUpdatedBy": null, "lastUpdated": "1997-10-23T21:31:08.608Z", "triggers": [ { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "d9b77ec7c0f8f2ad0caf2aff", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "116384fa3190eaf0060b20c3", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 86948620, "createdBy": "nisi Excepteur Duis adipisicing", "created": "1998-08-02T00:01:43.741Z", "lastUpdatedBy": null, "lastUpdated": "2005-11-12T10:04:09.216Z", "formSchemaHash": "mollit laborum eu" } ] } ], "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": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "672d33fea5f88ebb6b0a8510", "created": "2012-07-31T20:13:03.09Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1988-04-02T22:32:17.124Z", "_id": "c8e0faca20b79194b549f565", "gbac": { "write": [ "c0909404dd7d2a9b2a816336", "16079cb4e2a69fa6ac760002", "4edf54bdcd0ff0fa7543f7d6" ], "read": [ "1a328268f7229bf2bbaf5ebd", "d372ed75733ae3f9ef461bb8", "17e5b28c00c758cb94d85a89", "eadc603c0001fa7936ed6e78" ] }, "componentId": "8b5a2c31227881a725e153fb" } } ] }
{ "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" } } } ] } } } } } } ] }