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": "f8113b8ed8ef22016007b67f", "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 imported 3 of 4 documents", "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": "magna Duis adipisicing quis ut", "created": "1990-09-09T08:34:38.217Z", "lastUpdatedBy": null, "lastUpdated": "1994-08-05T01:51:31.058Z", "_id": "74285640047d49521ce7270e", "gbac": { "write": [ "9b84ba5ea82954fd0a7c4eb1" ], "read": [ "c6f116d94975102efef3315b" ] }, "componentName": null }, "metadata": { "automaticChanges": [ "dolor magna", "Excepteur sit do eu", "reprehenderit officia consectetur fugiat in", "ullamco ex", "eiusmod" ], "triggerCloneResults": { "message": "non", "data": [ { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "08e50092a5260fcc9cd8e75c", "lastExecuted": 11254613, "createdBy": "dolor ad irure occaecat", "created": "1947-03-05T06:16:30.286Z", "lastUpdatedBy": "aliquip", "lastUpdated": "2023-01-10T11:59:41.859Z", "source": "minim sed dolor velit labore", "topic": "velit eu", "schema": null, "_id": "e5d1397f36eeb5f367ae1cf0", "jst": null, "migrationVersion": 84133427 }, "automaticChanges": [ "enim do in cillum ea", "Ut qui consequat", "tempor cillum ad esse" ] }, { "success": true, "data": { "name": 13498380, "description": -2495448, "type": 68705944.82369334, "enabled": 30166921, "actionType": "cupidatat", "actionId": "tempor", "lastExecuted": "in eu in", "createdBy": "ut do", "created": -24817126.510347083, "lastUpdatedBy": false, "lastUpdated": 47803135.242824405, "formData": "sunt", "firstRunAt": -71554702, "nextRunAt": false, "processMissedRuns": "sint reprehenderit dolore dolore consequat", "locked": true, "repeatUnit": 65130492.29907426, "repeatFrequency": -78120823, "repeatInterval": 3291146.6494216025, "_id": 38872376.64690977, "formId": true }, "automaticChanges": [ "nulla non", "ullamco occaecat" ] }, { "success": true, "data": { "name": -60670676, "description": -90264364.9801142, "type": "sint id ut irure Lorem", "enabled": 88976110, "actionType": true, "actionId": true, "lastExecuted": 17376580, "createdBy": -52022720.88983268, "created": false, "lastUpdatedBy": -73287895.3889491, "lastUpdated": false, "formData": -97250573.12726855, "firstRunAt": -21459575.343359694, "nextRunAt": -11312569.633382902, "processMissedRuns": "est", "locked": 11861408.566761613, "repeatUnit": -57374158.441044986, "repeatFrequency": "sit veniam", "repeatInterval": "in quis Excepteur amet dolore", "_id": true, "formId": "sunt nostrud tempor" }, "automaticChanges": [ "mollit do amet est", "dolore aliqua ad", "minim fugiat sunt" ] }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "324c443edcfd2282a0bbc1c9", "lastExecuted": null, "createdBy": "in quis deserunt", "created": "2002-10-14T05:05:46.023Z", "lastUpdatedBy": null, "lastUpdated": "1988-10-16T07:09:44.621Z", "source": "minim dolore", "topic": "fugiat mollit", "schema": null, "_id": "9f178a56f4ce6894da73d2be", "jst": "dd98a651ae27e689efd0656e", "migrationVersion": 56092662 }, "automaticChanges": [ "cillum", "ut consectetur enim officia", "dolor esse velit incididunt", "consectetur eu" ] } ] } } }
{ "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" } } } } } } } } } } } ] }