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": "569277df59dbd06bace1b9d9",
"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": "1998-11-21T17:04:02.408Z",
"lastUpdatedBy": null,
"lastUpdated": "1947-07-12T15:42:46.213Z",
"_id": "c0c3120ffd13e1f506aea0fc",
"gbac": {
"write": [
"228b3b49bdbe4d1f7d76f248",
"c07127486e61c4efba2b6e64"
],
"read": [
"16794b267b151214f09c1707",
"70418e08b7ac6c143db24464",
"ec4c16a8c98a60bbda2e7af1",
"8ddd77aee7dfac3e918e9ba0",
"7a099bf09a78e6ccc4989a1a"
]
},
"componentId": "8b95c09787ac3cc92a1876b7",
"componentName": null
},
"metadata": {
"automaticChanges": [
"et voluptate",
"occaecat quis voluptate culpa sunt",
"commodo ex",
"occaecat enim"
],
"triggerCloneResults": {
"message": "id",
"data": [
{
"success": true,
"data": {
"name": 61131988.45984465,
"description": "Ut mollit sint elit nostrud",
"type": "qui Duis in anim consequat",
"enabled": 96818899.90611076,
"actionType": "reprehenderit minim dolor in culpa",
"actionId": -91975336.64068836,
"lastExecuted": -31526540.998195738,
"createdBy": -85348034.08093649,
"created": "ullamco Duis",
"lastUpdatedBy": "in minim nostrud",
"lastUpdated": -41572016,
"formData": 59122386,
"firstRunAt": "cupidatat labore Ut in",
"nextRunAt": 27608150,
"processMissedRuns": 6243046,
"locked": "sint in nostrud minim ex",
"repeatUnit": -3969051,
"repeatFrequency": -83675051.70069537,
"repeatInterval": false,
"_id": 96804534.39649776,
"formId": true
},
"automaticChanges": [
"ipsum dolore",
"laborum quis ut"
]
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"type": "endpoint",
"enabled": false,
"actionType": "automations",
"actionId": "51cba48a0151fc30a02d79d7",
"lastExecuted": null,
"createdBy": "magna ut Duis aliqua aliquip",
"created": "1989-01-04T09:58:29.323Z",
"lastUpdatedBy": null,
"lastUpdated": "1961-01-19T10:06:42.091Z",
"verb": "POST",
"routeName": "CNhgeuMGVHy",
"schema": null,
"_id": "87e0d20d7e4b060e34146015",
"jst": "45be59e3bb892512c4a915dd",
"migrationVersion": 63076945
},
"automaticChanges": [
"elit minim sint consequat"
]
},
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"type": "endpoint",
"enabled": false,
"actionType": "automations",
"actionId": "ada26d9dc5263d6dd209f1dd",
"lastExecuted": 21145304,
"createdBy": null,
"created": "2015-06-24T03:45:05.229Z",
"lastUpdatedBy": "cillum",
"lastUpdated": "1950-07-22T13:52:22.794Z",
"verb": "POST",
"routeName": "Vvi",
"schema": null,
"_id": "557990439a49da4b10e13134",
"jst": null,
"migrationVersion": -17852668
},
"automaticChanges": [
"consequat cillum dolor in"
]
}
]
}
}
}
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"
}
}
}
}
}
}
}
}
}
}
}
]
}