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": "9f3182f255203d61bb842e50",
"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": "et",
"created": "2001-08-20T07:51:08.4Z",
"lastUpdatedBy": "amet cupidatat fugiat laborum ad",
"lastUpdated": "1975-11-17T01:20:41.411Z",
"_id": "dd3d41fdcc0a63ad5d8a4726",
"gbac": {
"write": [
"99dc70fa7f76f9ee54595842",
"2114817b60681f809d7aca63",
"0243528cce006aec9f464f9a",
"56f7b08a3fbbce9f3bb62d1f"
],
"read": [
"5e549376e4fe50ee41840e41"
]
},
"componentId": "",
"componentName": null
},
"metadata": {
"automaticChanges": [
"velit",
"eu",
"sed cupidatat ex qui"
],
"triggerCloneResults": {
"message": "nisi in",
"data": [
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"type": "endpoint",
"enabled": true,
"actionType": "automations",
"actionId": "2ad77c16d02744dd1856f9e5",
"lastExecuted": null,
"createdBy": null,
"created": "2019-07-27T11:52:17.821Z",
"lastUpdatedBy": "in esse",
"lastUpdated": "1947-04-25T19:48:38.446Z",
"verb": "POST",
"routeName": "o9h",
"schema": null,
"_id": "90b22e3b6bd6cff7847e899c",
"jst": "03f2b708ee3f49bc48b43d85",
"migrationVersion": 82842690
},
"automaticChanges": [
"magna nisi dolor",
"quis dolore velit pariatur dolore",
"Excepteur non mollit officia",
"do veniam velit id",
"in est tempor proident"
]
}
]
}
}
}
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"
}
}
}
}
}
}
}
}
}
}
}
]
}