Clone an automation document from a user supplied JSON document.
Route
POST /operations-manager/automations/clone
Roles
adminapiwriteengineering
Parameters
DetailsExampleSchema
Name
Type
Required
Description
automation
object
yes
The id and an optional name for the automation to clone
Copied to Clipboard
{
"id": "enim",
"name": null
}
Copied to Clipboard
{
"title": "automation",
"properties": {
"id": {
"type": "string",
"description": "The id of the automation to clone",
"schema": {
"title": "id",
"$ref": "common-ops-schema#/definitions/ObjectId"
}
},
"name": {
"description": "An optional name to use for the cloned automation",
"oneOf": [
{
"type": "null"
},
{
"$ref": "common-ops-schema#/definitions/ObjectId"
}
]
}
}
}
Return
DetailsExampleSchema
Name
Type
Description
result
object
The cloned automation
Copied to Clipboard
{
"status": "Created",
"message": "in aliquip sint",
"data": {
"_id": "4321abcdef694aa79dae47ad",
"name": "My document",
"description": "A description of an automation.",
"componentType": "workflows",
"created": "2019-04-16T00:43:22.038Z",
"lastUpdated": "2019-04-16T00:43:22.038Z",
"gbac": {
"write": [
"5cb7b531d06cceb89fd21b1c",
"5cb7b531d06cceb89fd21b1c",
"5cb7b531d06cceb89fd21b1c"
],
"read": [
"5cb7b531d06cceb89fd21b1c",
"4321abcdef694aa79dae47ad",
"5cb7b531d06cceb89fd21b1c"
]
},
"createdBy": "dolor",
"lastUpdatedBy": "eiusmod",
"componentName": "velit Lorem culpa",
"componentId": "fugiat eu amet Duis"
}
}
Copied to Clipboard
{
"title": "result",
"type": "object",
"properties": {
"status": {
"type": "string",
"description": "The status of the API request.",
"enum": [
"Created"
]
},
"message": {
"type": "string",
"description": "Message containing either confirmation of the operation or the reason for the failure of the operation."
},
"data": {
"$ref": "automation-api"
}
}
}