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": "1959b7fd388dd15e54fa1a49", "gbac": { "write": [ { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" } ] }, "componentName": "sed consequat nisi", "createdBy": "incididunt nostrud", "created": "2016-01-09T00:03:59.338Z", "lastUpdatedBy": "aliqua esse", "lastUpdated": "1965-09-13T01:17:45.054Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "73ffac0afd27e2de45211113", "source": "eiusmod", "topic": "irure sed ullamco", "schema": null, "_id": "899db937883fd3b95addd032", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 56761807, "migrationVersion": 24703753, "createdBy": "dolor est sunt sit", "created": "2011-03-15T19:27:38.595Z", "lastUpdatedBy": "sed sit ut", "lastUpdated": "1965-11-05T22:12:46.302Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "589718ef33e72ab743c8222b", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "d423efd2899b6ef281389e5b", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": 24722137, "migrationVersion": -43988699, "createdBy": null, "created": "1953-03-03T07:13:03.909Z", "lastUpdatedBy": null, "lastUpdated": "1949-12-02T11:38:17.601Z", "formSchemaHash": null } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "509060983238fb0bb85ec022", "gbac": { "write": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "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": "dolor aliqua ipsum fugiat", "createdBy": null, "created": "1982-11-02T22:59:52.612Z", "lastUpdatedBy": null, "lastUpdated": "1991-02-16T00:05:50.98Z", "triggers": [ { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "4f9066620d50c1f2da45b04f", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "140a54891723073184800127", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": 95804143, "migrationVersion": -20210267, "createdBy": "aute nostrud proident exercitation amet", "created": "1982-11-04T08:31:35.687Z", "lastUpdatedBy": null, "lastUpdated": "1987-09-04T07:13:02.081Z", "formSchemaHash": null }, { "name": -2746352.3966379613, "type": -18759835.936061814, "enabled": false, "actionType": "dolor elit", "actionId": 43205462.40545359, "formData": -70513602, "firstRunAt": -59616026, "processMissedRuns": 90213666, "repeatUnit": 16306278, "repeatFrequency": false, "repeatInterval": 50268322, "_id": "est officia proident consequat dolor", "formId": -6204721.78358686 }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "ff18d756875099c14f1e6123", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "87738f03aa775b2eb10fb482", "formId": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -17315118, "createdBy": null, "created": "2013-04-26T17:29:57.396Z", "lastUpdatedBy": "in ut exercitation occaecat proident", "lastUpdated": "1986-04-24T02:44:29.961Z", "formSchemaHash": null }, { "name": 48930417.721999615, "type": true, "enabled": 37223538.90466991, "actionType": 24958378.49897459, "actionId": 18684758, "formData": -20758596, "firstRunAt": 9512322.220953614, "processMissedRuns": 51814937.6006127, "repeatUnit": 60983166.50743264, "repeatFrequency": true, "repeatInterval": true, "_id": 11391666.088390633, "formId": 61892220 } ] } ], "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": null, "createdBy": "Pronghorn", "created": "1959-02-10T02:10:39.752Z", "lastUpdatedBy": "c2d8080495e901381a14a136", "lastUpdated": "1986-08-09T10:52:01.989Z", "_id": "25655e4a4c60aac3fe0451a0", "gbac": { "write": [ "fc24dbdb73f0deb5173d4913", "157f3d225b4f591ff055ba26", "5139c77e03a15d77d19967d3", "ab9c25e79c4857bfdcc676d8" ], "read": [ "a213c88ee2960e15589e75ba", "2411e7e9608508df86be14ea", "e2048a208ac83ccff57dd976", "d2e304473c35fbe0386b4478", "98bd540317cb9fff64cddcb1" ] }, "componentId": "" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "Pronghorn", "created": "1968-09-23T01:15:28.076Z", "lastUpdatedBy": "33c9e21ed2cf127be0128771", "lastUpdated": "1950-05-12T23:57:59.842Z", "_id": "38963b2ea7b8e008ad4b15c1", "gbac": { "write": [ "28f0027323e884f1cf54aa93", "6e6afe245d3f98e9bbcedc65", "3545b475dbba6c4c8f409b48" ], "read": [ "248f56619a7bd5094d76c454", "b21200e5affac0e6fc1c8384", "1e626ba5c6d9a4aa5d8295dc", "b4ef40ebe54770803f31a9a3" ] }, "componentId": "AEb25dbf-A2CB-51DC-9b54-aeA2B5dDDc1e" } } ] }
{ "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" } } } ] } } } } } } ] }