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": "0bec0a52866c620b206074d5", "gbac": { "write": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" } ] }, "componentName": null, "createdBy": "reprehenderit nostrud occaecat minim", "created": "1979-01-20T04:58:06.796Z", "lastUpdatedBy": "laborum fugiat enim Duis", "lastUpdated": "1975-08-11T06:57:43.183Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "7b38f028dd46ada8cbbdce11", "verb": "POST", "routeName": "TRTJJ7mf", "_id": "46a3400a062f3e1531b7096e", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 20615549, "createdBy": "labore", "created": "1982-09-22T03:46:17.278Z", "lastUpdatedBy": "ea anim consequat ad cupidatat", "lastUpdated": "1987-10-11T08:12:15.861Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "cb5b63b55ea0711311acb20a", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "e28016a731a412e40a431a5f", "formId": null, "description": "Some helpful information about the document", "lastExecuted": 31828057, "migrationVersion": 24296168, "createdBy": null, "created": "1999-04-09T03:04:20.433Z", "lastUpdatedBy": null, "lastUpdated": "2016-11-05T01:58:14.68Z", "formSchemaHash": "magna", "legacyWrapper": false }, { "name": true, "type": 48477185, "enabled": false, "actionType": "enim irure consectetur exercitation", "actionId": false, "formData": false, "firstRunAt": -25078790.10993661, "processMissedRuns": "non", "repeatUnit": "cupidatat", "repeatFrequency": false, "repeatInterval": -28452770.545841634, "_id": "ea elit", "formId": true }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "47245703576abe69b98b6e02", "verb": "POST", "routeName": "rp_BkE", "_id": "7d9fdc11909195987b5d28da", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 71016377, "createdBy": null, "created": "2019-08-25T16:30:40.849Z", "lastUpdatedBy": "eu ea culpa elit cillum", "lastUpdated": "1959-10-25T20:10:32.111Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "150ffedb3847f4dc2742c131", "gbac": { "write": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" } ] }, "componentName": null, "createdBy": null, "created": "1945-07-02T09:07:17.07Z", "lastUpdatedBy": null, "lastUpdated": "2021-02-17T01:32:48.189Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "ae4dcfb2190715c357579f87", "source": "incididunt sed ut", "topic": "laboris", "schema": null, "_id": "608d638ae25597af93b0e916", "description": "Some helpful information about the document", "lastExecuted": 58593892, "migrationVersion": 62990804, "legacyWrapper": false, "createdBy": null, "created": "1981-09-03T16:23:30.817Z", "lastUpdatedBy": "et do", "lastUpdated": "1998-07-02T19:24:58.709Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "6d006a701b68b74cbabe89e1", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "eba8fd91475aa9df69ab25c1", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -28992445, "createdBy": null, "created": "1979-04-16T01:43:34.73Z", "lastUpdatedBy": null, "lastUpdated": "1959-09-11T20:54:21.266Z", "formSchemaHash": "ullamco qui laboris", "legacyWrapper": true } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "dc4c5a373bb35bb8f98ef134", "gbac": { "write": [ { "provenance": "ldap", "name": "operators", "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": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "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": "do commodo", "createdBy": "eu", "created": "1955-09-07T02:42:22.515Z", "lastUpdatedBy": "ut", "lastUpdated": "1975-12-03T04:47:22.806Z", "triggers": [ { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "ab2136c6cfef97daf1200de9", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "e2e6942ef33c81d1a28c3e18", "formId": "myCoolDocumentName", "description": "Some helpful information about the document", "lastExecuted": 36295628, "migrationVersion": -95043323, "createdBy": null, "created": "1985-10-14T01:22:09.098Z", "lastUpdatedBy": "et Lorem ea", "lastUpdated": "1966-03-28T10:19:25.632Z", "formSchemaHash": "velit", "legacyWrapper": false } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "c28ed32c0eec039238650f4f", "gbac": { "write": [ { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ], "read": [ { "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" } ] }, "componentName": "tempor in ut ad", "createdBy": "adipisicing irure", "created": "1985-01-28T04:35:28.808Z", "lastUpdatedBy": "sint ex esse labore ipsum", "lastUpdated": "1980-03-23T01:40:15.598Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "fea9c38fca3ae36ab8940f83", "verb": "POST", "routeName": "VysQrTBEo", "_id": "28b736f6a411a317f7ba7ffb", "description": "Some helpful information about the document", "lastExecuted": 42435796, "migrationVersion": -2198049, "createdBy": null, "created": "2006-09-25T21:24:30.613Z", "lastUpdatedBy": null, "lastUpdated": "1978-01-14T03:58:26.757Z" }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "bc5077b002c9c48b5d280743", "source": "in tempor exercitation", "topic": "dolore laborum deserunt proident ullamco", "_id": "29d78b211fe2c3b3b0f11fd0", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 81695227, "migrationVersion": 83268556, "legacyWrapper": true, "createdBy": "ex in in Excepteur", "created": "2017-07-21T11:37:42.682Z", "lastUpdatedBy": null, "lastUpdated": "2018-02-26T14:42:56.522Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "47e83ebd664faee87642ed90", "verb": "POST", "routeName": "318Z", "_id": "f65708fb4da8e3f242e3a9fd", "description": "Some helpful information about the document", "lastExecuted": 74823685, "migrationVersion": -41386291, "createdBy": "ex aliqua", "created": "2004-04-09T11:42:16.46Z", "lastUpdatedBy": null, "lastUpdated": "1972-02-17T11:19:46.328Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "5fab27847732b4a860d0bc00", "verb": "POST", "routeName": "zT05N", "_id": "74ce443f9b130d17edc97254", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -16179315, "createdBy": "deserunt elit consequat", "created": "1998-06-02T15:41:05.811Z", "lastUpdatedBy": "velit ad id adipisicing", "lastUpdated": "2009-12-20T06:45:47.352Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "e76ff955b3b7ff5c7f086318", "gbac": { "write": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "designers", "description": "Description of a group" } ], "read": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" } ] }, "componentName": null, "createdBy": "do dolor culpa", "created": "1976-03-19T14:42:32.671Z", "lastUpdatedBy": "culpa", "lastUpdated": "1970-07-02T05:04:04.53Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "27a26c1f5e1173951a03f8be", "source": "amet veniam Excepteur", "topic": "eiusmod in aute Duis", "schema": null, "_id": "3e1afe4f144a517bab5114e8", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 23897213, "migrationVersion": 94522642, "legacyWrapper": true, "createdBy": "officia dolor", "created": "1995-03-25T13:04:16.108Z", "lastUpdatedBy": "Duis laboris eiusmod elit", "lastUpdated": "1967-11-24T11:38:23.935Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "4ce7abdadbe90ff41e71b700", "verb": "POST", "routeName": "8Fa0x3KFZOZ", "schema": null, "_id": "4dec442e388687e7fb23f734", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 86180397, "createdBy": "ex in", "created": "1989-09-25T06:12:22.396Z", "lastUpdatedBy": null, "lastUpdated": "1958-07-18T07:42:13.846Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "bf44d4dc023355b56a61e5d2", "verb": "POST", "routeName": "YZwhwuh3M", "schema": null, "_id": "9ecfcb8fb090fc0d6743e000", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -83872510, "createdBy": "nulla amet aliqua cupidatat", "created": "1962-10-14T21:31:38.982Z", "lastUpdatedBy": null, "lastUpdated": "1992-11-03T13:51:41.1Z" } ] } ], "options": { "adapterMap": { "old_name": "new_name" } } }
{ "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": "ucm_compliance_plans", "createdBy": "Pronghorn", "created": "1998-04-01T19:15:05.702Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "2015-04-20T00:19:22.183Z", "_id": "78f6e8c2f4a0691c732dbb36", "gbac": { "write": [ "5e4f425fee396258ed9a9078", "0d28472ef13fa651743e5718", "c4e24fa9d5f7da18e4582f07" ], "read": [ "972b575211e5c9b696d83ea6" ] }, "componentId": null } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "ucm_compliance_plans", "createdBy": "e8316314602f246f2b651cf5", "created": "1954-12-04T17:12:41.471Z", "lastUpdatedBy": "dc9e42eb30938ccd721c82d0", "lastUpdated": "1985-03-20T16:35:59.938Z", "_id": "ff3289d0d3ecf32ab0492427", "gbac": { "write": [ "18f0050ad08f810cb032fafa" ], "read": [ "9d65d91fcca197f25f158a2d", "4c8f74aa8f8efd48924648ed" ] }, "componentId": "3672ef195db27cd9d8520479" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "029ebf28c381b7533d39d73e", "created": "1953-06-20T00:25:27.178Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1979-09-10T06:13:33.336Z", "_id": "0f7d8f4d43d5dcfb65b8b5c0", "gbac": { "write": [ "febbf3a367875c1bece5bb2e", "364441a5ffc6e59430c16656", "968653eabac296d8633e3726", "26c500b6f41e4cc8f4323948", "a286139b84deb523ae05d397" ], "read": [ "3790473fc80f3af6b51ca4b0", "cc9d6db5a9d6a2b3a90d4253", "e105c68ef975340825265297", "8b24122c27f926c588d138a8" ] }, "componentId": "4238e01020bbdef4ff9710dc" } } ] }
{ "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" } } } ] } } } } } } ] }