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": "c66a94094f0354ab21eb8213", "gbac": { "write": [ { "provenance": "localAAA", "name": "designers", "description": "Description of a group" }, { "provenance": "ldap", "name": "admins", "description": "Description of a group" }, { "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" } ] }, "componentName": null, "createdBy": null, "created": "1958-05-26T21:02:59.538Z", "lastUpdatedBy": "velit ad", "lastUpdated": "1972-07-12T13:07:15.447Z", "triggers": [ { "name": -48683264.031756625, "type": "Excepteur tempor et", "enabled": "et proident", "actionType": false, "actionId": 9697995, "formData": 59884972.85530734, "firstRunAt": true, "processMissedRuns": 20464586, "repeatUnit": false, "repeatFrequency": 91793495, "repeatInterval": -20029399, "_id": "incididunt Lorem", "formId": 14091836 } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "_id": "ba5243dbf124e1588e4d5cc4", "gbac": { "write": [ { "provenance": "localAAA", "name": "designers", "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": "eu in fugiat", "createdBy": "veniam fugiat ipsum eu", "created": "1957-09-19T11:43:25.781Z", "lastUpdatedBy": "cupidatat est ut veniam", "lastUpdated": "2017-01-03T16:25:15.992Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "fabca4bdf9463e5839ce444c", "source": "dolor", "topic": "eiusmod amet reprehenderit", "_id": "69fcc5020918355e5e88cda2", "jst": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": 37822525, "legacyWrapper": false, "createdBy": "Excepteur Duis occaecat ut", "created": "1995-12-29T23:19:30.06Z", "lastUpdatedBy": null, "lastUpdated": "1968-10-06T05:14:53.247Z" } ] }, { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "_id": "34c112ad57affaa2a18af4bd", "gbac": { "write": [ { "provenance": "localAAA", "name": "operators", "description": "Description of a group" }, { "provenance": "localAAA", "name": "admins", "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": "designers", "description": "Description of a group" } ] }, "componentName": "officia fugiat", "createdBy": null, "created": "1984-12-15T01:56:47.446Z", "lastUpdatedBy": "ut irure culpa", "lastUpdated": "1952-07-25T03:05:31.196Z", "triggers": [ { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "a2a3eb8d1802e8ede93d8a83", "source": "amet", "topic": "ea dolor", "schema": null, "_id": "3301dc3476a3fa8a2df57e11", "description": "Some helpful information about the document", "lastExecuted": 3288777, "migrationVersion": -53207612, "legacyWrapper": true, "createdBy": "quis sint", "created": "1962-02-28T03:45:42.165Z", "lastUpdatedBy": null, "lastUpdated": "1998-02-15T09:36:46.49Z" }, { "name": "myCoolDocumentName", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "372f9cf48267a8a16293f028", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "ceb5d839bf5f52af6cef6b33", "formId": null, "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -52085794, "createdBy": "Lorem nulla", "created": "1962-11-28T10:02:48.144Z", "lastUpdatedBy": null, "lastUpdated": "1991-03-06T02:37:08.179Z", "formSchemaHash": null, "legacyWrapper": true }, { "name": "myCoolDocumentName", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "bf8bcf36b3c0386d57209067", "verb": "POST", "routeName": "uVoCk8IrS", "schema": null, "_id": "a6fd2817c710de5da4216909", "description": "Some helpful information about the document", "lastExecuted": null, "migrationVersion": -22157187, "createdBy": "voluptate dolore irure aliqua Ut", "created": "1994-03-04T06:25:27.989Z", "lastUpdatedBy": "aliqua", "lastUpdated": "1954-04-29T12:23:17.977Z" }, { "name": "adipisicing do laboris nostrud", "type": 90292451, "enabled": -42611290.21000278, "actionType": 31300414.662785545, "actionId": false, "formData": "aute enim irure dolore", "firstRunAt": false, "processMissedRuns": true, "repeatUnit": -6499436.684665352, "repeatFrequency": true, "repeatInterval": -93598845.8917313, "_id": "minim esse dolor id", "formId": -41491934 }, { "name": "myCoolDocumentName", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "b0db431ee5313167bad3fa4d", "source": "cupidatat nulla qui do adipisicing", "topic": "incididunt", "_id": "188680f9e8aceb1c4ac442f1", "description": "Some helpful information about the document", "lastExecuted": 3361792, "migrationVersion": 53738212, "legacyWrapper": true, "createdBy": "dolore nostrud sed", "created": "1996-05-24T16:16:20.838Z", "lastUpdatedBy": null, "lastUpdated": "2001-02-20T02:51:13.931Z" } ] } ], "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 created the requested item", "data": [ { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "Pronghorn", "created": "1961-07-04T20:24:57.773Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1997-10-04T13:50:37.948Z", "_id": "dd00827fc8be8a4020b3bfbb", "gbac": { "write": [ "80bf8ad5544135a177ca48ee" ], "read": [ "10608ab3a5896f6ee0245d15", "df765f6ca6e80622133d936b" ] }, "componentId": "" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "6851ec720bb1811559023649", "created": "1961-06-13T18:10:27.104Z", "lastUpdatedBy": "Pronghorn", "lastUpdated": "1992-11-06T22:59:07.383Z", "_id": "775a1190f8a6f39572d20fc4", "gbac": { "write": [ "013f2382dfe21de3f1a74f19", "ddc78582aac05afdd91b3713", "4feac2132d4bc7fb23676299", "898aea9de9b7ecf2edf45108" ], "read": [ "39c01ffa5f7b762ffdbf55ed", "2e3ed9282a558023126f8149", "26c96517a3c621766a9a806f", "58795a04731f16a43d293637" ] }, "componentId": "" } }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "d9182c1bba532a8cbce95e5e", "created": "2023-12-24T06:44:54.682Z", "lastUpdatedBy": "d602332bc7ea40018747a341", "lastUpdated": "1952-03-31T09:50:08.592Z", "_id": "67ff599c581edcf5c1bf6268", "gbac": { "write": [ "1bf084daddfd2441e4269666", "9338a09618bb17b248ecc2a9", "cd80c22f350ac5be2976c18b", "7b57c2d2a648bbe8267918e3" ], "read": [ "c5dfd7423434cc793a4d96ba", "64030d7763bcc3514aa6a8d5", "354d1d199725f7c396624704", "026ff4360c23edbfd2a51a4d" ] }, "componentId": "" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "8e2508f636325cdf3a32c945", "created": "1988-08-28T17:26:57.526Z", "lastUpdatedBy": "bcaed0e22a342a9a42a50406", "lastUpdated": "1958-06-18T18:18:12.087Z", "_id": "19e0b8bc630b1be895f7e584", "gbac": { "write": [ "33197ed8428b2e562fe34f04", "09e53b561a157b45e882b202", "d7e37ca1cc80726bb35dd341", "d1263160bcfd7c087b48f3db", "fbd2d7e02aef9a33ee8227db" ], "read": [ "67c334c5f557d647812f6756", "eb4b183914896d0e2e6ac531", "b6ba46695898ebf51180b041", "636167ebc0b4e855993b91d6" ] }, "componentId": "" } }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "8918eccf62ac0d3de79ccaa7", "created": "1982-11-26T19:45:15.508Z", "lastUpdatedBy": "6360531571bfafbd935b3d10", "lastUpdated": "2024-03-17T00:46:23.204Z", "_id": "40b73167ee0b491509dd6ec9", "gbac": { "write": [ "37eb8113536b8ba759b1ebc0", "308e9ac0abdb9683ddf699ac" ], "read": [ "fd624c85e4bf6667cdf7fa74", "e7ee6af3ccc50900dff6344c", "0da742d788f445e842669510" ] }, "componentId": "256fc34915b7760a656d2dc7" } } ] }
{ "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" } } } ] } } } } } } ] }