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": "b3c4b8b4e705b9fb1d5336e7",
"name": "myCoolDocumentName"
}
Return
Details Example Schema
Name
Type
Description
result
object
The result of the clone operation.
Copied to Clipboard
{
"message": "Successfully retrieved search results",
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"componentType": "workflows",
"createdBy": null,
"created": "1968-05-19T12:34:26.107Z",
"lastUpdatedBy": null,
"lastUpdated": "2013-02-25T15:11:16.86Z",
"_id": "6ed488dac9c33ae3a9917303",
"gbac": {
"write": [
"c28c2697b19aefcd236c0f64",
"69273f2019761fda99541068",
"3597399b2d7d1a2aab53e15f",
"8125ea22489a4917be76114d"
],
"read": [
"d9263408310ac41ad30e49e4",
"957b1adb9a700ac918b6ac88",
"ee757b78ed750629572847ce",
"0451ae93bd924e8183bb37da"
]
},
"componentName": "elit voluptate Duis"
},
"metadata": {
"automaticChanges": [
"pariatur proident sed laborum cupidatat",
"reprehenderit incididunt voluptate",
"esse exercitation laboris adipisicing",
"sed magna non est"
],
"triggerCloneResults": {
"message": "in commodo voluptate",
"data": [
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"type": "endpoint",
"enabled": true,
"actionType": "automations",
"actionId": "77da6076f79323445c588f51",
"lastExecuted": null,
"createdBy": "enim id irure",
"created": "1979-10-26T15:14:48.948Z",
"lastUpdatedBy": "sit adipisicing",
"lastUpdated": "1955-05-04T12:21:59.862Z",
"verb": "POST",
"routeName": "vIh06UOVw",
"schema": null,
"_id": "371816b1c932cb97d6e8abf4",
"jst": "a912038274bba482819d9a1f",
"migrationVersion": -86848231
},
"automaticChanges": [
"in aliqua",
"aliquip occaecat reprehenderit"
]
}
]
}
}
}
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"
}
}
}
}
}
}
}
}
}
}
}
]
}