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": "ae3511b6139044575afca664", "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 retrieved search results", "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": null, "created": "1949-08-06T07:51:03.445Z", "lastUpdatedBy": "officia ad aute", "lastUpdated": "1981-04-07T16:16:10.754Z", "_id": "bcd4058f043bb0a91ece3a68", "gbac": { "write": [ "cf0ac497df241f9253c94872", "ae43d20b7a1037ba2dce2189", "369890f41edf3e307246a776" ], "read": [ "e58016361229f80f28d0388f" ] }, "componentId": "" }, "metadata": { "automaticChanges": [ "est ullamco ut laboris" ], "triggerCloneResults": { "message": "amet cupidatat aliquip", "data": [ { "success": false, "data": { "name": -6373645, "description": 50984312, "type": false, "enabled": 42980236.55638966, "actionType": true, "actionId": "cupidatat ullamco magna voluptate", "lastExecuted": "labore", "createdBy": "in dolore ut", "created": -74634146, "lastUpdatedBy": false, "lastUpdated": -54763997.56859056, "formData": true, "legacyWrapper": true, "firstRunAt": "dolore veniam anim Duis magna", "nextRunAt": -97084434.34715997, "processMissedRuns": false, "locked": 40881279, "repeatUnit": true, "repeatFrequency": "adipisicing sunt dolor ipsum nisi", "repeatInterval": "minim non", "_id": 25869831.722951457, "formId": 84051008 }, "automaticChanges": [ "Excepteur voluptate dolor", "dolore incididunt sed", "aliqua elit", "non minim est laborum", "cillum" ] }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "ac2a77823da9e496fd16c614", "lastExecuted": null, "createdBy": "consectetur commodo", "created": "2021-11-19T01:57:37.753Z", "lastUpdatedBy": null, "lastUpdated": "1966-06-12T03:00:37.045Z", "verb": "POST", "routeName": "l1S", "_id": "faae15979b2c7cb4de6cd17f", "jst": null, "migrationVersion": -5846637 }, "automaticChanges": [ "occaecat mollit dolore", "anim", "culpa ad deserunt in anim", "pariatur do", "adipisicing id dolore" ] }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "730cfd9a853df8a6a87a34f7", "lastExecuted": null, "createdBy": "eu est id dolore eiusmod", "created": "1947-05-30T02:18:10.054Z", "lastUpdatedBy": "aliqua ad", "lastUpdated": "1988-09-04T03:44:14.096Z", "verb": "POST", "routeName": "-Mv", "schema": null, "_id": "a212f57444f3c80dd5038af4", "jst": "d7eca7a58e0bbe85cf7bab6b", "migrationVersion": 1454957 }, "automaticChanges": [ "tempor ullamco labore ea", "nisi" ] }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "013e11410d5c228d20773ffb", "lastExecuted": 46788821, "createdBy": null, "created": "2025-03-01T02:00:23.856Z", "lastUpdatedBy": null, "lastUpdated": "2019-12-06T08:30:03.407Z", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "legacyWrapper": true, "_id": "73f09bd002db2767ce151f4c", "formId": null, "migrationVersion": -29065417, "formSchemaHash": "nostrud pariatur" }, "automaticChanges": [ "reprehenderit deserunt ad sed", "fugiat Lorem", "ea ad aute anim", "ullamco cillum enim tempor laboris" ] } ] } } }
{ "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" } } } } } } } } } } } ] }