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": "eceae0979a85998c3244ddc3",
"name": "myCoolDocumentName"
}
Return
Details Example Schema
Name
Type
Description
result
object
The result of the clone operation.
Copied to Clipboard
{
"message": "Successfully imported 3 of 4 documents",
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"componentType": null,
"createdBy": null,
"created": "2021-07-03T20:26:21.328Z",
"lastUpdatedBy": null,
"lastUpdated": "1956-01-28T14:33:24.036Z",
"_id": "761af4e91e37f3422d8236e3",
"gbac": {
"write": [
"11268a8eb6fd3f4675767acb",
"6274df13799488632350bd6c",
"aa2e24e90d859ad72c1d35a5",
"aa14b97a70bc9c2e1caf3ba2",
"5e8311eb03cfbb1f1ea4a975"
],
"read": [
"9e82183f716589d071ae00fc",
"6e477f10a5cda6737448cba8",
"d6c4fe30e2656990b9fbc2e2",
"a6015451d31a2e77f916eb4c"
]
},
"componentId": null,
"componentName": null
},
"metadata": {
"automaticChanges": [
"sint dolore proident"
],
"triggerCloneResults": {
"message": "consectetur cupidatat ad",
"data": [
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"type": "manual",
"enabled": false,
"actionType": "automations",
"actionId": "78c982a78daa2a5109d8e09a",
"lastExecuted": 7273064,
"createdBy": "do tempor",
"created": "2003-09-04T21:13:48.689Z",
"lastUpdatedBy": "culpa",
"lastUpdated": "1975-12-10T04:17:41.201Z",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"_id": "f1065ff9825ad1cec7f70d49",
"formId": "af6775adfc103b6c5279afb2",
"migrationVersion": 80346333,
"formSchemaHash": null
},
"automaticChanges": [
"proident"
]
},
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"type": "eventSystem",
"enabled": false,
"actionType": "automations",
"actionId": "36cb721c62c29f1e43de338f",
"lastExecuted": null,
"createdBy": "in proident sit Lorem ullamco",
"created": "1999-05-08T17:17:04.58Z",
"lastUpdatedBy": null,
"lastUpdated": "1949-04-10T14:01:45.147Z",
"source": "et",
"topic": "Duis ea",
"_id": "b74926513222e793643ab907",
"jst": "acb0e3040af1e31b56695d90",
"migrationVersion": 94947801
},
"automaticChanges": [
"voluptate eiusmod ad"
]
}
]
}
}
}
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"
}
}
}
}
}
}
}
}
}
}
}
]
}