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": "d3aba9f7b545b94fc41112b6", "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 imported 3 of 4 documents", "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": "workflows", "createdBy": "voluptate aliqua dolor sint", "created": "1964-05-03T10:33:20.594Z", "lastUpdatedBy": null, "lastUpdated": "2000-04-25T21:24:27.018Z", "_id": "8d9153bbefdb5edb870b2ffd", "gbac": { "write": [ "e2770013077a20b98052f43d", "d07a1a6cd2387cb2241d1779", "839fdf7ecaf0ca064bef8bc0", "a3ae8eaa8154cc79b5352f30" ], "read": [ "ee48f427deec35c54b8361a8" ] }, "componentId": "3fef2C1B-d5AD-2ee9-0f8E-9adC6ebc46C0" }, "metadata": { "automaticChanges": [ "qui magna aliqua aute" ], "triggerCloneResults": { "message": "Ut irure quis", "data": [ { "success": true, "data": { "name": -23698830, "description": "in aute", "type": -77153356, "enabled": true, "actionType": -33717905.86521435, "actionId": true, "lastExecuted": false, "createdBy": 11754079.78170009, "created": -68964244.71385205, "lastUpdatedBy": -22509404, "lastUpdated": 30495774, "formData": false, "firstRunAt": false, "nextRunAt": "mollit laborum pariatur irure in", "processMissedRuns": -96607864.51768035, "locked": "dolor esse commodo enim exercitation", "repeatUnit": "aliqua reprehenderit fugiat elit", "repeatFrequency": false, "repeatInterval": true, "_id": -50800120.99386933, "formId": true }, "automaticChanges": [ "dolore", "in", "culpa", "deserunt id do magna", "sunt ullamco in" ] }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "dd34cc62f621b18bf13e9e9b", "lastExecuted": 2293545, "createdBy": null, "created": "2013-07-22T02:01:14.451Z", "lastUpdatedBy": null, "lastUpdated": "1953-12-08T13:44:16.804Z", "verb": "POST", "routeName": "FDg7f", "_id": "f9dc3d5ec4021c991e7164d3", "jst": null, "migrationVersion": -64933630 }, "automaticChanges": [ "sint velit labore ex", "in laborum dolore", "eu", "occaecat est nulla consequat" ] }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "37b23ce2e5a7446524a089af", "lastExecuted": 49397268, "createdBy": null, "created": "1958-01-27T01:40:31.048Z", "lastUpdatedBy": null, "lastUpdated": "1951-11-13T15:04:19.195Z", "verb": "POST", "routeName": "W8t", "_id": "b7e36c843b53f0d32009c854", "jst": null, "migrationVersion": 93073946 }, "automaticChanges": [ "pariatur", "enim anim cillum voluptate", "deserunt", "enim ea" ] }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "507e346dacf1efba741869fc", "lastExecuted": null, "createdBy": null, "created": "1995-12-23T17:01:54.001Z", "lastUpdatedBy": "consectetur ut nulla id", "lastUpdated": "1954-06-15T20:17:19.329Z", "source": "elit velit", "topic": "non ipsum aute elit dolore", "schema": null, "_id": "aff228178505974367ad21da", "jst": "c40a088608dde9bac5f1ee68", "migrationVersion": -40434647 }, "automaticChanges": [ "incididunt", "pariatur ipsum consectetur laboris cillum", "nulla", "exercitation cillum occaecat Excepteur 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" } } } } } } } } } } } ] }