Summary
Clone Automation
Description
Clone an Automation.
Route
POST /operations-manager/automations/clone
Roles
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| automation | object | yes | The id of the Automation to be cloned and, optionally, a name to assign to the clone. |
{ "id": "27e02170ccd1deb981fdc846", "name": null }
{ "title": "automation", "properties": { "id": { "description": "The id of the Automation to be cloned.", "$ref": "common#/definitions/ObjectIdLikeString" }, "name": { "description": "An optional name to use for the clone.", "oneOf": [ { "type": "null" }, { "$ref": "common#/definitions/name" } ] } } }
Return
| Name | Type | Description |
|---|---|---|
| result | object | The result of the clone operation. |
{ "message": "Successfully created the requested item", "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "consequat commodo", "created": "2013-06-27T14:32:55.567Z", "lastUpdatedBy": "amet magna sunt anim", "lastUpdated": "2018-01-22T02:58:12.597Z", "_id": "de95390a58034b695be9c2d2", "gbac": { "write": [ "65d1c6208b7e14dae8d976ca", "493bd4df62bbf5643ed51229", "89d006fb061a3f9eb6fda22b", "1df02b8058d86c0afb37ee35" ], "read": [ "6915aa0d134e8ba5f8fa626a", "b45d243f2543dbdf2fddf536" ] }, "componentId": "", "componentName": "aute laboris non cupidatat" }, "metadata": { "automaticChanges": [ "ad" ], "triggerCloneResults": { "message": "exercitation ullamco ipsum nisi", "data": [ { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "27877cb18c793919a248671c", "lastExecuted": 44403035, "createdBy": "eu et", "created": "1983-10-09T13:16:50.497Z", "lastUpdatedBy": "nulla", "lastUpdated": "1960-03-29T17:26:43.148Z", "verb": "POST", "routeName": "8Fchs1", "_id": "f16d5c6568a34347b9cae4d1", "jst": "eeb653f7a4ab425c31e4785a", "migrationVersion": 31806096 }, "automaticChanges": [ "veniam exercitation esse incididunt" ] }, { "success": false, "data": { "name": -66533661.13293182, "description": 67761557.07455996, "type": -23398633, "enabled": "elit eu ut", "actionType": 94108283.99336153, "actionId": false, "lastExecuted": -45169004, "createdBy": -88601969.25751472, "created": false, "lastUpdatedBy": -13307549, "lastUpdated": 91149115.33271152, "formData": false, "legacyWrapper": true, "firstRunAt": -36548987, "nextRunAt": 3885546.497997746, "processMissedRuns": false, "locked": 95988950, "repeatUnit": -66254271, "repeatFrequency": true, "repeatInterval": true, "_id": 51294295, "formId": -58087575.211163945 }, "automaticChanges": [ "nostrud id minim", "tempor in deserunt", "ea sit eiusmod consequat" ] }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "b66d3800c3268e0c5ab19792", "lastExecuted": 74991106, "createdBy": null, "created": "2002-12-25T01:18:54.575Z", "lastUpdatedBy": "esse exercitation in", "lastUpdated": "2023-02-23T22:00:54.726Z", "source": "nisi sed do veniam", "topic": "in nulla consectetur esse", "schema": null, "legacyWrapper": true, "_id": "fc445b67bfa320184c940628", "jst": null, "migrationVersion": -72789590 }, "automaticChanges": [ "ullamco consectetur" ] }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "d499f5df4142f39907d9f622", "lastExecuted": 4301802, "createdBy": "incididunt in nulla officia do", "created": "1970-08-29T02:02:46.7Z", "lastUpdatedBy": null, "lastUpdated": "1977-04-13T20:33:31.781Z", "source": "dolore eu", "topic": "fugiat irure cupidatat amet", "schema": null, "legacyWrapper": true, "_id": "0502c490814a53e7b6dc2195", "jst": null, "migrationVersion": -95456084 }, "automaticChanges": [ "ad proident" ] }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "366876f19e53bdaf39621557", "lastExecuted": null, "createdBy": "Ut dolor dolore laborum anim", "created": "1983-06-10T15:18:43.82Z", "lastUpdatedBy": null, "lastUpdated": "2007-03-07T22:49:06.415Z", "verb": "POST", "routeName": "EnYgFGH9uP_", "schema": null, "_id": "8deb954ff78995b20731eda7", "jst": null, "migrationVersion": -81436644 }, "automaticChanges": [ "non et consectetur ea", "cupidatat elit", "pariatur ea Lorem laborum", "deserunt Ut enim sit ut", "nostrud exercitation" ] } ] } } }
{ "title": "result", "allOf": [ { "$ref": "common-api#/definitions/success-response" }, { "type": "object", "properties": { "data": { "$ref": "automation-api" }, "metadata": { "type": "object", "properties": { "automaticChanges": { "type": "array", "items": { "title": "messages", "type": "string", "example": "Disabled trigger 628672e8f677b67b3b0f20d7" } }, "triggerCloneResults": { "type": "object", "properties": { "message": { "type": "string" }, "metadata": { "type": "object" }, "data": { "type": "array", "items": { "type": "object", "properties": { "success": { "type": "boolean" }, "data": { "$ref": "trigger-api" }, "automaticChanges": { "type": "array", "items": { "title": "messages", "type": "string", "example": "Disabled trigger 628672e8f677b67b3b0f20d7" } } } } } } } } } } } ] }