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": "318b56738c5768667d33be80",
"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": "in dolore",
"created": "1981-07-24T09:28:56.448Z",
"lastUpdatedBy": "sit fugiat enim laboris ea",
"lastUpdated": "1966-02-27T04:38:10.87Z",
"_id": "312a0cff5d63b7d403324544",
"gbac": {
"write": [
"cbb06591c0855f5cc7f73076",
"c80cb40655a175614beff2be",
"a470c1621bb816ba53733e23"
],
"read": [
"3eac9c52381b8d26d5dedbee",
"489a8ffdcb24e1b3acb2f4ed",
"f6880670a7afd883d98c01cc"
]
},
"componentName": "amet proident cupidatat"
},
"metadata": {
"automaticChanges": [
"deserunt consequat adipisicing",
"do enim",
"do adipisicing"
],
"triggerCloneResults": {
"message": "nisi dolor exercitation cupidatat Duis",
"data": [
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"type": "endpoint",
"enabled": false,
"actionType": "automations",
"actionId": "7e970e00389177e036ceee78",
"lastExecuted": 28560945,
"createdBy": "esse minim laborum in",
"created": "1978-10-08T12:30:25.31Z",
"lastUpdatedBy": "minim ullamco irure",
"lastUpdated": "1966-12-16T20:28:57.071Z",
"verb": "POST",
"routeName": "V6b",
"_id": "831d25de6f99b5724f09c7d3",
"jst": null,
"migrationVersion": 22085762
},
"automaticChanges": [
"Ut",
"consequat culpa minim veniam",
"occaecat cillum",
"elit adipisicing occaecat",
"nisi"
]
},
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"type": "endpoint",
"enabled": true,
"actionType": "automations",
"actionId": "d28c2eb64fc3e3214327da43",
"lastExecuted": null,
"createdBy": null,
"created": "1950-08-05T08:13:58.261Z",
"lastUpdatedBy": "adipisicing mollit irure nulla",
"lastUpdated": "1999-07-06T14:55:54.953Z",
"verb": "POST",
"routeName": "GHZ2Ng",
"_id": "5e5aaba6c998ab8eb2c9b2b0",
"jst": "bd15736fe2d729fc31a673bd",
"migrationVersion": -51882002
},
"automaticChanges": [
"dolor aute",
"irure incididunt occaecat 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"
}
}
}
}
}
}
}
}
}
}
}
]
}