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": "4c4cd4c77928960647d1f52b",
"name": "myCoolDocumentName"
}
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": "fugiat sunt",
"created": "1981-03-14T19:00:21.422Z",
"lastUpdatedBy": null,
"lastUpdated": "2011-08-22T09:19:40.491Z",
"_id": "2826a8b1c0b2c980260d3ebf",
"gbac": {
"write": [
"4907ad3b0c421c4fd8f24c40",
"17cc276eceb54b5b98e4c301",
"c32492244d1006130bc9d229"
],
"read": [
"eba2c3e2a7147533a59ccddb",
"bddbe1fb2ae5aab94affa507"
]
},
"componentId": null,
"componentName": null
},
"metadata": {
"automaticChanges": [
"velit laboris exercitation incididunt",
"cupidatat velit dolore",
"labore magna laboris",
"ut officia Ut"
],
"triggerCloneResults": {
"message": "Lorem",
"data": [
{
"success": true,
"data": {
"name": "sed velit in",
"description": -80759481,
"type": 71280481.75728473,
"enabled": 5089619.0340707,
"actionType": "proident quis",
"actionId": "adipisicing",
"lastExecuted": "nulla minim ea in",
"createdBy": 71155472.07766223,
"created": "eiusmod magna ex esse ad",
"lastUpdatedBy": -28586774,
"lastUpdated": -65214929,
"formData": 45900737.821897954,
"legacyWrapper": "sunt eu dolore exercitation",
"firstRunAt": 57261563,
"nextRunAt": -47123709.60187684,
"processMissedRuns": "anim id",
"locked": false,
"repeatUnit": -37810946,
"repeatFrequency": -27549530,
"repeatInterval": -11682590.214397326,
"_id": "incididunt tempor labore nisi consectetur",
"formId": "proident magna veniam officia aute"
},
"automaticChanges": [
"anim dolore cillum",
"proident"
]
},
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"type": "endpoint",
"enabled": true,
"actionType": "automations",
"actionId": "5da094f5191e29394900801d",
"lastExecuted": null,
"createdBy": null,
"created": "1996-06-11T19:02:27.748Z",
"lastUpdatedBy": "culpa aliquip dolor",
"lastUpdated": "2010-03-04T05:53:54.309Z",
"verb": "POST",
"routeName": "lg",
"schema": null,
"_id": "acb0c18042d058831e7315cc",
"jst": null,
"migrationVersion": -75038044
},
"automaticChanges": [
"enim velit",
"laboris consectetur sint mollit",
"sunt",
"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"
}
}
}
}
}
}
}
}
}
}
}
]
}