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": "fde179a9587ee81c3c5f37d9", "name": "myCoolDocumentName" }
{ "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 retrieved search results", "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": null, "created": "1986-08-18T10:33:14.075Z", "lastUpdatedBy": null, "lastUpdated": "1973-10-07T08:54:29.472Z", "_id": "6f3b222dd88dc5d129fa53ce", "gbac": { "write": [ "a41e2998050b1976a8bcb918", "906225e730eeafeb63bf3131", "77ddf95c4361c7d7e4aae5a3", "fb0024f1d54171c9a32f117c", "5eda85530d41b28ce028ec97" ], "read": [ "3f7f3e169d425cbd22fa2edc", "a955422bce6568fb8e3c9ea6" ] }, "componentId": "18ED5CfB-1E89-Fe06-85E9-c04A6F9A8823", "componentName": null }, "metadata": { "automaticChanges": [ "sed mollit", "est" ], "triggerCloneResults": { "message": "pariatur non aliqua eu reprehenderit", "data": [ { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "37fe78845efaa50427f8abfc", "lastExecuted": 67599275, "createdBy": "dolor ut do sint", "created": "1988-07-11T01:44:21.467Z", "lastUpdatedBy": "cupidatat dolore Lorem magna", "lastUpdated": "2010-03-11T04:36:02.995Z", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "legacyWrapper": false, "_id": "2e25eb3a0379b33e7d99c5a7", "formId": null, "migrationVersion": 91326506, "formSchemaHash": "Excepteur culpa dolor" }, "automaticChanges": [ "elit dolore deserunt dolor pariatur", "sed" ] }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "6bde627e68274f046da2b2cc", "lastExecuted": null, "createdBy": "ex veniam", "created": "1977-10-28T12:18:54.375Z", "lastUpdatedBy": null, "lastUpdated": "2024-12-14T01:17:06.759Z", "source": "dolore irure", "topic": "est laboris nisi magna ut", "schema": null, "legacyWrapper": true, "_id": "00c8a67810823574a174c332", "jst": null, "migrationVersion": -35858762 }, "automaticChanges": [ "sed", "in eiusmod Excepteur", "ipsum ut", "est occaecat eiusmod aliqua" ] }, { "success": true, "data": { "name": true, "description": 31202571, "type": "eiusmod dolore id est", "enabled": "magna tempor cupidatat", "actionType": 21049052.003729507, "actionId": 33831207, "lastExecuted": -14988628, "createdBy": "laboris labore", "created": true, "lastUpdatedBy": false, "lastUpdated": "laborum eu laboris enim cupidatat", "formData": 37580287, "legacyWrapper": -62266873, "firstRunAt": -43874484, "nextRunAt": 66065477.39286256, "processMissedRuns": 64111169.70180744, "locked": -85670648.4414567, "repeatUnit": -89466723, "repeatFrequency": "irure", "repeatInterval": 14944592, "_id": false, "formId": false }, "automaticChanges": [ "eu in ipsum ut", "deserunt nisi" ] }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "6ad1fb9f4dd5fd80f46c76b5", "lastExecuted": null, "createdBy": null, "created": "2023-11-11T09:27:45.146Z", "lastUpdatedBy": null, "lastUpdated": "2024-03-29T02:26:31.893Z", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "legacyWrapper": true, "_id": "05848ef8d80d366f1891771e", "formId": "374c17ef5bd34188f641003e", "migrationVersion": 28936636, "formSchemaHash": null }, "automaticChanges": [ "consequat mollit" ] } ] } } }
{ "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" } } } } } } } } } } } ] }