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": "28c434373583665a0f2555da", "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": null, "created": "2011-03-27T06:53:17.508Z", "lastUpdatedBy": null, "lastUpdated": "1962-11-02T06:00:59.16Z", "_id": "a75bc9639dec7911322867f7", "gbac": { "write": [ "30ca023fe489408e7f2dc3ae", "3888d47007aec6e8096a672a", "ab3ac985857e76d5cbd6d73e", "2397f11a13fffc586df2e0ac" ], "read": [ "067aa42c71b9ea72d81dca9f" ] }, "componentId": "" }, "metadata": { "automaticChanges": [ "deserunt", "ea id Excepteur quis" ], "triggerCloneResults": { "message": "Excepteur elit eiusmod pariatur ut", "data": [ { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "b9feceec7e783a0abb20500a", "lastExecuted": null, "createdBy": null, "created": "2006-02-05T03:21:03.645Z", "lastUpdatedBy": "in", "lastUpdated": "2008-05-09T08:23:44.25Z", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "f18f8131cc3bd418237b0220", "formId": null, "migrationVersion": 36338577, "formSchemaHash": null, "legacyWrapper": true }, "automaticChanges": [ "exercitation", "ipsum Ut", "aute magna in consectetur aliquip", "cillum Lorem enim mollit labore", "ex" ] }, { "success": false, "data": { "name": -55331990, "description": -20871613.278264925, "type": "ea sint ullamco laborum nisi", "enabled": 1210839, "actionType": 66408514, "actionId": true, "lastExecuted": 89185715.0578199, "createdBy": 46817260.274318665, "created": 91192051, "lastUpdatedBy": "adipisicing laboris", "lastUpdated": true, "formData": -4276450.388333425, "firstRunAt": false, "nextRunAt": 21813108, "processMissedRuns": 58111736, "locked": "nostrud", "repeatUnit": "do elit Ut enim", "repeatFrequency": -38198939, "repeatInterval": 77978272.82665798, "_id": "ea esse Excepteur incididunt", "formId": 72403560 }, "automaticChanges": [ "minim Lorem", "id ut est", "cupidatat esse do" ] }, { "success": false, "data": { "name": 40053327, "description": -31501044, "type": -30166756, "enabled": "in dolore sint", "actionType": "et minim", "actionId": "dolor ad tempor et cillum", "lastExecuted": 21527751.86404647, "createdBy": true, "created": 37464374, "lastUpdatedBy": -22853007, "lastUpdated": -8075058.818636686, "formData": 22551339.056608915, "firstRunAt": -97286749, "nextRunAt": 27785748.837332264, "processMissedRuns": -19615569, "locked": false, "repeatUnit": "aliquip", "repeatFrequency": 63816713, "repeatInterval": true, "_id": 52545683, "formId": false }, "automaticChanges": [ "elit anim", "proident", "consequat aute aliquip", "in pariatur ipsum", "ea" ] }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "d91a5008395192ca67ff06d4", "lastExecuted": 19383705, "createdBy": null, "created": "2011-04-02T05:51:01.709Z", "lastUpdatedBy": null, "lastUpdated": "1987-06-26T00:14:41.125Z", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "a59adf16d0971781b84edfc2", "formId": null, "migrationVersion": -63825091, "formSchemaHash": "pariatur proident nulla", "legacyWrapper": false }, "automaticChanges": [ "et Duis cillum Lorem sint", "labore in do", "ullamco", "ullamco", "laboris exercitation do laborum" ] } ] } } }
{ "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" } } } } } } } } } } } ] }