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": "3a2dc8391341d1f1a66fb836",
"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": "2024-02-10T04:20:15.493Z",
"lastUpdatedBy": "aliqua",
"lastUpdated": "2008-10-17T01:10:40.363Z",
"_id": "5e08ee91cbcdbdde8d50ebc7",
"gbac": {
"write": [
"142d4ddd2bcc6f67e052a7c6",
"fcdd9efee89eb5077b47fa79",
"6f63176e8d726fc7f4004ba4"
],
"read": [
"fb8110b5dbb6d69749498a72",
"be7c6ebb26110e5c5d4eb734"
]
},
"componentName": "ex Duis non"
},
"metadata": {
"automaticChanges": [
"esse",
"dolor",
"commodo consectetur quis Duis"
],
"triggerCloneResults": {
"message": "in adipisicing id officia elit",
"data": [
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"type": "eventSystem",
"enabled": false,
"actionType": "automations",
"actionId": "d4e7300517739af4429c3f6b",
"lastExecuted": 44064366,
"createdBy": "ut labore in ut Lorem",
"created": "1996-02-26T15:08:56.847Z",
"lastUpdatedBy": null,
"lastUpdated": "1950-12-05T23:23:58.423Z",
"source": "magna nisi",
"topic": "fugiat eiusmod",
"schema": null,
"_id": "51da6cbc840d5a295c7f23c0",
"jst": "b8d58fa03df5f63140bb61cb",
"migrationVersion": -19068692
},
"automaticChanges": [
"officia cillum et non",
"esse laboris aute magna",
"voluptate ex"
]
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"type": "manual",
"enabled": true,
"actionType": "automations",
"actionId": "328b75973f5d40888c29021b",
"lastExecuted": null,
"createdBy": "dolor",
"created": "1965-06-30T19:56:03.799Z",
"lastUpdatedBy": null,
"lastUpdated": "2009-09-24T12:50:26.869Z",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"_id": "f0f871fd7a011a983e2b49ea",
"formId": null,
"migrationVersion": -16511464,
"formSchemaHash": "occaecat tempor proident irure veniam"
},
"automaticChanges": [
"ut est esse dolor",
"enim aliqua",
"velit dolor cillum"
]
}
]
}
}
}
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"
}
}
}
}
}
}
}
}
}
}
}
]
}