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": "af25e72f2085555763e6149c",
"name": null
}
Return
Details Example Schema
Name
Type
Description
result
object
The result of the clone operation.
Copied to Clipboard
{
"message": "Successfully created the requested item",
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"componentType": "workflows",
"createdBy": null,
"created": "2009-02-01T08:21:14.304Z",
"lastUpdatedBy": "ex commodo dolore",
"lastUpdated": "1972-01-22T19:37:23.354Z",
"_id": "42f4a9c8ded4283a193a7388",
"gbac": {
"write": [
"c8b00a336c79d2f1e755db18",
"0a2c8710e456e2e3f4436af7",
"6493fc3a5b3898cb6419a716",
"482b0dce5ceb2a64e1d7031c",
"bcace41c194f08d91b8cdebb"
],
"read": [
"265b85243f925ff40ab4c84f",
"39ef9d7b888e5ab73f155056",
"0cff6c4afa1d2a51dc87c852",
"b56cac774967c0224fdce39c",
"d431a023e2a22d860fe007e3"
]
},
"componentName": "cillum ut mollit"
},
"metadata": {
"automaticChanges": [
"ipsum proident reprehenderit Lorem mollit"
],
"triggerCloneResults": {
"message": "in consequat sit",
"data": [
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"type": "eventSystem",
"enabled": true,
"actionType": "automations",
"actionId": "66b881d4ffd8d83213ea2c8d",
"lastExecuted": null,
"createdBy": "sit ea consequat",
"created": "1968-11-17T06:37:47.249Z",
"lastUpdatedBy": null,
"lastUpdated": "1967-11-18T20:22:09.955Z",
"source": "ut elit",
"topic": "eu",
"legacyWrapper": false,
"_id": "84052e66d1326cb4a286db6f",
"jst": null,
"migrationVersion": -17735690
},
"automaticChanges": [
"ullamco pariatur exercitation sint consectetur"
]
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"type": "manual",
"enabled": true,
"actionType": "automations",
"actionId": "0a99170500a6500a23062735",
"lastExecuted": 76640644,
"createdBy": "cupidatat exercitation adipisicing consectetur ullamco",
"created": "1953-07-07T21:35:23.677Z",
"lastUpdatedBy": null,
"lastUpdated": "2000-03-23T01:11:43.849Z",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"legacyWrapper": false,
"_id": "75f65a6158986fdc559e7a96",
"formId": null,
"migrationVersion": 23760682,
"formSchemaHash": "occaecat"
},
"automaticChanges": [
"non in aliqua",
"occaecat aute in",
"cillum sit",
"ut dolor esse id laboris"
]
},
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"type": "endpoint",
"enabled": true,
"actionType": "automations",
"actionId": "d9ce4f3c238f9fc0387aaa07",
"lastExecuted": null,
"createdBy": null,
"created": "1968-09-18T10:35:47.608Z",
"lastUpdatedBy": null,
"lastUpdated": "2009-04-21T00:16:53.335Z",
"verb": "POST",
"routeName": "iztE_3",
"_id": "f64cc4781f150a2886149921",
"jst": "ebddfd70f0db2c5c0367522b",
"migrationVersion": -23513253
},
"automaticChanges": [
"officia dolor labore",
"in fugiat non occaecat Excepteur",
"eiusmod",
"fugiat sunt"
]
}
]
}
}
}
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"
}
}
}
}
}
}
}
}
}
}
}
]
}