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": "9ff812eaa5da364921b4bb5f",
"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": null,
"createdBy": null,
"created": "2013-12-31T06:05:30.748Z",
"lastUpdatedBy": "in",
"lastUpdated": "1951-04-26T13:56:38.042Z",
"_id": "a9b75264989916778792da72",
"gbac": {
"write": [
"9c3a583b19b6e30c5c791c7d",
"00155b2582352be437b04065",
"4399fb8e1fab1c36e34613c1"
],
"read": [
"1999af207efbfcbf2b015c10",
"54f420db95794bcd74ccc994",
"09532913bce5cee7a2419ecd",
"7930fb85380a25250c989f74"
]
},
"componentId": "",
"componentName": "amet"
},
"metadata": {
"automaticChanges": [
"cupidatat consectetur",
"in"
],
"triggerCloneResults": {
"message": "consequat",
"data": [
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"type": "endpoint",
"enabled": true,
"actionType": "automations",
"actionId": "a913aeb48b3e7cc8bf91c0ab",
"lastExecuted": null,
"createdBy": null,
"created": "1969-08-21T09:31:29.88Z",
"lastUpdatedBy": null,
"lastUpdated": "1989-10-05T07:01:00.295Z",
"verb": "POST",
"routeName": "M_eQKq-5",
"schema": null,
"_id": "76db90a0834b8c1bb9b90cd8",
"jst": "761ce006cca420714b4f635c",
"migrationVersion": 94232832
},
"automaticChanges": [
"labore pariatur dolor elit et",
"veniam",
"laborum",
"pariatur in"
]
},
{
"success": true,
"data": {
"name": 61487764.27323237,
"description": -5004302.712286219,
"type": true,
"enabled": false,
"actionType": "adipisicing eiusmod exercitation",
"actionId": true,
"lastExecuted": -43089898.04589256,
"createdBy": false,
"created": -50125669.09857918,
"lastUpdatedBy": -23510365,
"lastUpdated": 50857648,
"formData": -52098005,
"legacyWrapper": false,
"firstRunAt": -13548635,
"nextRunAt": "magna dolor tempor",
"processMissedRuns": false,
"locked": false,
"repeatUnit": true,
"repeatFrequency": "proident officia tempor",
"repeatInterval": "sunt laboris id aliquip",
"_id": "Lorem eiusmod",
"formId": 81451644.8455993
},
"automaticChanges": [
"ipsum minim"
]
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"type": "endpoint",
"enabled": true,
"actionType": "automations",
"actionId": "ae3aa6d67a7305e6c137411c",
"lastExecuted": 38792229,
"createdBy": "aliqua sunt magna",
"created": "1959-02-18T07:25:03.947Z",
"lastUpdatedBy": null,
"lastUpdated": "2008-06-21T23:24:37.516Z",
"verb": "POST",
"routeName": "h9yNT8hDmu",
"schema": null,
"_id": "b63966e14a4901ffc737a006",
"jst": "915b2ae6240f1cba1095193b",
"migrationVersion": -53392534
},
"automaticChanges": [
"proident irure deserunt fugiat do"
]
}
]
}
}
}
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"
}
}
}
}
}
}
}
}
}
}
}
]
}