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": "7e83fec957784bd8247390b1", "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": "commodo cupidatat deserunt veniam", "created": "2015-01-17T00:25:22.635Z", "lastUpdatedBy": null, "lastUpdated": "1960-03-01T09:48:40.38Z", "_id": "a12ae4197be331f822c9b89b", "gbac": { "write": [ "3d39268adbc3384bc99d6d8a", "96095e7c2d7adc802479825c", "8cbfe4e328e9d0491ea0a5e3", "86ae0ba790c32d9c31d386c2", "1feb3b4068ea5bb96832f3f3" ], "read": [ "fc51c7fe188a622426519a16", "370b332c67c87ab2aa18fecd", "3f1e920715d4cc64f510812a" ] }, "componentId": null }, "metadata": { "automaticChanges": [ "commodo reprehenderit", "eiusmod velit reprehenderit nisi", "velit ullamco dolore anim eu" ], "triggerCloneResults": { "message": "velit", "data": [ { "success": true, "data": { "name": -72773220.14002939, "description": true, "type": "culpa", "enabled": 45484468, "actionType": true, "actionId": 57428307, "lastExecuted": "aute dolor", "createdBy": 78433289, "created": -62080138.49212777, "lastUpdatedBy": -50181388, "lastUpdated": -41717072.8352033, "formData": "nulla aute qui pariatur consectetur", "legacyWrapper": -79218867, "firstRunAt": -90288030, "nextRunAt": false, "processMissedRuns": "veniam non", "locked": "in sit", "repeatUnit": "consectetur", "repeatFrequency": false, "repeatInterval": true, "_id": "adipisicing dolor", "formId": "cupidatat labore aliqua" }, "automaticChanges": [ "qui aute", "eiusmod irure" ] }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "3f08e5bacf65fd86e004d24f", "lastExecuted": null, "createdBy": "incididunt", "created": "1993-03-03T01:33:48.513Z", "lastUpdatedBy": "et sit magna", "lastUpdated": "2003-01-10T07:39:29.487Z", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "legacyWrapper": false, "_id": "437187b31be3821ecf527fc3", "formId": "84367f8b2d2839e81d64c24f", "migrationVersion": -2743955, "formSchemaHash": null }, "automaticChanges": [ "tempor", "ad nostrud aliqua in", "adipisicing", "sint dolor" ] }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "fbc6aaf482da5f611bac1831", "lastExecuted": null, "createdBy": null, "created": "2016-09-15T18:35:20.236Z", "lastUpdatedBy": null, "lastUpdated": "1965-09-22T18:34:16.459Z", "verb": "POST", "routeName": "i-_FxX-", "_id": "dd30f13774a5828190a374a6", "jst": "3292b47ea2696363ed100850", "migrationVersion": -96440730 }, "automaticChanges": [ "id", "aute nulla anim", "eu voluptate amet elit" ] }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "fea4ad8d0b3bc47269edcbd6", "lastExecuted": null, "createdBy": null, "created": "1971-09-01T22:38:54.844Z", "lastUpdatedBy": "fugiat elit ullamco", "lastUpdated": "1991-09-21T05:25:15.951Z", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "legacyWrapper": false, "_id": "bf92d1c6f2e9bb2efd0de39a", "formId": "bde70d981e41edb5f1dcd5d3", "migrationVersion": 68825138, "formSchemaHash": "occaecat incididunt voluptate ut" }, "automaticChanges": [ "sunt sed est Ut", "aute est in velit cillum" ] }, { "success": false, "data": { "name": 96503576.27494964, "description": 62200210.30456141, "type": true, "enabled": -30343355, "actionType": "Lorem aliquip est", "actionId": false, "lastExecuted": "Excepteur voluptate qui in", "createdBy": false, "created": "cillum ut enim", "lastUpdatedBy": "occaecat", "lastUpdated": 11203802, "formData": true, "legacyWrapper": "qui est laboris ea amet", "firstRunAt": 10144002, "nextRunAt": "in ad id", "processMissedRuns": "sed", "locked": -16265499.66094029, "repeatUnit": false, "repeatFrequency": -6792217, "repeatInterval": -40764285, "_id": "minim occaecat", "formId": 20167411.551031396 }, "automaticChanges": [ "commodo in", "amet commodo" ] } ] } } }
{ "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" } } } } } } } } } } } ] }