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": "5bc773e6cacf64f61b832791",
"name": null
}
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": "nostrud cillum dolore ipsum",
"created": "2014-07-17T23:52:50.102Z",
"lastUpdatedBy": null,
"lastUpdated": "2012-12-03T22:48:45.854Z",
"_id": "e354b48e9c4383ec3c84bcc5",
"gbac": {
"write": [
"5d8ef80501fa36bcf4c3bf06",
"53fb4cfcbc3cdace0c60de0a",
"9b953e5adfd44a6a2069b80a"
],
"read": [
"65ee1da444edd536630a3369"
]
},
"componentId": null,
"componentName": "dolor officia Duis dolore"
},
"metadata": {
"automaticChanges": [
"pariatur culpa",
"sit dolore aliqua anim",
"incididunt"
],
"triggerCloneResults": {
"message": "ullamco tempor",
"data": [
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"type": "eventSystem",
"enabled": true,
"actionType": "automations",
"actionId": "9b701407b6c657c39a7b79ea",
"lastExecuted": null,
"createdBy": "pariatur in nisi sint",
"created": "2016-05-17T02:32:54.732Z",
"lastUpdatedBy": null,
"lastUpdated": "2011-03-08T10:44:41.715Z",
"source": "culpa",
"topic": "sit ad ullamco ut Duis",
"schema": null,
"legacyWrapper": true,
"_id": "1e4c2c1a781dd9692fb947b3",
"jst": null,
"migrationVersion": -34201271
},
"automaticChanges": [
"ad ullamco Lorem labore",
"est ut Excepteur"
]
}
]
}
}
}
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"
}
}
}
}
}
}
}
}
}
}
}
]
}