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": "0f168648105010b7651b1854", "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": null, "created": "1973-07-20T06:09:36.66Z", "lastUpdatedBy": "eu elit", "lastUpdated": "1963-01-06T08:27:03.689Z", "_id": "0c8efa7394d1b5a09ad10bce", "gbac": { "write": [ "541ee112d24765b6aae83997", "abcba455a31881d638dcdcbe", "055fa5001d33d6df905bbc9c", "13abdded29dcf4143300ec83", "5d853bad0ad3001b3e3ce820" ], "read": [ "d85e482e550975e73092a06c", "cce96a8c92b0ca24455ce7a9", "c757fe848581bc6a77e04f5f" ] }, "componentId": "cd5c9e1d30826a69015eb25a" }, "metadata": { "automaticChanges": [ "Ut nostrud", "culpa sit mollit", "ad aliqua id velit cillum", "eu sit voluptate est", "dolore" ], "triggerCloneResults": { "message": "Ut ad id pariatur consectetur", "data": [ { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "609c2f748a8b9997d13e9c19", "lastExecuted": null, "createdBy": null, "created": "1957-09-08T18:38:41.246Z", "lastUpdatedBy": null, "lastUpdated": "1952-12-03T13:59:32.6Z", "verb": "POST", "routeName": "z2NNV", "schema": null, "_id": "da6e2036b48ee27a10457d80", "jst": "388d6b08980deb65386275e5", "migrationVersion": -89099959 }, "automaticChanges": [ "deserunt eiusmod sint veniam" ] }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "1740ea07875523d50258ab8f", "lastExecuted": null, "createdBy": "sed fugiat non", "created": "1973-10-10T08:08:08.321Z", "lastUpdatedBy": "consectetur ipsum et nulla", "lastUpdated": "1991-10-19T06:32:33.751Z", "verb": "POST", "routeName": "JB0", "_id": "5e076720af1a8f4aa6830b7e", "jst": null, "migrationVersion": -3639284 }, "automaticChanges": [ "deserunt", "laboris eiusmod veniam elit ipsum" ] }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "c0c4d990411eeb2bf9f25752", "lastExecuted": 53048250, "createdBy": "est laboris proident irure dolor", "created": "1994-06-09T03:37:30.403Z", "lastUpdatedBy": "eu consequat officia dolor", "lastUpdated": "1981-07-19T14:10:55.318Z", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "69f1f028f4169680171529b8", "formId": null, "migrationVersion": 84783346, "formSchemaHash": null }, "automaticChanges": [ "Excepteur", "laborum", "deserunt sint laborum esse aliqua", "Lorem sint" ] }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "e48afe2d20ed6b24cf0298ba", "lastExecuted": null, "createdBy": null, "created": "1985-12-14T23:06:17.058Z", "lastUpdatedBy": null, "lastUpdated": "1955-09-07T04:34:48.031Z", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "5edef80dd9a18138ec18ab96", "formId": null, "migrationVersion": -91309440, "formSchemaHash": null }, "automaticChanges": [ "dolor cillum qui id", "consectetur aliquip reprehenderit irure" ] } ] } } }
{ "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" } } } } } } } } } } } ] }