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": "f78e7b4c1c527139217bdb6c", "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": "workflows", "createdBy": "incididunt voluptate aliquip velit irure", "created": "1994-06-24T14:04:43.183Z", "lastUpdatedBy": "labore officia in non", "lastUpdated": "1983-03-09T07:57:29.832Z", "_id": "8c8af680d96555a4e813748c", "gbac": { "write": [ "242079e9f14a0139f5b077d8" ], "read": [ "d0f9a8361700a91dcf819d9e", "360a48e90c7ebbeb1bcd87ef", "7feceeaedf0e86e792eb78e5" ] }, "componentName": "do dolor" }, "metadata": { "automaticChanges": [ "et laborum in sint minim", "laborum mollit fugiat aliquip dolor", "pariatur minim Ut" ], "triggerCloneResults": { "message": "magna", "data": [ { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "eventSystem", "enabled": false, "actionType": "automations", "actionId": "7808ac1fcdb059915213ed94", "lastExecuted": null, "createdBy": null, "created": "1961-09-10T07:55:26.212Z", "lastUpdatedBy": null, "lastUpdated": "1984-08-18T20:05:17.379Z", "source": "ipsum", "topic": "do", "_id": "2a4185164158f87d0995ca94", "jst": "49cc110418ec1f6466c3ba41", "migrationVersion": -37117600, "legacyWrapper": true }, "automaticChanges": [ "sit fugiat sint irure", "ex mollit", "aliqua dolore minim sint culpa", "laborum sed sint aute" ] }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "manual", "enabled": false, "actionType": "automations", "actionId": "5a08453c47927028cbf04fea", "lastExecuted": null, "createdBy": "consectetur ut aliquip reprehenderit aliqua", "created": "1983-03-17T15:36:32.597Z", "lastUpdatedBy": null, "lastUpdated": "1947-09-07T03:01:40.538Z", "formData": { "ip": "1.2.3.4", "name": "myNewDevice" }, "_id": "30047904d44482bbfcf7b7e3", "formId": null, "migrationVersion": -52802955, "formSchemaHash": "occaecat enim", "legacyWrapper": false }, "automaticChanges": [ "incididunt officia dolor laboris non", "veniam", "sunt ut minim", "aliquip enim", "velit laboris consectetur dolore" ] }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "593684ee6cfac6e0139a35ec", "lastExecuted": null, "createdBy": "est", "created": "1987-09-26T13:06:41.774Z", "lastUpdatedBy": null, "lastUpdated": "1975-09-20T16:25:09.753Z", "source": "aliquip qui do non quis", "topic": "reprehenderit amet esse dolore commodo", "schema": null, "_id": "76bab70d73eaf89042606ef5", "jst": null, "migrationVersion": -79728635, "legacyWrapper": false }, "automaticChanges": [ "eiusmod sit quis" ] }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "22eff8b93fbd2260ae35e2d3", "lastExecuted": 71729909, "createdBy": "qui amet ipsum", "created": "1975-11-17T20:40:07.971Z", "lastUpdatedBy": "est quis Lorem irure esse", "lastUpdated": "1950-01-24T20:28:12.021Z", "source": "esse minim dolore id", "topic": "elit", "schema": null, "_id": "436095b68afec8bd408ea3a9", "jst": null, "migrationVersion": -51218477, "legacyWrapper": false }, "automaticChanges": [ "laboris in dolore sunt Ut" ] }, { "success": false, "data": { "name": -7389951, "description": -86422111, "type": true, "enabled": -74909436.13106422, "actionType": -15155742.545394897, "actionId": 34488812.69978377, "lastExecuted": "sed", "createdBy": 39156808.694322765, "created": "veniam incididunt ut voluptate sed", "lastUpdatedBy": "pariatur dolor sint nisi", "lastUpdated": -14183346, "formData": "dolor eiusmod", "firstRunAt": 64910122.436513096, "nextRunAt": 45741677.67391014, "processMissedRuns": "do ullamco elit", "locked": -11355973.089450538, "repeatUnit": 69275945.52434221, "repeatFrequency": "dolor mollit nisi enim occaecat", "repeatInterval": "nostrud", "_id": "amet nulla dolore anim est", "formId": true }, "automaticChanges": [ "exercitation" ] } ] } } }
{ "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" } } } } } } } } } } } ] }