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": "9fd0d5e5eb29eff72473947e",
"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": null,
"createdBy": "adipisicing aliquip in quis",
"created": "1945-07-16T02:14:41.385Z",
"lastUpdatedBy": null,
"lastUpdated": "1995-05-30T19:04:55.144Z",
"_id": "219009b35eb75e65e4a07836",
"gbac": {
"write": [
"0656408b4efd9adc650ea04a",
"ef6491d460befe1e01ad4dce",
"f19a516255dfde5be611d660",
"6edf742af102afcbe961e4ef",
"ff00e37c7cdf9ef4f868809c"
],
"read": [
"5481677aed5fa517c23fc124",
"e5a6b12128fd117171e24cb2",
"0271200c0a9ca952be422aba"
]
},
"componentId": ""
},
"metadata": {
"automaticChanges": [
"id nulla non",
"ea ullamco nostrud culpa deserunt",
"enim Duis in aliquip anim",
"labore sint elit pariatur aliqua"
],
"triggerCloneResults": {
"message": "culpa incididunt",
"data": [
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"type": "manual",
"enabled": false,
"actionType": "automations",
"actionId": "4bef852f30d03fa38c7fa38e",
"lastExecuted": null,
"createdBy": null,
"created": "1965-12-06T18:43:44.134Z",
"lastUpdatedBy": "velit",
"lastUpdated": "1994-12-21T13:02:06.459Z",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"_id": "adc74fbac452a3fef6b7f910",
"formId": "5e96943e61d51d52f24b777b",
"migrationVersion": -32974721,
"formSchemaHash": null
},
"automaticChanges": [
"Ut",
"labore aute cupidatat",
"fugiat nulla aute elit",
"magna"
]
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"type": "endpoint",
"enabled": false,
"actionType": "automations",
"actionId": "f1f42674d2760b95fa5c139a",
"lastExecuted": 47655262,
"createdBy": null,
"created": "2006-03-25T08:00:47.296Z",
"lastUpdatedBy": "et",
"lastUpdated": "1963-08-08T11:05:44.441Z",
"verb": "POST",
"routeName": "KH",
"_id": "3a803ac7fabd55b5be6eeba9",
"jst": "1318d4d129632c034519bbd6",
"migrationVersion": 30911329
},
"automaticChanges": [
"tempor",
"culpa labore dolor irure",
"in sint consequat",
"dolore",
"aliquip Lorem"
]
}
]
}
}
}
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"
}
}
}
}
}
}
}
}
}
}
}
]
}