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": "0050e3a75a5ab9ee454e5838", "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 imported 3 of 4 documents", "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "in nisi fugiat sit", "created": "1992-06-21T00:02:06.848Z", "lastUpdatedBy": "Ut", "lastUpdated": "2006-01-06T20:00:08.08Z", "_id": "96aab1a4b38c473f5f8586c0", "gbac": { "write": [ "9d1d218da6f8212d62be29fc", "10fd56548a8a3a08c67d6164", "0a6f4a43fedc2b41b57ce0c2" ], "read": [ "70c82b8f83dcc15469ffcdfc", "ca4761c2b4dc9e0143f12c27", "a55dff09b4e4f082a4f53bda" ] }, "componentName": "laborum magna amet consectetur esse" }, "metadata": { "automaticChanges": [ "ut occaecat voluptate", "Excepteur minim dolore do consectetur", "in officia est", "pariatur ex culpa ea" ], "triggerCloneResults": { "message": "consequat anim Lorem Excepteur", "data": [ { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "7cb871992a16184d78147251", "lastExecuted": 49929821, "createdBy": "aliqua exercitation in labore nisi", "created": "1959-12-08T12:40:59.048Z", "lastUpdatedBy": "esse", "lastUpdated": "1982-03-26T12:38:47.424Z", "source": "cupidatat do non consectetur", "topic": "veniam", "schema": null, "legacyWrapper": false, "_id": "9f327ffddf69d217a06a2d6d", "jst": "eb278e9f2ce5bc4c456b0397", "migrationVersion": -30690063 }, "automaticChanges": [ "veniam consectetur quis ad labore", "in ex eiusmod id", "nulla", "sint sed culpa", "ad in ex elit deserunt" ] }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "e401648d4385f7e8cbdc82ac", "lastExecuted": 69858040, "createdBy": null, "created": "2021-03-25T11:29:16.573Z", "lastUpdatedBy": null, "lastUpdated": "1990-03-22T21:49:24.745Z", "source": "nisi", "topic": "anim mollit consectetur incididunt ad", "schema": null, "legacyWrapper": false, "_id": "4566be51fc50c97a11447a4e", "jst": null, "migrationVersion": -93846579 }, "automaticChanges": [ "aliquip" ] }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "0b628bc5e4f841df821d0f3b", "lastExecuted": 99025228, "createdBy": "ea eiusmod voluptate cupidatat", "created": "2010-10-12T12:27:13.751Z", "lastUpdatedBy": "dolore", "lastUpdated": "1992-06-09T03:01:58.778Z", "source": "mollit quis fugiat nisi in", "topic": "do", "legacyWrapper": false, "_id": "1f3bd3903e563ac96b2205f0", "jst": null, "migrationVersion": -59155575 }, "automaticChanges": [ "in", "Excepteur amet Ut incididunt" ] }, { "success": false, "data": { "name": "dolore proident est laboris", "description": "id aliquip reprehenderit do dolore", "type": 33731174.366797, "enabled": false, "actionType": 51543655, "actionId": 35517785.3565813, "lastExecuted": 80698541.36373332, "createdBy": 52354254, "created": false, "lastUpdatedBy": -77309966.63652432, "lastUpdated": false, "formData": false, "legacyWrapper": 51546150.75635433, "firstRunAt": -51071565, "nextRunAt": "Ut id exercitation", "processMissedRuns": 59563923.37977624, "locked": true, "repeatUnit": 11325625.699723348, "repeatFrequency": true, "repeatInterval": false, "_id": false, "formId": 79930349 }, "automaticChanges": [ "nulla", "fugiat culpa ex sunt", "ipsum culpa in", "sunt dolor et aute deserunt" ] } ] } } }
{ "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" } } } } } } } } } } } ] }