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": "a0690778b378963d04fc6caa",
"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": null,
"createdBy": null,
"created": "2010-10-19T20:41:48.313Z",
"lastUpdatedBy": null,
"lastUpdated": "1989-04-11T07:44:44.848Z",
"_id": "0b0a45e06d96e6fc5c133e01",
"gbac": {
"write": [
"7befa5fe34e94a631e207587"
],
"read": [
"f5e985ac47dc55f243ed31df",
"ae3eda48b0b79dbaab7e3de9",
"72a6c2da9fc9081df1452713"
]
},
"componentId": null,
"componentName": null
},
"metadata": {
"automaticChanges": [
"ex deserunt consequat nisi",
"Ut exercitation consectetur"
],
"triggerCloneResults": {
"message": "amet minim",
"data": [
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"type": "endpoint",
"enabled": true,
"actionType": "automations",
"actionId": "bc5bf85195b0b37b1c8ebb65",
"lastExecuted": null,
"createdBy": "qui",
"created": "1952-07-10T14:12:18.32Z",
"lastUpdatedBy": null,
"lastUpdated": "1970-10-09T19:41:52.617Z",
"verb": "POST",
"routeName": "vy1-",
"schema": null,
"_id": "7efd020790f1599220d63997",
"jst": null,
"migrationVersion": 62070879
},
"automaticChanges": [
"in Ut ea magna in"
]
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"type": "endpoint",
"enabled": true,
"actionType": "automations",
"actionId": "3f14d7f770d837b2f48174c9",
"lastExecuted": null,
"createdBy": "minim veniam laboris",
"created": "2022-01-03T13:51:40.48Z",
"lastUpdatedBy": "est ullamco",
"lastUpdated": "1980-04-25T20:10:51.611Z",
"verb": "POST",
"routeName": "WQ",
"_id": "3754d6a23add568350ae884e",
"jst": "fad17e6ddddf05d2cb04de23",
"migrationVersion": 41830603
},
"automaticChanges": [
"consequat anim officia dolore aute",
"dolore ad aliquip"
]
},
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"type": "endpoint",
"enabled": true,
"actionType": "automations",
"actionId": "247b21c1d01c898b33414a05",
"lastExecuted": null,
"createdBy": null,
"created": "1946-11-17T10:07:06.805Z",
"lastUpdatedBy": null,
"lastUpdated": "1981-09-17T15:33:02.17Z",
"verb": "POST",
"routeName": "msbiF3zUZ7o",
"_id": "497bf2ceed767aa415327e82",
"jst": "0b413fd03233137a4dd033f7",
"migrationVersion": -73272863
},
"automaticChanges": [
"eu nostrud laboris",
"et aliqua sint Excepteur"
]
}
]
}
}
}
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"
}
}
}
}
}
}
}
}
}
}
}
]
}