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": "46fd252aca6d77b0f6e98a3b", "gbac": { "write": [ { "provenance": "ldap", "name": "operators", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "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" } ] }, "componentName": "magna dolore fugiat", "createdBy": null, "created": "1949-01-25T11:25:16.215Z", "lastUpdatedBy": null, "lastUpdated": "1973-12-31T03:31:11.61Z", "triggers": [ { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "c54db61207d1ec15d1470257", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "e9c5a348ae93a94ce2911dd2", "formId": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -97688012, "createdBy": null, "created": "2000-05-17T09:29:25.946Z", "lastUpdatedBy": null, "lastUpdated": "1950-02-16T09:51:46.144Z", "formSchemaHash": "exercitation in do officia commodo" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "b74516e73e4fb0fd9eba4545", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "a56b6fee5388aa7afb05b6b2", "formId": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -31515804, "createdBy": "aute elit", "created": "2006-03-24T21:47:50.24Z", "lastUpdatedBy": "sit ex velit dolore", "lastUpdated": "1995-04-10T01:13:16.096Z", "formSchemaHash": null }, { "name": 45533911.70861027, "type": true, "enabled": 35105081.027651966, "actionType": true, "actionId": false, "formData": "ullamco dolore pariatur adipisicing", "firstRunAt": true, "processMissedRuns": false, "repeatUnit": "eiusmod quis ea exercitation reprehenderit", "repeatFrequency": 87135978.09525898, "repeatInterval": 26988770, "_id": 99270813.62334856, "formId": -68866832.81946659 }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "9827ea88e09b19527cacdff0", "verb": "POST", "routeName": "taJN", "_id": "26fbe3e841d9876787869805", "description": "Some helpful information about the document", "lastExecuted": 80553159, "migrationVersion": 22360826, "createdBy": null, "created": "2004-06-03T05:11:32.903Z", "lastUpdatedBy": null, "lastUpdated": "1999-06-11T05:59:53.964Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "830df42a4fc390e9ff2dae05", "gbac": { "write": [ { "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": "operators", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" } ] }, "componentName": "cupidatat enim elit", "createdBy": null, "created": "2013-10-29T10:47:06.634Z", "lastUpdatedBy": null, "lastUpdated": "1968-01-12T11:45:58.679Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "f280241b796f11b1f18dac15", "verb": "POST", "routeName": "xf9-I", "_id": "e8c4db509b53e762133a8844", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 73303710, "createdBy": "dolore aliqua fugiat", "created": "1985-12-31T03:21:53.895Z", "lastUpdatedBy": "eiusmod in fugiat elit minim", "lastUpdated": "1982-05-28T14:17:28.834Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "1145cb248c6127913895f780", "verb": "POST", "routeName": "B0vHN03m", "_id": "a95a16265aecb3b22be66977", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 67082335, "createdBy": null, "created": "1994-05-05T07:44:52.088Z", "lastUpdatedBy": "eu non tempor", "lastUpdated": "2001-12-03T10:01:51.007Z" } ] } ], "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 retrieved search results", "data": [ { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "bb616d8ae8601ac5f3863ca7", "created": "1972-07-08T12:51:35.757Z", "lastUpdatedBy": "550166af1b52bdf3ff08991e", "lastUpdated": "1975-10-09T12:56:24.183Z", "_id": "0bdfc6050b9cc730422ad2c8", "gbac": { "write": [ "1d38ca66abf610c2bf376e2b", "6b1dc489ce48edadd0057155", "42f89516de4a1d6d8c248eda", "a764f4bed0871575bce1d303", "90b39fd47f87a26340668834" ], "read": [ "a1cb72e1b78fa163d4a5a3e6", "2044d0b3d44e28e4e0f06bac", "13cb415ca3bcd3e459987e97" ] }, "componentId": "8Ef9cDb2-893E-0EAe-4321-7ce46E8e7fc9" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "Pronghorn", "created": "2009-01-20T12:13:58.383Z", "lastUpdatedBy": "af75454123513bbf1e40f1d9", "lastUpdated": "1992-10-20T07:19:28.557Z", "_id": "2b81b3665848b834f6a7ee54", "gbac": { "write": [ "c11ce5d32aab5e67a5d296f5", "0cbb36e9d7a563d3e3182ec7", "96c6c2c14578b969e3cc80fa", "67afa9f13c6a5f1fde843df2" ], "read": [ "f778177a61d2e1ec6a2ea635", "7e21483eafb7446229d3c6b2", "c5ac28b1b99e49a3bc5933c6", "6709bb104e69f81ce16f7ab1" ] }, "componentId": "A52dCE90-deda-1370-BFBa-d88F62DDe18B" } } ] }
{ "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" } } } ] } } } } } } ] }