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": "b486e9bde3a21c152fb132d8", "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": "ucm_compliance_plans", "createdBy": null, "created": "1946-08-06T22:04:53.895Z", "lastUpdatedBy": "Lorem ipsum ea", "lastUpdated": "2009-08-06T18:52:19.059Z", "_id": "d441869c2560eabde885151a", "gbac": { "write": [ "fc50b05cf0df876ebbc57fe9", "693739aade8d04c158857259", "48fe63124eda492a31173219", "4b660424efd28941d9f8e44f", "94052688fba1875cfe1fb0d5" ], "read": [ "4400780035f92fba251efc82", "6e4a44f2a0d011f717130759", "41aa117bbc6bfbeb571deecf" ] }, "componentName": null }, "metadata": { "automaticChanges": [ "aute ullamco", "nostrud consequat dolore adipisicing", "proident est cillum aliqua", "in tempor sint esse", "dolore ad voluptate cupidatat do" ], "triggerCloneResults": { "message": "sed pariatur id", "data": [ { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "6859dae4d1da0a21bcddc6ee", "lastExecuted": null, "createdBy": null, "created": "1955-07-03T10:48:12.374Z", "lastUpdatedBy": null, "lastUpdated": "1990-09-17T22:30:48.724Z", "verb": "POST", "routeName": "RFc", "_id": "e8832107ffa18bb98e46e138", "jst": null, "migrationVersion": 42577791 }, "automaticChanges": [ "minim adipisicing Lorem id dolor", "adipisicing non eiusmod consequat elit", "Duis nulla ea cillum" ] }, { "success": true, "data": { "name": "enim ex in", "description": -53468371.143397465, "type": -28365561.34457439, "enabled": "nostrud sit Lorem pariatur", "actionType": true, "actionId": true, "lastExecuted": -43842295.902834974, "createdBy": "mollit anim ut", "created": "occaecat Duis", "lastUpdatedBy": false, "lastUpdated": true, "formData": "dolor", "legacyWrapper": "nostrud quis Excepteur laborum", "firstRunAt": -27602417.31486848, "nextRunAt": "ad Excepteur eiusmod ut Duis", "processMissedRuns": -6719156, "locked": -19448483, "repeatUnit": -41897809, "repeatFrequency": -36013302, "repeatInterval": "in deserunt pariatur aliqua", "_id": 63493204, "formId": true }, "automaticChanges": [ "aute", "labore nulla sed ipsum pariatur" ] }, { "success": false, "data": { "name": -47219239.80851108, "description": 5664048, "type": "consectetur", "enabled": false, "actionType": false, "actionId": false, "lastExecuted": "consectetur", "createdBy": 16885851.824663952, "created": 60588810, "lastUpdatedBy": -48445920.59939061, "lastUpdated": -21173753.00723757, "formData": "amet", "legacyWrapper": -82499936, "firstRunAt": "do", "nextRunAt": -1881846.409663394, "processMissedRuns": 62779883, "locked": false, "repeatUnit": -56175988.38090139, "repeatFrequency": "laboris Lorem reprehenderit incididunt veniam", "repeatInterval": -15266801.453242838, "_id": -28491219, "formId": 17728815 }, "automaticChanges": [ "in est nostrud", "pariatur nisi consectetur qui", "Lorem consectetur proident ea", "elit dolor dolore esse", "dolore officia fugiat Lorem" ] }, { "success": false, "automaticChanges": [ "dolore culpa proident", "cillum eu aliqua" ] }, { "success": true, "automaticChanges": [ "occaecat incididunt sint", "reprehenderit labore elit aliqua voluptate", "eiusmod enim anim aliquip" ] } ] } } }
{ "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" } } } } } } } } } } } ] }