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": "7cecca7eabb65e801b2a6212",
"name": null
}
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": "workflows",
"createdBy": null,
"created": "2024-09-20T03:29:41.965Z",
"lastUpdatedBy": null,
"lastUpdated": "2017-10-23T17:54:56.266Z",
"_id": "a07e75c48f008527319122fa",
"gbac": {
"write": [
"259dbed3d49cefe51c1701bd"
],
"read": [
"f4df62bb454fd528903bd321",
"d06e4e62a7d6afba760451a5"
]
},
"componentId": null
},
"metadata": {
"automaticChanges": [
"id tempor nisi ea velit",
"Ut",
"Ut tempor est"
],
"triggerCloneResults": {
"message": "pariatur nulla",
"data": [
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"type": "endpoint",
"enabled": true,
"actionType": "automations",
"actionId": "e8a9bfec2d2dff327579d2d0",
"lastExecuted": 83285780,
"createdBy": "aute quis in exercitation",
"created": "1949-09-18T17:23:22.652Z",
"lastUpdatedBy": null,
"lastUpdated": "1958-06-08T14:36:57.415Z",
"verb": "POST",
"routeName": "Ez",
"schema": null,
"_id": "edb07cb9764b63e21cb34fd2",
"jst": null,
"migrationVersion": 90308913
},
"automaticChanges": [
"mollit reprehenderit qui proident",
"aliquip"
]
},
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"type": "endpoint",
"enabled": true,
"actionType": "automations",
"actionId": "01e06486a293bab85c7ff9db",
"lastExecuted": null,
"createdBy": "reprehenderit aliqua aute ut id",
"created": "1950-12-30T05:08:19.023Z",
"lastUpdatedBy": "eu ad cupidatat esse",
"lastUpdated": "1980-01-24T18:36:51.356Z",
"verb": "POST",
"routeName": "ZWEYl",
"_id": "68d36441503a7f5b7ef23146",
"jst": "30a9510cc4d05f7584ea8bb5",
"migrationVersion": 84466459
},
"automaticChanges": [
"adipisicing exercitation do",
"Lorem quis",
"anim amet irure veniam 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"
}
}
}
}
}
}
}
}
}
}
}
]
}