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": "2bd6aa4169e4267756322c59",
"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": "in ex",
"created": "2008-09-29T00:20:15.871Z",
"lastUpdatedBy": "ut",
"lastUpdated": "2005-06-26T16:10:04.176Z",
"_id": "bc833118e4e8fe2eec4aa453",
"gbac": {
"write": [
"39920074ddaed3a6fce38abc"
],
"read": [
"abc19084876329d807cdb3a4",
"c4f18a6254df13d13a15dca3",
"41f5a27ac70d2829f6b6a7b7",
"c099cc6cc08c08389d943f3b",
"99be961116698249ae9f603a"
]
},
"componentId": null,
"componentName": null
},
"metadata": {
"automaticChanges": [
"irure",
"ex consectetur dolore",
"ut ad Ut dolore",
"irure in Excepteur nulla"
],
"triggerCloneResults": {
"message": "et occaecat",
"data": [
{
"success": false,
"data": {
"name": 97824997,
"description": "ut nostrud in",
"type": true,
"enabled": -78163905.08966061,
"actionType": "officia minim eu ipsum ut",
"actionId": -25351211,
"lastExecuted": true,
"createdBy": 83475528,
"created": "dolor voluptate nulla et anim",
"lastUpdatedBy": "tempor labore veniam",
"lastUpdated": true,
"formData": 66724950.15364942,
"firstRunAt": "irure aliqua tempor",
"nextRunAt": 70910840,
"processMissedRuns": -84955385.2269925,
"locked": -65788285.91330738,
"repeatUnit": 62909502.9452925,
"repeatFrequency": -41747043,
"repeatInterval": 49870096,
"_id": 30363560.22459148,
"formId": -87877392.15054229
},
"automaticChanges": [
"anim ut minim est ullamco",
"commodo incididunt ullamco",
"sed"
]
},
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"type": "eventSystem",
"enabled": true,
"actionType": "automations",
"actionId": "1af3ef2341524166e1cb6fc3",
"lastExecuted": null,
"createdBy": null,
"created": "1970-09-08T05:13:58.607Z",
"lastUpdatedBy": null,
"lastUpdated": "1969-04-17T04:11:41.673Z",
"source": "sit",
"topic": "eiusmod dolor aliquip proident",
"_id": "c052ccdfb42e2af675a0a6a4",
"jst": null,
"migrationVersion": -97814337
},
"automaticChanges": [
"culpa nostrud laboris"
]
}
]
}
}
}
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"
}
}
}
}
}
}
}
}
}
}
}
]
}