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": "4717370cf612807b237d3793", "gbac": { "write": [ { "provenance": "ldap", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "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": "designers", "description": "Description of a group" } ], "read": [ { "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" } ] }, "componentName": null, "createdBy": "ullamco", "created": "2019-06-01T04:48:43.001Z", "lastUpdatedBy": "nulla reprehenderit do", "lastUpdated": "1965-09-18T07:16:01.493Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "ff1ccaf6a08b6e2ab99e580e", "verb": "POST", "routeName": "hkgHFr5Kq", "schema": null, "_id": "5633c120b98340979a9cad33", "description": "Some helpful information about the document", "lastExecuted": 88380096, "migrationVersion": 52058942, "createdBy": null, "created": "1958-11-01T16:35:33.546Z", "lastUpdatedBy": null, "lastUpdated": "1946-02-27T23:18:40.049Z" }, { "name": 8840150.045786157, "type": 97304079, "enabled": -62570252.53384963, "actionType": "ut exercitation", "actionId": false, "formData": -9194788.929765448, "firstRunAt": true, "processMissedRuns": -65981073.260438986, "repeatUnit": 177883, "repeatFrequency": -36292679.85846707, "repeatInterval": -85089286, "_id": 89071492.2557671, "formId": -80252774 }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "54831ff71e52e8de86acf685", "source": "fugiat laborum", "topic": "occaecat consequat ullamco et pariatur", "schema": null, "_id": "cd23271f5536f35106daabde", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 14864117, "migrationVersion": 66953267, "createdBy": null, "created": "1945-12-22T08:56:24.65Z", "lastUpdatedBy": null, "lastUpdated": "1949-06-02T03:14:44.565Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "337665ac366d3cca3452e550", "gbac": { "write": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ] }, "componentName": null, "createdBy": "occaecat sed non elit", "created": "2006-02-20T17:44:49.762Z", "lastUpdatedBy": "labore officia", "lastUpdated": "1956-07-14T18:31:20.509Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "9dea8f4dcbd65ac30da81515", "source": "voluptate", "topic": "id eu veniam sunt exercitation", "_id": "71c8d31866024b568bc592ea", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 17695556, "migrationVersion": -54128245, "createdBy": null, "created": "2011-05-02T23:02:49.104Z", "lastUpdatedBy": "dolor occaecat fugiat ipsum aliqua", "lastUpdated": "1959-03-10T06:07:43.531Z" }, { "name": "ex", "type": false, "enabled": -82440162.52027033, "actionType": 84125802, "actionId": 11120233, "formData": -14915488, "firstRunAt": "Duis occaecat cillum est fugiat", "processMissedRuns": "sed nulla consectetur dolore", "repeatUnit": false, "repeatFrequency": "cupidatat irure anim Duis", "repeatInterval": "irure id ad in", "_id": "officia laboris esse", "formId": -56177045 } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "4bdfb30ea4e8b439587c6bfd", "gbac": { "write": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "admins", "description": "Description of a group" }, { "provenance": "ldap", "name": "operators", "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": "operators", "description": "Description of a group" } ] }, "componentName": null, "createdBy": "pariatur sit", "created": "2004-06-11T22:50:53.604Z", "lastUpdatedBy": null, "lastUpdated": "1968-08-06T00:07:54.585Z", "triggers": [ { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "fcc44e7a59b96f53a7127072", "verb": "POST", "routeName": "F", "_id": "f9e5c5ecde78537698de9db3", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 66492194, "createdBy": null, "created": "2020-10-16T15:09:53.683Z", "lastUpdatedBy": null, "lastUpdated": "1973-11-28T03:42:06.628Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "4098fd35652aeab185bd83f2", "gbac": { "write": [ { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" } ], "read": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" } ] }, "componentName": "dolore", "createdBy": null, "created": "2002-11-30T01:19:50.268Z", "lastUpdatedBy": "cillum nostrud non quis qui", "lastUpdated": "2024-06-19T06:25:26.106Z", "triggers": [ { "name": false, "type": -8517251.586590558, "enabled": true, "actionType": -2936693.2513089925, "actionId": -27329863, "formData": 53841483, "firstRunAt": false, "processMissedRuns": "nulla nostrud", "repeatUnit": -35698149, "repeatFrequency": "sit mollit quis Lorem", "repeatInterval": -12266832.900585458, "_id": 48351051.8630653, "formId": true }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "8cf2d19e62465c3d9cd1c086", "verb": "POST", "routeName": "IKF6GdGUcp8", "schema": null, "_id": "4e3e39bfc89929584196d22a", "jst": null, "description": "Some helpful information about the document", "lastExecuted": 68667333, "migrationVersion": 72024864, "createdBy": "consectetur nisi anim occaecat reprehenderit", "created": "1968-12-27T04:23:03.453Z", "lastUpdatedBy": null, "lastUpdated": "1980-01-08T04:32:53.31Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "3d56559478509ee84c63bfb3", "verb": "POST", "routeName": "JgHXbAXc9J", "_id": "03c6a4a7e93da08c4ed66f60", "description": "Some helpful information about the document", "lastExecuted": 78404865, "migrationVersion": 29991545, "createdBy": null, "created": "1997-11-11T03:42:16.743Z", "lastUpdatedBy": null, "lastUpdated": "1981-01-06T15:21:00.188Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "0f0620e659eeac09b074d51b", "verb": "POST", "routeName": "iIy", "_id": "8c5a4e7ff578b16dbd66e4c0", "description": "Some helpful information about the document", "lastExecuted": 74429673, "migrationVersion": 14462256, "createdBy": "labore aliquip dolore", "created": "1957-11-22T16:44:55.173Z", "lastUpdatedBy": null, "lastUpdated": "1994-04-13T09:23:58.22Z" }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "6382818d91859074945215e5", "verb": "POST", "routeName": "mXFtVLYO", "_id": "0cb3ad7196cf232093d211f4", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -93639527, "createdBy": "aute non nisi ut adipisicing", "created": "1978-08-19T02:03:28.59Z", "lastUpdatedBy": "ad", "lastUpdated": "2011-11-23T17:04:53.751Z" } ] } ], "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 imported 3 of 4 documents", "data": [ { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "Pronghorn", "created": "1970-09-28T14:40:51.796Z", "lastUpdatedBy": "c72e5a7db0106b3abb522104", "lastUpdated": "1995-09-22T14:43:28.133Z", "_id": "83d96e0dccabb09036687215", "gbac": { "write": [ "0f2a352291d6c46bccb3d862", "f6c357a034c78f5f823dbc3d", "6b2af37731af4a4ee1b909c3", "770ea7cc96b42945beb7e89d" ], "read": [ "914561efbfb796d028631e81", "598a625f524ad473b6add4e6", "d881a1c2c8d81b5393cf7b9f", "33accd71950939f9b1d491f0", "4b535f9d6123a907932b43b2" ] }, "componentId": "4bDC34CC-eDb7-AAe0-2bCC-7751Adca6FEb" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "8b62ddfad91d6f6f56e2ce3f", "created": "2008-08-11T20:16:02.07Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1985-09-23T02:30:19.488Z", "_id": "49465373a83619a26e660009", "gbac": { "write": [ "ecc8a7bc305c9a7e5cd14f2f", "0a6c09c7e5dc0e151278be16", "7951a4697c79e2a993e1dd48", "83d90fea411002426c3ce1c4", "63f1b460305b9bc44d24e1b5" ], "read": [ "9210c9494f66173be8a65e74", "652f2ddb7ded72c4ce794c2a", "61722b87a696862be75bba75", "acde90fcb3ef919cf17648d4", "4573f6aeeb85e5bb1fdbbdd5" ] }, "componentId": "c35a90bcce91d8c0dda9c5f7" } } ] }
{ "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" } } } ] } } } } } } ] }