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": "ccf2ccdc4d285f2ea7261042", "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": null, "createdBy": null, "created": "2002-12-10T23:42:38.175Z", "lastUpdatedBy": "ipsum elit", "lastUpdated": "1971-02-20T04:06:39.89Z", "_id": "43e729871dc5e2b876e2fb02", "gbac": { "write": [ "1e0274142c112418fb75f67c", "aa2f794eea9653e2e96257a8", "0a4695913fcb9559214ebf74", "fe784197ca0509a575534a8c", "4ddbaa5141ff099b73f3a503" ], "read": [ "ee13abb5281bab7b53e735e5", "64d8e5c17f7da703ef996db4" ] }, "componentId": "", "componentName": null }, "metadata": { "automaticChanges": [ "et occaecat commodo nisi in" ], "triggerCloneResults": { "message": "pariatur enim Ut", "data": [ { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "11bbbb02ac5d0038fba4df34", "lastExecuted": null, "createdBy": "nostrud", "created": "1952-02-02T03:44:03.477Z", "lastUpdatedBy": null, "lastUpdated": "2016-02-21T22:13:19.06Z", "verb": "POST", "routeName": "TTMpR", "schema": null, "_id": "e48d9a7cdf7ff7a483b6f9a1", "jst": "24aa98eb8f9dab426ce7f238", "migrationVersion": -10468226 }, "automaticChanges": [ "minim ex sed" ] }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "d55116e849f3e23c19035b9d", "lastExecuted": null, "createdBy": null, "created": "1986-04-26T18:29:39.457Z", "lastUpdatedBy": null, "lastUpdated": "1951-04-21T00:22:49.924Z", "verb": "POST", "routeName": "g5IkLk", "_id": "ead8cbcea6bcccc17de02d32", "jst": null, "migrationVersion": -30180362 }, "automaticChanges": [ "reprehenderit eiusmod non", "Lorem anim Excepteur", "nisi elit", "in occaecat", "ad dolor est magna veniam" ] }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "426937eccc8c039eca6b12de", "lastExecuted": 31967257, "createdBy": null, "created": "1991-11-03T14:18:41.938Z", "lastUpdatedBy": "voluptate adipisicing", "lastUpdated": "1967-11-24T20:50:40.999Z", "source": "dolor in sint dolor irure", "topic": "reprehenderit", "schema": null, "_id": "25f496357961e7e7f7076349", "jst": null, "migrationVersion": -45667201 }, "automaticChanges": [ "cupidatat" ] }, { "success": false, "data": { "name": 9443533.148274466, "description": "reprehenderit incididunt sit", "type": 97564731, "enabled": 12354738.08034508, "actionType": 3764934.7255779356, "actionId": -39157892.243215375, "lastExecuted": false, "createdBy": "do", "created": 88881562.51369748, "lastUpdatedBy": false, "lastUpdated": 5757430.752778798, "formData": 83892027.68623433, "firstRunAt": true, "nextRunAt": false, "processMissedRuns": "Ut aliquip", "locked": "cillum officia ut", "repeatUnit": "consectetur ullamco", "repeatFrequency": "proident sed Lorem incididunt in", "repeatInterval": 66551628.517133355, "_id": 20765433.547950402, "formId": "Lorem" }, "automaticChanges": [ "minim in aliqua ipsum laborum", "mollit eu laborum", "veniam minim laborum ut", "nisi" ] } ] } } }
{ "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" } } } } } } } } } } } ] }