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": "77cd59b92542c8a0145966f0", "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 imported 3 of 4 documents", "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "reprehenderit cupidatat", "created": "1982-05-23T10:56:09.433Z", "lastUpdatedBy": "velit elit Ut", "lastUpdated": "1963-06-02T14:39:12.787Z", "_id": "a8dd71ac8f8730888d11b69a", "gbac": { "write": [ "e7a8703713885760a44fb1f8", "77c3bcc8ed13ae22fc6d9d78" ], "read": [ "343f938c883982e380042442", "d951803d24f597424ed99f4e" ] }, "componentId": "" }, "metadata": { "automaticChanges": [ "pariatur" ], "triggerCloneResults": { "message": "aliquip Ut exercitation dolor ea", "data": [ { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "bd4342f4279d947b9a14bdab", "lastExecuted": null, "createdBy": null, "created": "1973-05-24T11:56:33.476Z", "lastUpdatedBy": null, "lastUpdated": "1951-07-23T13:15:20.016Z", "source": "ipsum deserunt sint occaecat", "topic": "consequat", "_id": "3bd3a6f99d185e8948e4fe5b", "jst": null, "migrationVersion": 61947103 }, "automaticChanges": [ "culpa in elit consequat nisi", "ad quis", "mollit sed irure occaecat nostrud", "esse nulla aliquip ad" ] }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "2035df18c5f0614f92549b3a", "lastExecuted": 2789148, "createdBy": "mollit labore", "created": "2010-11-24T06:22:10.116Z", "lastUpdatedBy": null, "lastUpdated": "2002-10-10T12:49:18.796Z", "source": "sit dolore Excepteur cillum", "topic": "voluptate", "_id": "77e4b102067058cbd38b22ee", "jst": null, "migrationVersion": 57323543 }, "automaticChanges": [ "in ut nulla ipsum" ] }, { "success": true, "data": { "name": -28099928.833342254, "description": "laboris dolor eu", "type": 79594254, "enabled": -12312028, "actionType": 85894416.84446654, "actionId": 61874041.23354888, "lastExecuted": 60529454.83591151, "createdBy": false, "created": "in aute", "lastUpdatedBy": 10874018.754922599, "lastUpdated": -45760830.25880675, "formData": -8424408, "firstRunAt": -15699541, "nextRunAt": 9738981.799863786, "processMissedRuns": -94957688.60876156, "locked": false, "repeatUnit": false, "repeatFrequency": "mollit elit", "repeatInterval": "in aute in", "_id": 64239918.72245264, "formId": -33803421.11480785 }, "automaticChanges": [ "mollit nisi Ut", "voluptate ut velit officia do", "dolor eiusmod", "cupidatat", "eiusmod commodo sunt" ] }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "2d97907e8060bc3862786c86", "lastExecuted": 97980937, "createdBy": "ullamco", "created": "2014-07-08T16:24:01.925Z", "lastUpdatedBy": "tempor eiusmod", "lastUpdated": "1992-05-06T16:33:06.266Z", "verb": "POST", "routeName": "vXQ2kcIR", "_id": "84b0e5ea9512770c77307e24", "jst": null, "migrationVersion": -46069893 }, "automaticChanges": [ "aute minim velit eu" ] } ] } } }
{ "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" } } } } } } } } } } } ] }