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": "522f30a9d876ede4382e2211", "gbac": { "write": [ { "provenance": "ldap", "name": "operators", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "1995-07-07T06:35:02.978Z", "lastUpdatedBy": "dolor laborum cupidatat Ut non", "lastUpdated": "1981-03-25T03:17:10.755Z", "triggers": [ { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "69bd1817994e02f4a7c06268", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "5ed1ad59980b702b3a5ea7b6", "formId": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -63894202, "createdBy": "commodo laboris sint amet consectetur", "created": "2022-02-26T22:15:44.085Z", "lastUpdatedBy": null, "lastUpdated": "1956-10-30T13:33:24.281Z", "formSchemaHash": null, "legacyWrapper": false }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "1887241ca29fb9cc8b30a375", "source": "sed fugiat sunt", "topic": "non incididunt", "schema": null, "_id": "a06fc659afd0a5abd23c7ac4", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 49241912, "migrationVersion": -39806767, "legacyWrapper": true, "createdBy": "veniam", "created": "2009-07-03T09:34:56.939Z", "lastUpdatedBy": "est non", "lastUpdated": "1949-04-29T06:09:14.534Z" }, { "name": "sed minim", "type": 58158441, "enabled": -56799468.17466179, "actionType": 93320517.9668532, "actionId": -61362409, "formData": true, "firstRunAt": true, "processMissedRuns": 43683044.43201262, "repeatUnit": true, "repeatFrequency": true, "repeatInterval": "qui ex incididunt", "_id": false, "formId": true } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "1b6a794fc89b096665bd21dc", "gbac": { "write": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "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" } ] }, "componentName": "sint sit", "createdBy": null, "created": "2023-10-28T04:57:46.367Z", "lastUpdatedBy": null, "lastUpdated": "1981-11-07T12:59:21.756Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "ead088fc1161e21a13a968c5", "verb": "POST", "routeName": "6oUFDW", "_id": "529434d8bd61717bd64e71e1", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 57109900, "createdBy": null, "created": "1958-04-15T04:23:09.215Z", "lastUpdatedBy": null, "lastUpdated": "1973-04-18T12:15:58.328Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "d20ff8455899a2bd9ca0d3b0", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "0f3386f60ad5d0cdf72e7a11", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": 66779661, "migrationVersion": 60400553, "createdBy": null, "created": "2001-06-14T00:20:19.697Z", "lastUpdatedBy": "enim", "lastUpdated": "2020-09-14T10:12:55.597Z", "formSchemaHash": "anim esse enim ullamco", "legacyWrapper": false }, { "name": 35367053.22647494, "type": 72560812, "enabled": 10652760, "actionType": false, "actionId": true, "formData": 95972119.8083905, "firstRunAt": 11489835, "processMissedRuns": -75510837, "repeatUnit": -77856193, "repeatFrequency": "tempor", "repeatInterval": "in ex sunt ut", "_id": -56251340, "formId": -94770641 } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "a868771cd651fcaf562f630c", "gbac": { "write": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" } ] }, "componentName": "anim ad", "createdBy": null, "created": "1959-02-13T04:11:05.014Z", "lastUpdatedBy": null, "lastUpdated": "2023-01-17T00:05:23.844Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "b3d623f554e27f85cba01cc0", "verb": "POST", "routeName": "Hdgl-l1dV", "schema": null, "_id": "870a9f71791de10d2ad866d9", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -37721473, "createdBy": "non ut", "created": "2024-09-24T23:42:02.251Z", "lastUpdatedBy": "ea aliqua sed officia", "lastUpdated": "2003-03-03T20:27:16.691Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "f2311bf853fb8505cf23e826", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "7bdb45cfd98c451eaf9214ad", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -53440514, "createdBy": "nulla", "created": "1990-03-07T13:35:30.359Z", "lastUpdatedBy": null, "lastUpdated": "2015-06-22T08:37:02.248Z", "formSchemaHash": null, "legacyWrapper": true }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "9d70331071c709e99ec3ee85", "verb": "POST", "routeName": "L4gF2NRR", "schema": null, "_id": "6f2045dff722b7b86f82ea71", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 26797353, "createdBy": "laboris consectetur commodo", "created": "2007-07-13T21:57:38.66Z", "lastUpdatedBy": null, "lastUpdated": "1988-09-11T18:59:27.09Z" } ] } ], "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": null, "createdBy": "e764b9ac96497b6a58442317", "created": "1997-05-17T22:55:27.72Z", "lastUpdatedBy": "03c1d83b9e30516dc11f4a1f", "lastUpdated": "1974-02-11T20:56:48.203Z", "_id": "45c3db85ee569c7eadd9ce2c", "gbac": { "write": [ "d87d10f9bc4bc71517818eae", "c6c111e7d1dc96fecf891e92", "d0795be2ac75171cd5c52f0f" ], "read": [ "b3b283b85138124232132d79" ] }, "componentId": null } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "5452039efd0f5f3eb8eacc4f", "created": "2000-01-25T04:53:49.512Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1967-11-23T08:25:27.671Z", "_id": "628432ce85bb667bf9743ff9", "gbac": { "write": [ "1aef7d0ce8d87aa4a818994a", "769651e91e3a7fd8e742d019", "357ec51be35597b9cba37602", "d7c7226acf5bd2712fbfeec3" ], "read": [ "fc94e3327641199dbc07e06a", "5ce24ecef3d7ffda13c340d0", "8614cc7db7a5fde7075bcefd", "e6b93c3ca12701b9eeeb81eb", "7cfd5b4c73fe90e54377dd25" ] }, "componentId": "17A8EAe0-FdDE-Edca-04DB-7d74d5C7Cfd3" } } ] }
{ "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" } } } ] } } } } } } ] }