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": "ac675194f975309655e5e4d5", "gbac": { "write": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ] }, "componentName": "incididunt commodo exercitation", "createdBy": null, "created": "1973-11-01T22:39:14.46Z", "lastUpdatedBy": null, "lastUpdated": "1964-12-15T06:10:31.65Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "0bbc511967fc0cb29e610eb9", "verb": "POST", "routeName": "mkx6wTfP", "_id": "5c1c15b70c665724d7315fb5", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 97655463, "migrationVersion": 73647365, "createdBy": "in quis", "created": "1969-07-07T16:49:41.957Z", "lastUpdatedBy": "dolore nostrud", "lastUpdated": "1993-07-25T10:39:56.464Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "5805db8433d65da9522663c7", "source": "dolor voluptate cillum", "topic": "ea", "schema": null, "_id": "721e05fe00fb4f7db54184cb", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -68930447, "legacyWrapper": true, "createdBy": null, "created": "2015-10-29T14:01:58.075Z", "lastUpdatedBy": "adipisicing labore", "lastUpdated": "1979-05-11T13:09:32.634Z" }, { "name": -66593036.85059017, "type": 69009557.68790817, "enabled": "nisi quis sed sit", "actionType": -53703322, "actionId": false, "formData": 61745684.76022634, "firstRunAt": -15966769, "processMissedRuns": "qui in consequat aute", "repeatUnit": "dolor", "repeatFrequency": false, "repeatInterval": 69607708.13590783, "_id": "anim aliqua ipsum do in", "formId": 9562974.150310487 }, { "name": true, "type": -18704964.220848814, "enabled": true, "actionType": false, "actionId": 45693609.444141, "formData": 48771232, "firstRunAt": "qui irure in est sunt", "processMissedRuns": true, "repeatUnit": -77078881, "repeatFrequency": true, "repeatInterval": 48907763.35644266, "_id": false, "formId": -91017069.72804627 }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "d9cd751f525f5cac2b6e33e7", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "0435708e2c86dc658d90676a", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -52172080, "createdBy": "laborum", "created": "1989-10-07T04:00:00.654Z", "lastUpdatedBy": "ex aute Excepteur adipisicing", "lastUpdated": "2001-12-16T08:12:24.845Z", "formSchemaHash": "amet", "legacyWrapper": true } ] } ], "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-06-12T10:25:59.448Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1985-02-26T17:20:59.688Z", "_id": "b47299dfb606bd3e2b92a5cc", "gbac": { "write": [ "4ddd279e0c3c65c0ebea46a3", "d613461fad33d58abb2f408b" ], "read": [ "0ef22db00cc1cb104ca5ffad", "06a56429b5036b781db12b0d", "037ac8fe2c866c6205b76561", "8de8dc03526f1b44979fe911", "9af0191e9bf2537aa60e6735" ] }, "componentId": "b419c1aaf51fa2a41b3cd52b" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "Pronghorn", "created": "2017-04-15T13:47:40.539Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2003-05-02T23:57:00.833Z", "_id": "91bda6883a8437d05269daad", "gbac": { "write": [ "54289a8ab48d4a44ec32c1c4", "2fcfd48e9e2efee92a4d77b9" ], "read": [ "1ba8a42493a156c01555b82d" ] }, "componentId": "" } } ] }
{ "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" } } } ] } } } } } } ] }