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": "d6e816b237af093be97eea0b",
"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": "2006-03-18T16:36:07.327Z",
"lastUpdatedBy": "aliquip incididunt ipsum",
"lastUpdated": "1998-01-21T13:41:54.94Z",
"_id": "1ee523706fe53a24fa56a0e4",
"gbac": {
"write": [
"80176a5f1d672273fa356b2d",
"3b6de003897fabb713d54158"
],
"read": [
"d8fb564f402333d1af45fe75",
"467063a89f4d5b635897f193",
"667f1e99f422af26e152002b",
"abf634ab52ba37307a37bbcc",
"e976626532cf3013e19006c2"
]
},
"componentId": null
},
"metadata": {
"automaticChanges": [
"laborum ex ut est consectetur",
"dolor",
"amet voluptate dolore veniam mollit"
],
"triggerCloneResults": {
"message": "consectetur deserunt anim",
"data": [
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"type": "eventSystem",
"enabled": false,
"actionType": "automations",
"actionId": "0d389455701bf24dc15a24c6",
"lastExecuted": null,
"createdBy": null,
"created": "2016-04-04T10:02:20.069Z",
"lastUpdatedBy": null,
"lastUpdated": "1956-06-12T17:54:35.543Z",
"source": "voluptate ea tempor adipisicing",
"topic": "dolore quis aliquip ad culpa",
"legacyWrapper": true,
"_id": "d6f8c173fad54f4c35006ac7",
"jst": "a52133332731dcaf3b240439",
"migrationVersion": 54478178
},
"automaticChanges": [
"ad",
"pariatur mollit Lorem cupidatat",
"incididunt Lorem sed ea laboris"
]
},
{
"success": false,
"data": {
"name": true,
"description": 10590147.74648723,
"type": -82997652.37623417,
"enabled": -3573611.364829883,
"actionType": false,
"actionId": 10036132,
"lastExecuted": false,
"createdBy": true,
"created": 35507759,
"lastUpdatedBy": -56753864.35975396,
"lastUpdated": -57780702,
"formData": false,
"legacyWrapper": -62360855.79805799,
"firstRunAt": -63536668.47708146,
"nextRunAt": -52384352.83145111,
"processMissedRuns": true,
"locked": 88090778,
"repeatUnit": "sunt",
"repeatFrequency": false,
"repeatInterval": false,
"_id": 94682417,
"formId": true
},
"automaticChanges": [
"et eu adipisicing",
"eiusmod fugiat reprehenderit",
"ut do",
"laboris dolore",
"pariatur"
]
}
]
}
}
}
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"
}
}
}
}
}
}
}
}
}
}
}
]
}