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": "d6c23e3d1bb05a8ccdb26a92", "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 created the requested item", "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": null, "created": "1975-12-18T23:09:35.002Z", "lastUpdatedBy": null, "lastUpdated": "1983-07-29T19:11:56.298Z", "_id": "b6122b9744de6cadb79f2c06", "gbac": { "write": [ "cbdd8bb9abbbbb7b0e2d1eb2", "f36266ed0948087dc86b2408", "a02f50b4e86ba3e21de4db02", "bcdce3c3c1b2379dee19b2dd", "abf1004d470326e688805c65" ], "read": [ "d7c59347b3cb14d601f8a1bf" ] }, "componentId": "44c26a5202120cf43b2253d6", "componentName": "sunt nulla" }, "metadata": { "automaticChanges": [ "magna in aliquip dolore" ], "triggerCloneResults": { "message": "ut dolore", "data": [ { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "8e08cb26dbf074ed7b93bc1e", "lastExecuted": null, "createdBy": "eu et in voluptate", "created": "2016-09-28T05:02:14.568Z", "lastUpdatedBy": null, "lastUpdated": "2024-07-20T23:36:39.854Z", "verb": "POST", "routeName": "Ow8OiXB18", "_id": "5333ee5056466504f3f1d835", "jst": null, "migrationVersion": 79796771 }, "automaticChanges": [ "adipisicing dolor ex", "anim ipsum aute", "nulla deserunt", "ut" ] }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "c5787efa40d62346201daa72", "lastExecuted": 36999730, "createdBy": "voluptate ipsum labore ut incididunt", "created": "1968-05-11T03:59:52.022Z", "lastUpdatedBy": null, "lastUpdated": "1956-05-29T07:50:13.54Z", "source": "id in eiusmod enim", "topic": "et ullamco tempor aliquip", "schema": null, "_id": "1f05afa0e7e812b3468bd514", "jst": null, "migrationVersion": -39409776 }, "automaticChanges": [ "irure dolore", "dolore est", "exercitation est" ] }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "f04089cd95e9c2c02bc63f80", "lastExecuted": null, "createdBy": "ullamco commodo dolor adipisicing", "created": "2002-02-25T21:59:44.238Z", "lastUpdatedBy": null, "lastUpdated": "2009-01-07T18:33:50.41Z", "source": "dolor do", "topic": "eiusmod Lorem anim qui ipsum", "schema": null, "_id": "1e0f65d0ebcbd59b60fce4f4", "jst": "248ab51aa9fda9bf509ca820", "migrationVersion": -29348243 }, "automaticChanges": [ "Lorem eu in", "laborum minim incididunt dolor", "ut ea Duis Ut", "dolor", "incididunt ea aute" ] }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "fd3ab7ced32b87a3305a750e", "lastExecuted": 83277721, "createdBy": null, "created": "1974-07-30T10:29:14.713Z", "lastUpdatedBy": "deserunt consectetur", "lastUpdated": "2021-07-25T06:28:12.62Z", "source": "cillum exercitation mollit aliquip", "topic": "dolore", "_id": "5509692104d8a47203bdc2d2", "jst": "c8b9cedef6e7e391429a0db3", "migrationVersion": -59712180 }, "automaticChanges": [ "quis magna sit nostrud", "enim ut cillum Lorem", "ea elit Lorem irure eu" ] }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "f36e3e38edf399be4c1df736", "lastExecuted": null, "createdBy": null, "created": "1951-08-01T15:23:25.212Z", "lastUpdatedBy": null, "lastUpdated": "1988-12-21T10:15:47.595Z", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "0101a3ec90085c4fc44376c7", "formId": "97767c012885986dc730a28d", "migrationVersion": -23396454, "formSchemaHash": null }, "automaticChanges": [ "Excepteur ad irure et deserunt" ] } ] } } }
{ "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" } } } } } } } } } } } ] }