Summary
Clone Automation
Description
Clone an Automation.
Route
POST /operations-manager/automations/clone
Roles
admin
apiwrite
engineering
Parameters
Details Example Schema
Name
Type
Required
Description
automation
object
yes
The id of the Automation to be cloned and, optionally, a name to assign to the clone.
Copied to Clipboard
{
"id": "70b9e47da961540c884030f0",
"name": null
}
Return
Details Example Schema
Name
Type
Description
result
object
The result of the clone operation.
Copied to Clipboard
{
"message": "Successfully retrieved search results",
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"componentType": "workflows",
"createdBy": null,
"created": "1946-05-21T17:57:04.826Z",
"lastUpdatedBy": null,
"lastUpdated": "2016-11-03T18:25:50.355Z",
"_id": "e2a159fd6c4fdde4969e85a9",
"gbac": {
"write": [
"175b810839d110169e657fc1",
"ef0166d5255ed45ebe0ad7c8",
"bb1bf6add7352d21d4d1c046",
"83e0ba66372804c72c91aaf2"
],
"read": [
"60b1529fa8ab2d2011b38eda",
"df0f7f7d7a2b458214b92295",
"6386d42ca8569683bb251b25",
"72fbb5e9397d793a78da5402",
"468eb6753c1efce34ab62bcf"
]
},
"componentId": null
},
"metadata": {
"automaticChanges": [
"aliqua velit",
"ad do nisi",
"voluptate amet sint irure",
"Ut aute"
],
"triggerCloneResults": {
"message": "qui minim aliquip ad",
"data": [
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"type": "eventSystem",
"enabled": false,
"actionType": "automations",
"actionId": "cb8caa8e66b6be2eb3cfa9c9",
"lastExecuted": null,
"createdBy": "ex est non",
"created": "1958-05-13T22:33:28.848Z",
"lastUpdatedBy": "ad in in cillum",
"lastUpdated": "1964-06-14T11:02:27.65Z",
"source": "ex aute elit",
"topic": "consectetur dolore adipisicing laboris quis",
"_id": "685f1f501a5499d989c74d99",
"jst": null,
"migrationVersion": 4775608,
"legacyWrapper": false
},
"automaticChanges": [
"ad ullamco mollit proident"
]
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"type": "eventSystem",
"enabled": false,
"actionType": "automations",
"actionId": "5622198a876bca27d1990113",
"lastExecuted": null,
"createdBy": "sed enim commodo aliquip",
"created": "1992-04-07T23:20:52.942Z",
"lastUpdatedBy": "in tempor adipisicing nulla in",
"lastUpdated": "1956-03-20T19:25:28.215Z",
"source": "cillum et",
"topic": "anim laborum ut",
"schema": null,
"_id": "54412497d9d55681b9673fdd",
"jst": "ff06c2b5284c7b0c8e7cd850",
"migrationVersion": 80712362,
"legacyWrapper": true
},
"automaticChanges": [
"et consectetur nisi",
"nulla ut qui",
"dolore in sunt"
]
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"type": "manual",
"enabled": false,
"actionType": "automations",
"actionId": "60c7c680ebfcc6fbe8aee468",
"lastExecuted": 82275164,
"createdBy": null,
"created": "1975-06-17T05:39:06.85Z",
"lastUpdatedBy": "eu",
"lastUpdated": "1998-09-11T04:52:26.849Z",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"_id": "54a94a3f565326cea1248fd5",
"formId": "b5402472ef160235c3ed2584",
"migrationVersion": -39229309,
"formSchemaHash": "nostrud tempor",
"legacyWrapper": true
},
"automaticChanges": [
"dolore qui"
]
}
]
}
}
}
Copied to Clipboard
{
"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"
}
}
}
}
}
}
}
}
}
}
}
]
}