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": "6b3d1d4e329a9868fcde284b", "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 retrieved search results", "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": null, "created": "2002-02-21T04:25:30.501Z", "lastUpdatedBy": null, "lastUpdated": "1946-06-10T15:10:10.605Z", "_id": "ada7dc2fef3bd92484ece28f", "gbac": { "write": [ "5a3256e8fb76fd6e598cfab4", "5e8634458190b8b7cc722329" ], "read": [ "241ab4230910bb013d1ab5e9", "8681e2f416344c74d9ce5120" ] }, "componentName": "Duis veniam consequat laborum eiusmod" }, "metadata": { "automaticChanges": [ "cillum fugiat dolor commodo" ], "triggerCloneResults": { "message": "voluptate ex", "data": [ { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "1d8a0bb9f4c9b271282f162a", "lastExecuted": null, "createdBy": "nulla ullamco id sint", "created": "1989-06-05T12:35:18.09Z", "lastUpdatedBy": null, "lastUpdated": "1960-09-28T11:08:14.613Z", "verb": "POST", "routeName": "wh0FZl5u", "_id": "7021f81baafa3a9a3f382182", "jst": null, "migrationVersion": -50422745 }, "automaticChanges": [ "magna", "non do laboris et" ] }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "22d7330a2e273835bc0891fe", "lastExecuted": null, "createdBy": null, "created": "2019-12-12T10:10:30.598Z", "lastUpdatedBy": "aliqua", "lastUpdated": "2018-04-30T23:11:31.677Z", "source": "quis in aliquip ut", "topic": "dolore ea elit", "_id": "9dedf80acd8150a718893af2", "jst": "27734eddf92f025360c7f0d7", "migrationVersion": -59030019, "legacyWrapper": false }, "automaticChanges": [ "eu ea sunt", "ipsum eiusmod", "sunt fugiat", "culpa officia Excepteur deserunt magna", "non Lorem eu sit" ] }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "2c16b950feb501f4b8167e98", "lastExecuted": null, "createdBy": null, "created": "1950-07-19T16:03:55.543Z", "lastUpdatedBy": "anim pariatur", "lastUpdated": "1974-09-10T18:49:50.546Z", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "d766ecc7d44a3c589391c85d", "formId": null, "migrationVersion": 3751005, "formSchemaHash": "proident occaecat velit adipisicing anim", "legacyWrapper": true }, "automaticChanges": [ "laboris", "Ut amet", "quis in dolor dolor", "nisi consequat", "in sed" ] }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "157ba6c7bee9f491c9ecd753", "lastExecuted": 36450855, "createdBy": null, "created": "1994-05-03T15:39:39.805Z", "lastUpdatedBy": "do laboris mollit", "lastUpdated": "2019-03-08T06:27:56.163Z", "verb": "POST", "routeName": "RsaLS", "schema": null, "_id": "3f07d2de1bf1cfddd8ad44e3", "jst": null, "migrationVersion": 14219882 }, "automaticChanges": [ "eu anim in", "elit", "est nulla", "sunt Duis dolore ex" ] } ] } } }
{ "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" } } } } } } } } } } } ] }