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": "32a27711b2ac45f2436ebc4e", "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 created the requested item", "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "amet pariatur do", "created": "1956-04-30T23:54:25.114Z", "lastUpdatedBy": "do aliqua exercitation tempor", "lastUpdated": "1952-11-20T09:24:56.321Z", "_id": "a8b7a2607c4173321d0fe255", "gbac": { "write": [ "b859e1da2db311ec195fdac1", "db52f02e6ec92c661c301d75", "eedac61fbae5d9882f934149" ], "read": [ "d47809f8c435ed8b6e498db9" ] }, "componentName": null }, "metadata": { "automaticChanges": [ "ullamco laboris cillum", "nulla tempor", "esse ex cillum irure", "culpa incididunt", "laborum" ], "triggerCloneResults": { "message": "in in esse", "data": [ { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "f4757e95e22472ffc83e347d", "lastExecuted": null, "createdBy": "culpa Duis", "created": "2005-02-26T00:27:51.809Z", "lastUpdatedBy": "ullamco sed", "lastUpdated": "2024-11-02T17:07:55.224Z", "verb": "POST", "routeName": "cTm3yq", "schema": null, "_id": "0ce2e6a431c02d1557b321c2", "jst": null, "migrationVersion": -31678323 }, "automaticChanges": [ "labore laborum ut ex", "Lorem aliqua nulla", "aliquip", "ut elit et nulla" ] }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "47f9c85a0819d243c85be5a0", "lastExecuted": null, "createdBy": null, "created": "1977-08-05T16:38:45.396Z", "lastUpdatedBy": "Excepteur", "lastUpdated": "2002-08-16T11:52:35.528Z", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "legacyWrapper": false, "_id": "7906934a2cca902949ef4ed1", "formId": null, "migrationVersion": 30560280, "formSchemaHash": "fugiat Duis nulla" }, "automaticChanges": [ "incididunt ullamco elit", "ipsum sint aliqua nulla", "deserunt in dolore irure fugiat" ] }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "159e054a6397607f1b79aece", "lastExecuted": null, "createdBy": null, "created": "1978-10-06T07:26:18.156Z", "lastUpdatedBy": null, "lastUpdated": "1999-08-14T19:54:49.97Z", "verb": "POST", "routeName": "D_79o", "schema": null, "_id": "988dfb1f40562974b1de68ee", "jst": "5bf74618e7530b44ccba2714", "migrationVersion": 62212291 }, "automaticChanges": [ "enim consequat aliquip est", "ex proident sint culpa deserunt", "Duis dolor Excepteur", "reprehenderit" ] }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "371981e31920990bf26ac15a", "lastExecuted": 40053902, "createdBy": null, "created": "2004-06-12T08:41:45.466Z", "lastUpdatedBy": null, "lastUpdated": "1965-03-02T21:48:41.116Z", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "legacyWrapper": false, "_id": "76dda9018803696c884b7faa", "formId": "47afd676e0a97b41cb9fe375", "migrationVersion": 94536539, "formSchemaHash": "aliquip dolore" }, "automaticChanges": [ "minim dolor est ut", "ullamco in occaecat", "sed eiusmod", "ea aute proident sit ipsum", "aliqua pariatur ullamco sunt" ] } ] } } }
{ "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" } } } } } } } } } } } ] }