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": "a799a74f31684ceeb015d6b4", "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": null, "createdBy": "laboris in mollit consequat", "created": "1992-03-01T06:50:46.245Z", "lastUpdatedBy": "velit veniam", "lastUpdated": "1961-01-04T04:54:51.995Z", "_id": "25ef58ba39a6e172239bf7a9", "gbac": { "write": [ "16a0505a331de720cdff8c09", "8dd05e5e53317bd4d8687997", "0a5f85def59fb7d428d6f36b", "20e3af948e5cd651628d4eff" ], "read": [ "104d3605947d5683674d16bb", "79486fd56ca25fd50607ac5c", "208e528b3da6d995c454f06f", "085220d40b3c8faabaccac28", "7b2c4350b7d74b277566f28c" ] }, "componentId": "7e4f70c3f7984d31cf81b0af", "componentName": null }, "metadata": { "automaticChanges": [ "cillum dolore", "dolor veniam ea mollit sit", "fugiat est sunt mollit" ], "triggerCloneResults": { "message": "officia Lorem anim est", "data": [ { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "0e31240190f9e34293448c87", "lastExecuted": 50619954, "createdBy": "ut ex reprehenderit nostrud", "created": "2010-11-07T20:29:24.335Z", "lastUpdatedBy": "incididunt aliquip dolore", "lastUpdated": "1968-01-27T04:53:23.291Z", "source": "nisi anim cillum occaecat est", "topic": "exercitation", "_id": "062cdb741b5d0289ad70988c", "jst": "2e68ba57c1b1b74abbe59670", "migrationVersion": -99000942 }, "automaticChanges": [ "sit", "Ut velit adipisicing dolor commodo", "esse", "consectetur amet Excepteur", "consectetur Ut ullamco et" ] }, { "success": false, "data": { "name": 4494236.785734668, "description": "ullamco est in cillum", "type": 239784, "enabled": "enim", "actionType": "mollit non elit eu", "actionId": true, "lastExecuted": true, "createdBy": "aliquip", "created": -51858398, "lastUpdatedBy": "cillum Lorem enim ex", "lastUpdated": 34222792.048571944, "formData": "velit Duis commodo irure ullamco", "firstRunAt": "in dolor exercitation reprehenderit ex", "nextRunAt": -85342471.28913952, "processMissedRuns": false, "locked": 94919430, "repeatUnit": -93703371, "repeatFrequency": "non proident anim", "repeatInterval": "culpa", "_id": 86738928, "formId": true }, "automaticChanges": [ "aliquip nulla nisi", "Lorem Duis", "aliqua", "dolore Ut" ] }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "4b279d7cb75537c44c1cfee3", "lastExecuted": null, "createdBy": "quis labore commodo nulla", "created": "1952-12-03T11:58:37.351Z", "lastUpdatedBy": null, "lastUpdated": "1964-03-21T10:07:07.224Z", "verb": "POST", "routeName": "hNsp", "_id": "6bcc2ff468c05e58e96faa85", "jst": "3bbeec28df9da7a6b3878974", "migrationVersion": -31163267 }, "automaticChanges": [ "Duis", "id", "quis dolor", "veniam enim nulla", "sit dolore adipisicing nulla reprehenderit" ] } ] } } }
{ "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" } } } } } } } } } } } ] }