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": "450cd61d96b6e080ad2a5ec4", "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 imported 3 of 4 documents", "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "ucm_compliance_plans", "createdBy": null, "created": "2015-05-19T23:21:11.417Z", "lastUpdatedBy": "minim incididunt aliquip est", "lastUpdated": "1952-02-07T17:30:21.116Z", "_id": "a14c867ac75dcd243e3a06a0", "gbac": { "write": [ "9c414546ac3aa8e7ea5fb80e", "20f7a43d1aee8f99c4f20493", "8c87c533ca08c080a8f57768" ], "read": [ "dbdb6d394df322f6c5a1e1fe", "fb5d225bcbc3e36a3ae49488" ] }, "componentName": null }, "metadata": { "automaticChanges": [ "aliqua ea reprehenderit occaecat", "laborum", "sed mollit in qui", "laborum in mollit ad" ], "triggerCloneResults": { "message": "ut dolor ad", "data": [ { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "83a0cb4e1695f687cc0c67ac", "lastExecuted": null, "createdBy": null, "created": "1963-09-26T12:37:39.886Z", "lastUpdatedBy": null, "lastUpdated": "2008-04-17T17:18:04.3Z", "verb": "POST", "routeName": "wBgHV0AV", "_id": "b6ec67ad2b8b994d4a571588", "jst": "aa0b12ebcca1a3c0719856ea", "migrationVersion": -13560411 }, "automaticChanges": [ "consequat fugiat dolor", "id incididunt dolor pariatur labore", "veniam dolor", "irure adipisicing dolor exercitation", "do non in ad deserunt" ] }, { "success": true, "data": { "name": true, "description": -5249788.814334393, "type": 44787302.112856686, "enabled": "voluptate", "actionType": "dolor do fugiat irure quis", "actionId": false, "lastExecuted": 67643106.34668785, "createdBy": true, "created": 1807405.7663592547, "lastUpdatedBy": 51114373.12730086, "lastUpdated": 34640191, "formData": false, "legacyWrapper": -4983649, "firstRunAt": "esse", "nextRunAt": -80395713, "processMissedRuns": -90269460.1113557, "locked": -87152734.8363692, "repeatUnit": "culpa consequat aliqua eiusmod nostrud", "repeatFrequency": true, "repeatInterval": false, "_id": -37419659, "formId": -99523522 }, "automaticChanges": [ "mollit voluptate laborum minim amet", "in cillum reprehenderit" ] }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "27309f88691788322e3ce5f8", "lastExecuted": 91102208, "createdBy": null, "created": "1969-01-26T15:41:54.935Z", "lastUpdatedBy": "sunt sint qui", "lastUpdated": "1975-10-11T09:28:33.352Z", "source": "ut dolor occaecat ullamco velit", "topic": "nostrud in veniam Ut dolore", "schema": null, "legacyWrapper": false, "_id": "8bd348fbc1f299e43bb06550", "jst": "a7400aa2da06e8502e0a1073", "migrationVersion": -10796541 }, "automaticChanges": [ "deserunt non nulla reprehenderit incididunt" ] }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "86fdf7440ac26b2b4432aa10", "lastExecuted": 87829968, "createdBy": null, "created": "2008-06-08T10:45:30.265Z", "lastUpdatedBy": null, "lastUpdated": "1997-09-21T01:18:13.285Z", "verb": "POST", "routeName": "hKSGDFI", "schema": null, "_id": "6fd1b15da95445620341979d", "jst": null, "migrationVersion": -89554118 }, "automaticChanges": [ "aliqua aute eiusmod enim", "in nisi aliquip", "fugiat mollit esse labore Excepteur", "culpa do reprehenderit Duis 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" } } } } } } } } } } } ] }