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": "e96dc5f5d5cad0e30be30c03",
"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": "1971-06-21T01:31:00.102Z",
"lastUpdatedBy": null,
"lastUpdated": "1964-05-18T19:20:07.629Z",
"_id": "c938c1f0c33d947c7af96687",
"gbac": {
"write": [
"bcf545c7fd646813e629c531",
"ea2e0b9f0b2aa2f6fab221ac",
"5447ee43a5d2b57787e64486",
"2e40f9716113dd1b6daa9c77",
"8f7f241deabb85efa6610038"
],
"read": [
"972ee372e79619e25771f3bb",
"348cb7803c7dd7a015cfcfb7"
]
},
"componentName": "occaecat"
},
"metadata": {
"automaticChanges": [
"incididunt exercitation"
],
"triggerCloneResults": {
"message": "minim consequat non labore",
"data": [
{
"success": false,
"data": {
"name": 63617353,
"description": false,
"type": -9835814.690829545,
"enabled": -47568885.52475185,
"actionType": true,
"actionId": 23795217,
"lastExecuted": true,
"createdBy": 57640661,
"created": false,
"lastUpdatedBy": -79541314,
"lastUpdated": "aliqua",
"formData": "Duis adipisicing laboris eu enim",
"legacyWrapper": "nisi culpa laboris non",
"firstRunAt": "Ut consequat dolore",
"nextRunAt": "ea non ut elit",
"processMissedRuns": 60814455.76152825,
"locked": false,
"repeatUnit": "anim culpa exercitation",
"repeatFrequency": false,
"repeatInterval": "consequat",
"_id": -36493251,
"formId": -17548623.17506869
},
"automaticChanges": [
"Lorem voluptate enim in",
"nulla",
"ex in Ut",
"velit deserunt aliqua consequat"
]
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"type": "endpoint",
"enabled": true,
"actionType": "automations",
"actionId": "81b6edf3f2f3027192625937",
"lastExecuted": null,
"createdBy": "consectetur",
"created": "1971-09-10T00:37:29.395Z",
"lastUpdatedBy": null,
"lastUpdated": "2022-04-19T15:25:38.943Z",
"verb": "POST",
"routeName": "DZ",
"schema": null,
"_id": "87a9d7e51064a665e84faa64",
"jst": "7ce095d8ec84b64d4bb4ea4c",
"migrationVersion": -44350606
},
"automaticChanges": [
"velit ut",
"voluptate reprehenderit eu irure"
]
},
{
"success": false,
"automaticChanges": [
"consectetur adipisicing sed occaecat pariatur",
"commodo",
"deserunt sed nostrud occaecat"
]
},
{
"success": true,
"automaticChanges": [
"incididunt proident nostrud tempor ea",
"elit",
"elit Excepteur ex commodo"
]
}
]
}
}
}
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"
}
}
}
}
}
}
}
}
}
}
}
]
}