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": "b465ecb1540929edae040c53",
"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": "ucm_compliance_plans",
"createdBy": null,
"created": "2007-06-02T16:02:30.297Z",
"lastUpdatedBy": "reprehenderit eiusmod quis ex",
"lastUpdated": "2008-05-21T05:47:02.358Z",
"_id": "71c79e2e9809a1df55fc2865",
"gbac": {
"write": [
"c3f2872d3a810f4f48dc5969",
"6e3311cb3afe609eaf117962",
"bc0007e796b1a5b0f7849fc2"
],
"read": [
"ba8c3c76aba66a6b0e15a29d",
"7b59c74549cc827b88519deb"
]
},
"componentId": "498270514c9fa1cd5f2e07af"
},
"metadata": {
"automaticChanges": [
"in eu pariatur",
"ut deserunt pariatur",
"anim tempor Lorem",
"id",
"labore do in"
],
"triggerCloneResults": {
"message": "incididunt officia minim ut",
"data": [
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"type": "endpoint",
"enabled": true,
"actionType": "automations",
"actionId": "43b630f31dfbe966ba406745",
"lastExecuted": null,
"createdBy": "nostrud",
"created": "2010-09-30T00:42:29.035Z",
"lastUpdatedBy": null,
"lastUpdated": "1956-10-24T10:44:20.792Z",
"verb": "POST",
"routeName": "is_IdS1E",
"_id": "747b5501590d6a0edf4a985c",
"jst": null,
"migrationVersion": 26312926
},
"automaticChanges": [
"consectetur aliquip dolor laborum tempor",
"amet sed ex eiusmod ut",
"magna aliquip consectetur velit"
]
},
{
"success": true,
"data": {
"name": "commodo esse",
"description": -73593562.84623754,
"type": "non est",
"enabled": 15805209.33902058,
"actionType": true,
"actionId": 47560218,
"lastExecuted": 36772773,
"createdBy": -84875784.58192578,
"created": true,
"lastUpdatedBy": -75173914.5525645,
"lastUpdated": -5495124,
"formData": -54812065.76341333,
"legacyWrapper": true,
"firstRunAt": 15800246.214717269,
"nextRunAt": -5673070,
"processMissedRuns": false,
"locked": "dolor",
"repeatUnit": 70786421,
"repeatFrequency": 99956643.24911991,
"repeatInterval": 4300289.460232288,
"_id": true,
"formId": -11194677
},
"automaticChanges": [
"culpa do ea",
"qui non quis consequat",
"qui nulla nisi"
]
}
]
}
}
}
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"
}
}
}
}
}
}
}
}
}
}
}
]
}