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": "8e06c181a9a938c3089bc89d",
"name": "myCoolDocumentName"
}
Return
Details Example Schema
Name
Type
Description
result
object
The result of the clone operation.
Copied to Clipboard
{
"message": "Successfully created the requested item",
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"componentType": "workflows",
"createdBy": "anim laborum nostrud exercitation cupidatat",
"created": "2005-07-23T23:45:00.065Z",
"lastUpdatedBy": null,
"lastUpdated": "1950-07-08T07:36:47.645Z",
"_id": "195b2fa080cbe2145d90e05c",
"gbac": {
"write": [
"4acc40b7f3257b4d66cf29ca",
"cd1c76fd6c4029b32a83aa64",
"a76a29cf1ef0944c1561b9ed",
"b654aa3e88dd00424c8247c2"
],
"read": [
"5a6403dc878ca85932d2cc50",
"2a9868adcab13d29eaa66841",
"5db503bbfff2e75345525155",
"356318877446b4b6bfcb8255"
]
},
"componentName": null
},
"metadata": {
"automaticChanges": [
"incididunt Lorem culpa"
],
"triggerCloneResults": {
"message": "nisi anim consequat aute",
"data": [
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"type": "eventSystem",
"enabled": false,
"actionType": "automations",
"actionId": "4fdcf5836d879393eb104106",
"lastExecuted": 71898886,
"createdBy": "magna ullamco",
"created": "1988-10-09T06:54:23.534Z",
"lastUpdatedBy": null,
"lastUpdated": "1953-05-02T18:56:10.556Z",
"source": "irure consequat commodo laboris",
"topic": "et",
"legacyWrapper": false,
"_id": "590fa0148d3e88016bf918c1",
"jst": null,
"migrationVersion": -21874595
},
"automaticChanges": [
"pariatur sint in cupidatat exercitation",
"cupidatat dolore",
"Lorem velit Duis sint nisi"
]
},
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"type": "endpoint",
"enabled": true,
"actionType": "automations",
"actionId": "c40083a09bca8fd3e3b4c1a6",
"lastExecuted": 92340852,
"createdBy": "reprehenderit cillum pariatur",
"created": "2013-05-22T12:25:40.638Z",
"lastUpdatedBy": "ea cupidatat sint ex",
"lastUpdated": "1970-07-12T16:39:53.992Z",
"verb": "POST",
"routeName": "F",
"_id": "8e9803770d52c0cb2383bc21",
"jst": null,
"migrationVersion": 67114478
},
"automaticChanges": [
"adipisicing",
"commodo"
]
},
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"type": "endpoint",
"enabled": true,
"actionType": "automations",
"actionId": "5cf7b96e3647a6fd9d7abbcf",
"lastExecuted": null,
"createdBy": "velit Duis",
"created": "1954-02-13T05:19:19.28Z",
"lastUpdatedBy": null,
"lastUpdated": "1954-05-02T07:05:44.56Z",
"verb": "POST",
"routeName": "z8roL_cQpP",
"schema": null,
"_id": "4990b640512ef0d8bde1d287",
"jst": null,
"migrationVersion": 34894368
},
"automaticChanges": [
"dolor nostrud"
]
}
]
}
}
}
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"
}
}
}
}
}
}
}
}
}
}
}
]
}