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": "834aae72f75b83a3ba38db6e", "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 retrieved search results", "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": null, "created": "1992-08-23T04:02:54.073Z", "lastUpdatedBy": "deserunt Excepteur", "lastUpdated": "1960-05-21T05:51:56.818Z", "_id": "d79b78b81b39156ad3067c0b", "gbac": { "write": [ "65ab154b84bd754a31bf51cf", "edaef1dd8caa3576496a21b4", "4ddd534c0c17c9112cecc447" ], "read": [ "27df73aec0e3270183fe1053", "9d050ae8a387f6b08669cb09", "5280c28dda38dae364f869fe", "bf605ebd954c549eca0bc117", "c71aa03c95bb1d9573fb5b1f" ] }, "componentId": "", "componentName": null }, "metadata": { "automaticChanges": [ "sit ea ad", "ullamco proident Ut Lorem dolore", "aliquip velit laboris" ], "triggerCloneResults": { "message": "sed", "data": [ { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "33971df09d001134fd12b250", "lastExecuted": null, "createdBy": "Duis esse sunt", "created": "1995-08-03T02:47:40.822Z", "lastUpdatedBy": null, "lastUpdated": "1986-09-21T02:38:27.97Z", "verb": "POST", "routeName": "Pa", "_id": "e6c045a49c90d400ddedff19", "jst": null, "migrationVersion": 88997424 }, "automaticChanges": [ "quis", "in dolor", "aliquip", "ullamco" ] }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "a1fcf18c91fbb6970f8a227f", "lastExecuted": null, "createdBy": null, "created": "2014-11-10T12:22:00.063Z", "lastUpdatedBy": null, "lastUpdated": "1970-06-09T16:11:09.87Z", "verb": "POST", "routeName": "tj", "schema": null, "_id": "22b1f8ed32f2b331bf108cd7", "jst": null, "migrationVersion": -8902312 }, "automaticChanges": [ "esse enim nulla ea in" ] }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "3892cd27fd377aba4206bcf4", "lastExecuted": 67136978, "createdBy": "eiusmod do", "created": "1975-05-31T08:24:09.539Z", "lastUpdatedBy": "tempor quis consequat qui fugiat", "lastUpdated": "1948-01-01T03:21:29.785Z", "verb": "POST", "routeName": "bY2TbLam", "schema": null, "_id": "b3ba00de0928b7c2c8044be3", "jst": "02c181b4f71fae444396486a", "migrationVersion": 33345185 }, "automaticChanges": [ "tempor laborum" ] }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "0aec845cb8c77dcf2722b2c3", "lastExecuted": 19471515, "createdBy": null, "created": "1956-10-12T20:56:53.323Z", "lastUpdatedBy": null, "lastUpdated": "1962-05-28T23:17:07.363Z", "verb": "POST", "routeName": "seF", "schema": null, "_id": "9ed4e68fbcfc3027d6bad9be", "jst": "05695e810737f6ef524993c3", "migrationVersion": 71565513 }, "automaticChanges": [ "consequat", "irure", "deserunt culpa do adipisicing dolore", "aute" ] } ] } } }
{ "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" } } } } } } } } } } } ] }