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": "07767e896cab2af9f528844d", "gbac": { "write": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" } ] }, "componentName": null, "createdBy": "Lorem incididunt quis", "created": "1950-06-12T16:32:35.873Z", "lastUpdatedBy": "officia amet ad in", "lastUpdated": "2003-12-23T12:55:13.679Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "6655bda1f0edac2c8e7cea4b", "source": "ipsum", "topic": "quis culpa commodo occaecat consectetur", "_id": "f26e96c569ee610affcbedf4", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 89468969, "legacyWrapper": false, "createdBy": "amet sunt cupidatat ea et", "created": "2001-07-27T03:22:38.436Z", "lastUpdatedBy": null, "lastUpdated": "1967-11-18T19:38:04.143Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "30f7162ab15dfc855db19ad0", "verb": "POST", "routeName": "55r_Lu", "schema": null, "_id": "e9299593b74393a0a511611f", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -80897465, "createdBy": null, "created": "1992-04-22T21:20:20.177Z", "lastUpdatedBy": "nostrud", "lastUpdated": "1974-05-01T18:37:23.206Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "990f1814315dc1e5ccf6ab52", "verb": "POST", "routeName": "0lk", "_id": "1f0b50611f48c30eca7dfade", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -86219978, "createdBy": "nisi irure aliquip cupidatat aliqua", "created": "2016-04-26T08:39:30.947Z", "lastUpdatedBy": "Ut officia non minim ullamco", "lastUpdated": "1990-06-03T11:16:17.009Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "dfe533316ec23d12d5bc3164", "gbac": { "write": [ { "provenance": "ldap", "name": "designers", "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": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ] }, "componentName": "ullamco dolor Duis exercitation", "createdBy": null, "created": "1991-11-02T01:57:12.32Z", "lastUpdatedBy": "labore", "lastUpdated": "1966-04-10T18:44:11.909Z", "triggers": [ { "name": false, "type": false, "enabled": "minim dolor dolore magna", "actionType": true, "actionId": "veniam quis sunt", "formData": 63322975, "firstRunAt": true, "processMissedRuns": -53837153, "repeatUnit": -66915466.4061514, "repeatFrequency": 67629188.04796514, "repeatInterval": false, "_id": "mollit Excepteur", "formId": "ea mollit eu sint ipsum" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "841583c0629f7c6a25b564d8", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "611c6eff8d63a965e805cd5d", "formId": null, "description": "Some helpful information about the document", "lastExecuted": 12834347, "migrationVersion": 22816858, "createdBy": "adipisicing sit", "created": "2000-10-26T12:22:56.304Z", "lastUpdatedBy": "dolore Lorem nisi incididunt", "lastUpdated": "1957-09-11T12:36:39.461Z", "formSchemaHash": "cillum dolore esse", "legacyWrapper": false }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "e1d508c2a14407feff1e2770", "verb": "POST", "routeName": "J", "_id": "3f565070b603efae05808c39", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 49846696, "createdBy": "do pariatur qui non", "created": "1983-04-03T20:12:43.11Z", "lastUpdatedBy": null, "lastUpdated": "1989-07-10T10:11:24.776Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "cc94ee2cf42f7214054ce3d2", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "1f482ebfdc8cb58aed8f9081", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 94143971, "createdBy": "sit", "created": "1993-07-04T13:02:07.657Z", "lastUpdatedBy": "anim", "lastUpdated": "1955-08-11T18:30:42.618Z", "formSchemaHash": "nulla in laborum ut", "legacyWrapper": true }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "ca3203d9964ba4845bf22f7e", "verb": "POST", "routeName": "pM-1-b", "schema": null, "_id": "c0b6c3aec7fc8b5dfb5ea6a7", "description": "Some helpful information about the document", "lastExecuted": 66410081, "migrationVersion": -27734223, "createdBy": "Lorem laboris", "created": "1996-08-11T12:04:51.028Z", "lastUpdatedBy": "in", "lastUpdated": "1971-10-30T01:37:17.083Z" } ] } ], "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 created the requested item", "data": [ { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "Pronghorn", "created": "1974-07-17T10:38:01.429Z", "lastUpdatedBy": "6e092af930a90226029c9e31", "lastUpdated": "1968-06-21T02:19:42.866Z", "_id": "e2e90275293f66eb9f251ea5", "gbac": { "write": [ "b6943571480541ec674dab66", "023c1547e431814681177b58" ], "read": [ "827ec1350dc735f7985e89fb", "68c097d00a647c9c822b0357", "a84fbd02df9539a5d7e9c94c" ] }, "componentId": "fED3fAd6-5225-DdEe-E52c-F230c315cd1A" } } ] }
{ "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" } } } ] } } } } } } ] }