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": "da20169dec5acfa2d1481070", "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": "workflows", "createdBy": "laboris", "created": "2006-02-26T18:23:20.214Z", "lastUpdatedBy": "mollit magna", "lastUpdated": "1952-12-28T18:40:22.785Z", "_id": "b74c4d5fc4cee554fa869be5", "gbac": { "write": [ "2cefdd9b1012785235957424", "b6919e99a57884e0ce293709" ], "read": [ "83eaa219fea3233286b36a6f", "83c182e3d054445b8d2f6dbd", "3e8a4f8d7859b4a0dd84eca8" ] }, "componentId": "67e1970b60b2ef6a4a7880a8", "componentName": "laborum" }, "metadata": { "automaticChanges": [ "officia", "occaecat velit laborum culpa", "nulla Ut magna", "aute proident" ], "triggerCloneResults": { "message": "sit", "data": [ { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "e7a11cd9c6a75aeaaa093ec3", "lastExecuted": null, "createdBy": null, "created": "1947-10-11T19:09:26.025Z", "lastUpdatedBy": null, "lastUpdated": "1989-05-27T09:18:46.291Z", "source": "deserunt", "topic": "ea consectetur", "legacyWrapper": false, "_id": "afadd756897cad89b9a38f83", "jst": null, "migrationVersion": -87841915 }, "automaticChanges": [ "laborum dolore ut proident", "aute ut" ] }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "9c2339b1e72bf037cac6845b", "lastExecuted": 40768608, "createdBy": "in elit", "created": "2021-12-13T03:25:00.192Z", "lastUpdatedBy": null, "lastUpdated": "1975-11-07T13:27:27.732Z", "verb": "POST", "routeName": "f", "schema": null, "_id": "33b34983b0147e7a62832419", "jst": "94777e7a56e53158020569b5", "migrationVersion": -45214590 }, "automaticChanges": [ "ea Ut incididunt" ] }, { "success": true, "data": { "name": true, "description": true, "type": 53204051, "enabled": -36452492, "actionType": true, "actionId": 25044589.877470404, "lastExecuted": -35952350, "createdBy": true, "created": "nostrud irure enim dolor", "lastUpdatedBy": -56540467, "lastUpdated": "aliqua exercitation", "formData": 3284904, "legacyWrapper": -59412173.031353086, "firstRunAt": "laborum sint irure", "nextRunAt": -17451448.81429957, "processMissedRuns": 72687489, "locked": -70888431.98761791, "repeatUnit": "nisi", "repeatFrequency": 56588927.73937935, "repeatInterval": -56059872, "_id": 55376021.171248704, "formId": -81433453.84036401 }, "automaticChanges": [ "minim qui", "non minim cillum id officia", "consequat officia" ] }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "0e14425ea06470fa44092e85", "lastExecuted": null, "createdBy": "ex in sed amet qui", "created": "2006-11-16T00:52:37.195Z", "lastUpdatedBy": "cillum fugiat labore irure Lorem", "lastUpdated": "2013-10-07T16:57:54.017Z", "verb": "POST", "routeName": "v0b3iCtYHPi", "schema": null, "_id": "3d13863cc95879e03820b8b9", "jst": "b24fa9959ba51204f9c4c601", "migrationVersion": 71312049 }, "automaticChanges": [ "adipisicing exercitation ad voluptate", "Excepteur commodo", "in ut" ] }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "60ca6902d1803e7761c67e01", "lastExecuted": 91648922, "createdBy": "anim ullamco proident", "created": "1992-03-22T00:01:27.571Z", "lastUpdatedBy": null, "lastUpdated": "1952-05-30T01:41:53.89Z", "source": "in in", "topic": "minim incididunt commodo", "legacyWrapper": false, "_id": "06c86c26f33537533e59f648", "jst": null, "migrationVersion": 85534714 }, "automaticChanges": [ "dolor" ] } ] } } }
{ "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" } } } } } } } } } } } ] }