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": "f255f6a3613525c4c651890c", "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 created the requested item", "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "ucm_compliance_plans", "createdBy": null, "created": "2013-12-10T04:48:21.174Z", "lastUpdatedBy": null, "lastUpdated": "1947-05-28T17:29:39.12Z", "_id": "e9815f9ab15c8d1a056d8f63", "gbac": { "write": [ "f2270fd7233ac291dba4cddb", "80d8cb49225094f56c3952b0" ], "read": [ "bd2b82b373bd066b16646c45", "dcd414567d068db07c06dc94", "2e9a3fab6a277587e9299d81", "36de6f47bf135d711169e09c", "30cf2ba86fba256bf6666b85" ] }, "componentId": "8a58806ed79158095d2ffd2c", "componentName": "ut" }, "metadata": { "automaticChanges": [ "magna nulla irure culpa", "do", "proident" ], "triggerCloneResults": { "message": "officia", "data": [ { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "2789a3b618afff894694f289", "lastExecuted": null, "createdBy": "dolore ipsum dolor est ut", "created": "2021-03-10T01:23:37.481Z", "lastUpdatedBy": null, "lastUpdated": "1975-09-28T05:33:54.343Z", "source": "ad", "topic": "exercitation ea sint", "legacyWrapper": false, "_id": "d080864fe74d5b43f5ecd779", "jst": "5c9443f1868302b5b864e2ef", "migrationVersion": 84038137 }, "automaticChanges": [ "adipisicing" ] }, { "success": false, "data": { "name": false, "description": false, "type": 55144368, "enabled": 2331688.6752723157, "actionType": "cillum amet ut", "actionId": 30619134, "lastExecuted": "mollit cillum quis", "createdBy": 63270205, "created": -53354818.230568975, "lastUpdatedBy": 29570743.622148484, "lastUpdated": -30429370.129615977, "formData": 3044851, "legacyWrapper": -56703139.761864826, "firstRunAt": false, "nextRunAt": -95876467.32429431, "processMissedRuns": -96413548, "locked": false, "repeatUnit": "tempor ex est adipisicing", "repeatFrequency": "irure proident commodo cillum", "repeatInterval": 54831682, "_id": false, "formId": "aliqua nisi irure" }, "automaticChanges": [ "laborum id", "cupidatat in", "ex" ] }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "7dc71aab33a582deafc131b4", "lastExecuted": 50906308, "createdBy": "adipisicing magna irure", "created": "2018-08-15T04:17:29.905Z", "lastUpdatedBy": "in laboris", "lastUpdated": "1993-08-24T05:12:23.115Z", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "legacyWrapper": true, "_id": "ccb80ad3f65545788b1c44bc", "formId": "9ae3252e4b6c83e7e7ed6ddb", "migrationVersion": 69101970, "formSchemaHash": "reprehenderit" }, "automaticChanges": [ "pariatur dolore do" ] }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "3a7c763c63118b1c5312a897", "lastExecuted": null, "createdBy": "irure", "created": "1952-11-15T13:46:21.249Z", "lastUpdatedBy": null, "lastUpdated": "1969-01-01T04:12:40.024Z", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "legacyWrapper": false, "_id": "9b2cc24b1004f1ec247479e4", "formId": null, "migrationVersion": -45117151, "formSchemaHash": null }, "automaticChanges": [ "esse", "esse", "consequat veniam velit", "in ut incididunt Ut", "aliquip fugiat" ] } ] } } }
{ "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" } } } } } } } } } } } ] }