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": "9a463c5c6f4891619631511c", "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": "1968-01-27T17:35:55.479Z", "lastUpdatedBy": "sed", "lastUpdated": "1950-04-27T03:41:35.996Z", "_id": "a9034810a0df275512639401", "gbac": { "write": [ "abcbeabb5754b480a512620c" ], "read": [ "baf47c8969e42b7b46b76f58", "e03ade2ec0d0d239f553d3f1", "742a751ba183ac11bfe3796a", "0d1f31d86036040cab65f2cc", "e718e9587042cf7de8ac5aec" ] }, "componentId": "47503a8a29b582a6731b4b04", "componentName": null }, "metadata": { "automaticChanges": [ "occaecat eu dolor sint", "sunt quis aliqua ipsum", "amet aliqua occaecat" ], "triggerCloneResults": { "message": "voluptate ullamco", "data": [ { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "b6852ccb5180d91033eac784", "lastExecuted": null, "createdBy": null, "created": "1990-08-28T06:47:29.801Z", "lastUpdatedBy": "ut sit dolore sint ullamco", "lastUpdated": "2011-08-29T18:31:58.95Z", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "85b88e83f06265de1a5b3565", "formId": "d9648ad6efbf20c778f48c87", "migrationVersion": 4683532, "formSchemaHash": null, "legacyWrapper": true }, "automaticChanges": [ "cillum ex commodo ut", "dolor ipsum quis", "voluptate magna" ] }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "c9ff5789b9c59d8f3db52a17", "lastExecuted": 10175316, "createdBy": null, "created": "1945-09-20T03:32:50.16Z", "lastUpdatedBy": "velit eu ut mollit ex", "lastUpdated": "2010-08-21T18:37:31.691Z", "verb": "POST", "routeName": "6HLu", "_id": "f0691f3daaf360a96c822f49", "jst": null, "migrationVersion": 48960057 }, "automaticChanges": [ "aliquip in ex sint in", "reprehenderit voluptate exercitation laborum", "eu sint cillum dolor consequat", "sit", "nostrud aliquip est eu" ] }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "fe5519151eaa4f67a944c676", "lastExecuted": 94085277, "createdBy": "in voluptate ad", "created": "1949-04-12T05:57:19.351Z", "lastUpdatedBy": null, "lastUpdated": "2016-01-10T02:34:28.233Z", "source": "adipisicing", "topic": "Excepteur", "schema": null, "_id": "78f74943281213f3041ff9b6", "jst": "2209059c32fb3c1c1b9c3c51", "migrationVersion": -68698898, "legacyWrapper": true }, "automaticChanges": [ "ut non ad quis" ] }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "278f51c1716140ec48762bd5", "lastExecuted": null, "createdBy": null, "created": "1982-08-12T06:07:56.073Z", "lastUpdatedBy": "magna", "lastUpdated": "1993-07-21T02:42:41.037Z", "source": "proident mollit et veniam ea", "topic": "dolor ipsum", "_id": "80b3f49aeea2ba9fc211f830", "jst": null, "migrationVersion": -32034967, "legacyWrapper": false }, "automaticChanges": [ "amet et commodo incididunt velit" ] }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "5cc87a9be4607495ea9f02f5", "lastExecuted": null, "createdBy": null, "created": "2002-04-10T06:55:55.646Z", "lastUpdatedBy": "incididunt est ipsum eu aliquip", "lastUpdated": "2007-09-25T12:28:55.357Z", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "0a57b85276cd57eba51aff7d", "formId": "67e7a82738854aa0c4f7a020", "migrationVersion": 68683555, "formSchemaHash": null, "legacyWrapper": false }, "automaticChanges": [ "aliquip", "et", "incididunt", "dolore amet" ] } ] } } }
{ "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" } } } } } } } } } } } ] }