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": "de33706bcbd4a6e8a2f555d3", "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": "1965-08-17T08:27:32.404Z", "lastUpdatedBy": "eu ipsum proident dolore", "lastUpdated": "2000-10-21T12:59:44.056Z", "_id": "3e18eb1c16e82e5d8677ae3c", "gbac": { "write": [ "a8b8f5afe7c77388f071bd79" ], "read": [ "e1f53132a6e88c62b310d34e", "7061694da7b15c7995d4ebc9", "ef5437051791d3faa5c08133", "2ef269ad4d2440bb3dc8e896", "afb99455c83cca1a6c6bfecc" ] }, "componentId": "Efa16C5E-E0E9-7bED-6c04-FabeBaB94A4d", "componentName": "aute qui do adipisicing" }, "metadata": { "automaticChanges": [ "anim enim", "non quis eiusmod", "aute", "do" ], "triggerCloneResults": { "message": "adipisicing", "data": [ { "success": false, "data": { "name": true, "description": "non in", "type": true, "enabled": 72689931, "actionType": true, "actionId": "anim veniam", "lastExecuted": 24553371, "createdBy": "fugiat elit veniam laborum ullamco", "created": false, "lastUpdatedBy": -4173519, "lastUpdated": 43925036.28881648, "formData": 93311620, "legacyWrapper": 23056458, "firstRunAt": 25302782, "nextRunAt": -57677503, "processMissedRuns": -74799598.55230582, "locked": 84071011.51538906, "repeatUnit": -30007195.683115333, "repeatFrequency": "est fugiat sunt officia quis", "repeatInterval": -52210084, "_id": "officia cupidatat", "formId": 76362926.55772382 }, "automaticChanges": [ "amet Excepteur minim exercitation ex", "laborum voluptate qui ut", "veniam proident enim" ] }, { "success": true, "data": { "name": false, "description": 44188883, "type": "esse dolore", "enabled": -75357811, "actionType": -92481550, "actionId": -8925027.14405343, "lastExecuted": -66150620, "createdBy": 12020465.550092801, "created": false, "lastUpdatedBy": 81418703.50406474, "lastUpdated": 99016270.22738531, "formData": 34301853, "legacyWrapper": "esse nostrud dolor proident dolore", "firstRunAt": 27618269.105360135, "nextRunAt": 59757042.9762536, "processMissedRuns": false, "locked": false, "repeatUnit": "sit fugiat", "repeatFrequency": true, "repeatInterval": false, "_id": "officia", "formId": false }, "automaticChanges": [ "nisi amet", "magna", "aliquip ut fugiat anim", "in cupidatat labore non", "in sit ut in est" ] }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "6b593d85531763037cdd6db2", "lastExecuted": 16343444, "createdBy": null, "created": "1999-10-29T09:05:58.953Z", "lastUpdatedBy": "ex ut incididunt", "lastUpdated": "1989-05-24T15:55:52.762Z", "verb": "POST", "routeName": "mH", "schema": null, "_id": "74d073f8ce6877baf4b76af5", "jst": "f0bc90a8cf93f459fe42701c", "migrationVersion": 15337951 }, "automaticChanges": [ "incididunt dolor mollit", "Duis aute", "quis sunt elit non", "est in nisi mollit" ] }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "aab0f593ebe6a7ff48d9daeb", "lastExecuted": null, "createdBy": "id ullamco consequat sit culpa", "created": "1990-02-14T11:11:20.987Z", "lastUpdatedBy": null, "lastUpdated": "2011-12-16T15:16:08.329Z", "source": "sint exercitation", "topic": "sed id", "legacyWrapper": true, "_id": "fbf383d251b29c8b998c4fbe", "jst": "4bc489e6e14ec1ce22e8fb72", "migrationVersion": 64994038 }, "automaticChanges": [ "Excepteur sunt dolore" ] } ] } } }
{ "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" } } } } } } } } } } } ] }