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": "8a9b94040a15ddccda06ec88", "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": "sunt amet in pariatur Ut", "created": "2020-06-20T10:29:07.203Z", "lastUpdatedBy": null, "lastUpdated": "1954-12-29T11:50:20.077Z", "_id": "a112643210d5d62616da5044", "gbac": { "write": [ "63380a704edfcf90daae3e69", "5502beb74ace1939420baaac" ], "read": [ "cf7e9001feecaef47610eb39" ] }, "componentName": "in commodo" }, "metadata": { "automaticChanges": [ "non occaecat cillum", "sed laborum laboris irure", "occaecat laboris nulla commodo sunt", "Duis voluptate proident adipisicing" ], "triggerCloneResults": { "message": "nulla adipisicing amet est ex", "data": [ { "success": false, "data": { "name": 82886038, "description": true, "type": false, "enabled": "est in", "actionType": true, "actionId": false, "lastExecuted": true, "createdBy": -40305567.9846136, "created": -14192319, "lastUpdatedBy": 36614261, "lastUpdated": -50051433, "formData": -81549453.01077805, "firstRunAt": 62913424, "nextRunAt": -89500609, "processMissedRuns": -49920000.90510138, "locked": "voluptate aliqua eu sit", "repeatUnit": -8508238.441504017, "repeatFrequency": 76086274, "repeatInterval": false, "_id": true, "formId": 36575684 }, "automaticChanges": [ "ipsum cupidatat", "id do sed", "Duis veniam sunt laboris amet" ] }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "91fa6a0148bc35a4eff3c98e", "lastExecuted": null, "createdBy": "dolore sit", "created": "1993-09-20T03:48:45.56Z", "lastUpdatedBy": "amet consectetur", "lastUpdated": "1994-04-22T08:05:53.254Z", "verb": "POST", "routeName": "f7BK", "_id": "85d9f4c05a8861de6de8c010", "jst": "1be37d911a34858b8701fdf0", "migrationVersion": -48933822 }, "automaticChanges": [ "officia pariatur", "anim", "ad laborum" ] }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "863d7ed3e86e2b78b91103db", "lastExecuted": 65160480, "createdBy": null, "created": "2017-09-13T21:23:44.1Z", "lastUpdatedBy": null, "lastUpdated": "1997-01-02T19:33:22.424Z", "verb": "POST", "routeName": "mu1zBRB8y", "schema": null, "_id": "d1e063edfd560c7f037c1250", "jst": "c36c685dc16032714d19269c", "migrationVersion": 57742748 }, "automaticChanges": [ "in anim voluptate magna mollit", "laboris ut mollit ut" ] }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "583ad7ff8f349332ebfefadb", "lastExecuted": null, "createdBy": "qui enim sint voluptate", "created": "1988-07-21T14:13:19.305Z", "lastUpdatedBy": null, "lastUpdated": "1957-06-10T18:01:42.065Z", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "c536032496e79c87fec9e62e", "formId": "e80b91aeff522600a076578c", "migrationVersion": 29984967, "formSchemaHash": null }, "automaticChanges": [ "sed Excepteur", "ullamco", "sunt esse irure ex", "ad" ] } ] } } }
{ "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" } } } } } } } } } } } ] }