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": "c9dd292844bee5fe73ae6d4f", "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": "eu dolor fugiat sunt Ut", "created": "1997-01-16T19:20:40.111Z", "lastUpdatedBy": null, "lastUpdated": "2007-04-05T10:44:57.456Z", "_id": "3bc54df150e31165edd11cf3", "gbac": { "write": [ "cb7b4b4ef0e29d9a84c46c09" ], "read": [ "62cd4cbaf4e45e1152cec49d", "90c667b2834d1fd005c086ba" ] }, "componentId": "", "componentName": "id" }, "metadata": { "automaticChanges": [ "sint", "consequat irure esse dolore magna", "dolore" ], "triggerCloneResults": { "message": "est nostrud amet", "data": [ { "success": true, "data": { "name": -65613193, "description": true, "type": "Excepteur minim Ut enim", "enabled": 50833503.53593135, "actionType": 72639280.49375376, "actionId": -47825441.96012837, "lastExecuted": true, "createdBy": 38334754, "created": 70014027.16456234, "lastUpdatedBy": false, "lastUpdated": true, "formData": "officia voluptate in ipsum culpa", "legacyWrapper": true, "firstRunAt": -549349, "nextRunAt": -27485646.262163192, "processMissedRuns": true, "locked": true, "repeatUnit": false, "repeatFrequency": false, "repeatInterval": "Lorem dolor pariatur incididunt ullamco", "_id": -70577198.13289039, "formId": 75417131 }, "automaticChanges": [ "reprehenderit id", "occaecat est commodo", "labore Ut anim eiusmod incididunt", "tempor cupidatat sed", "voluptate sint sunt nisi" ] }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "a2c54c895f2b70543ae79cec", "lastExecuted": 2849044, "createdBy": null, "created": "1994-12-19T10:31:40.68Z", "lastUpdatedBy": "magna adipisicing Lorem amet", "lastUpdated": "1965-07-12T15:43:21.739Z", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "legacyWrapper": true, "_id": "5cd3f925fdef351f206d72ed", "formId": "d94a22a9841a0b89e19520c7", "migrationVersion": -57771246, "formSchemaHash": "sint" }, "automaticChanges": [ "voluptate dolor anim nostrud", "ullamco nulla anim laboris" ] }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "5be4ef0ae25fe3c8057c62d0", "lastExecuted": null, "createdBy": null, "created": "1988-07-27T01:14:14.488Z", "lastUpdatedBy": "nisi irure adipisicing eiusmod", "lastUpdated": "2015-02-15T09:36:06.992Z", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "legacyWrapper": true, "_id": "00af5fe9d03a13cabdbc4d6d", "formId": null, "migrationVersion": -92179711, "formSchemaHash": "esse" }, "automaticChanges": [ "occaecat est", "et aliquip", "in pariatur", "quis" ] }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "cfaf727e4a7b1505d132ea8b", "lastExecuted": 56114470, "createdBy": null, "created": "1961-01-06T21:34:54.177Z", "lastUpdatedBy": null, "lastUpdated": "2020-03-17T10:54:05.594Z", "verb": "POST", "routeName": "pBTycA", "_id": "cba809f4f920f09879129fac", "jst": null, "migrationVersion": -41450458 }, "automaticChanges": [ "minim labore culpa", "dolor qui", "ut", "amet occaecat ex dolore sit", "proident commodo reprehenderit cillum" ] } ] } } }
{ "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" } } } } } } } } } } } ] }