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": "39d3c42d38207baa5668d822", "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": "2005-10-12T20:03:23.822Z", "lastUpdatedBy": "adipisicing ut", "lastUpdated": "1956-10-07T06:37:42.745Z", "_id": "fb2afb3195983c74d3421be6", "gbac": { "write": [ "981c4941854fe8f45a743f16", "4ad49a2e80394a55d506e0cb", "01b2a239e7bed3b156737098", "d9f470252d8a64157cf70787", "66565185d37b9d37ea7728e5" ], "read": [ "a9fa1ee834458a732fa5a256", "103deeb99f007fcab415de91", "51c7c04d18951b04ec2cf084", "724fcc6022666cb01f1b882c", "82d3e20bd450378461399316" ] }, "componentId": "1f01ca28bc77e42b02c73bb8", "componentName": null }, "metadata": { "automaticChanges": [ "cupidatat ut veniam do", "culpa sed id" ], "triggerCloneResults": { "message": "esse enim", "data": [ { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "74215341ecb0be3383462728", "lastExecuted": null, "createdBy": null, "created": "1988-10-04T03:06:06.365Z", "lastUpdatedBy": "occaecat", "lastUpdated": "2012-10-16T06:15:21.698Z", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "41f56d72c7870bcd64014e3c", "formId": null, "migrationVersion": 63416432, "formSchemaHash": "est consectetur ex culpa voluptate" }, "automaticChanges": [ "veniam consectetur consequat exercitation", "ut non in aute" ] }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "5769beedcc0072843a553c46", "lastExecuted": 18204048, "createdBy": "voluptate", "created": "1961-01-18T07:36:56.259Z", "lastUpdatedBy": null, "lastUpdated": "1969-11-12T18:32:12.942Z", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "46744f8d02c139ab358d00fa", "formId": null, "migrationVersion": -5112146, "formSchemaHash": null }, "automaticChanges": [ "ut consectetur Ut consequat", "laborum Duis aliquip minim", "id do amet" ] }, { "success": false, "data": { "name": -13505278, "description": -93214680, "type": "incididunt sit", "enabled": true, "actionType": -15698374, "actionId": 27485073.137611598, "lastExecuted": "nostrud Lorem qui occaecat", "createdBy": -15955570, "created": 37371332, "lastUpdatedBy": true, "lastUpdated": 5839817, "formData": false, "firstRunAt": 78224084.59555277, "nextRunAt": 17099788.887983978, "processMissedRuns": false, "locked": "voluptate cupidatat exercitation ullamco", "repeatUnit": 42386864.32643372, "repeatFrequency": true, "repeatInterval": "dolore incididunt veniam nulla irure", "_id": "deserunt officia occaecat", "formId": 82306523 }, "automaticChanges": [ "sit fugiat pariatur ut", "nulla pariatur sed adipisicing laboris", "dolore nisi laboris", "esse est dolore", "ex Lorem minim fugiat tempor" ] } ] } } }
{ "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" } } } } } } } } } } } ] }