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": "d14dc66a8743335b016e84e3", "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": "labore", "created": "1948-12-03T03:25:00.492Z", "lastUpdatedBy": "labore sit", "lastUpdated": "2021-07-01T12:44:11.401Z", "_id": "7b34daf4fe397b4284d4b804", "gbac": { "write": [ "4f0574675cafc0d3287bc0c9", "2bbed502ab88ca09cd99e150", "2777cc2098498aae5169f1f2" ], "read": [ "ddca20c95db1c06f8658db09", "e6bd1208a8f40a7a7911ab24", "aab060ef2816cd07959611e3" ] }, "componentId": "" }, "metadata": { "automaticChanges": [ "irure nulla sit ex", "dolore amet occaecat do", "aute eiusmod", "dolore est Ut reprehenderit cillum", "enim qui aliquip" ], "triggerCloneResults": { "message": "enim laboris", "data": [ { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "fc3e71196e9795946f495455", "lastExecuted": 48110624, "createdBy": "ex in culpa", "created": "1990-10-24T04:33:48.972Z", "lastUpdatedBy": null, "lastUpdated": "1975-11-21T08:28:14.178Z", "verb": "POST", "routeName": "U", "_id": "ccc8cc1dc1efaad719125c27", "jst": "916a46546aee1c2e5d99f485", "migrationVersion": -37696135 }, "automaticChanges": [ "pariatur nulla aliqua nostrud", "labore commodo quis culpa", "quis" ] }, { "success": false, "data": { "name": -10768620, "description": false, "type": 62534266, "enabled": -76534543, "actionType": -43053651.8261976, "actionId": 56900664.581887156, "lastExecuted": 97607919.33784115, "createdBy": false, "created": 85962471.0980627, "lastUpdatedBy": -49244617.84772913, "lastUpdated": 29459158.031334102, "formData": 66773443.1434297, "legacyWrapper": -78879410.57985249, "firstRunAt": true, "nextRunAt": 36398619, "processMissedRuns": 9678137, "locked": -50455170, "repeatUnit": "pariatur dolore nulla", "repeatFrequency": -15446812.603305742, "repeatInterval": false, "_id": true, "formId": 27703952.3164241 }, "automaticChanges": [ "sint quis ut dolor", "tempor", "ex minim", "nulla non consequat occaecat", "nostrud" ] }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "515d2819ecd3553d350f4e7c", "lastExecuted": null, "createdBy": null, "created": "1979-09-01T00:45:57.828Z", "lastUpdatedBy": null, "lastUpdated": "1952-01-25T02:21:34.525Z", "verb": "POST", "routeName": "dXmhmE3w", "schema": null, "_id": "1c1a2ab054017567e9f0fd27", "jst": "23b00a1e1f6550a660e0fc32", "migrationVersion": -90933834 }, "automaticChanges": [ "veniam cillum aliqua exercitation ullamco", "nostrud do in deserunt" ] }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "5217ed60087bbf24117e5cbc", "lastExecuted": null, "createdBy": "ex anim incididunt ad", "created": "1966-06-10T01:08:54.184Z", "lastUpdatedBy": null, "lastUpdated": "1995-04-20T05:14:48.216Z", "source": "consectetur culpa labore", "topic": "veniam commodo", "legacyWrapper": false, "_id": "807074488f63a747281df98a", "jst": "a1b2610ab48b740a9ed7de71", "migrationVersion": 50882069 }, "automaticChanges": [ "laborum ea", "et fugiat dolor voluptate anim" ] }, { "success": true, "automaticChanges": [ "adipisicing Ut ut", "ex ad anim" ] } ] } } }
{ "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" } } } } } } } } } } } ] }