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": "3c7cf25146899599bd054291",
"name": "myCoolDocumentName"
}
Return
Details Example Schema
Name
Type
Description
result
object
The result of the clone operation.
Copied to Clipboard
{
"message": "Successfully imported 3 of 4 documents",
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"componentType": "workflows",
"createdBy": "enim nisi sunt",
"created": "1954-04-28T03:18:22.854Z",
"lastUpdatedBy": "officia deserunt Ut incididunt",
"lastUpdated": "1971-11-09T08:08:03.858Z",
"_id": "9b2e6eeec558b101d1c5fc8a",
"gbac": {
"write": [
"65bb3f09d58f0ea105f05f82",
"b46e7e99a17ae16466613bc5",
"49ea112824feca67fe2d5b49",
"1b4e4c77158b69d1c8e3953e",
"fd889b6b133ffbd4badc1490"
],
"read": [
"b6e1e47a3863d90e475d06f3",
"f1e886e356761b275d49a170",
"a12b48bf85c6448f79477397",
"5c09e9a02cd524640a112763"
]
},
"componentId": "1CD7F7C2-9c0c-4AD2-5BDA-D6796Ca2CDAf",
"componentName": "laboris dolore"
},
"metadata": {
"automaticChanges": [
"nulla",
"dolor nisi voluptate aute",
"sint ad minim"
],
"triggerCloneResults": {
"message": "Lorem nulla sunt incididunt pariatur",
"data": [
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"type": "manual",
"enabled": false,
"actionType": "automations",
"actionId": "3b5d0cdfce4dd223ca22c42f",
"lastExecuted": null,
"createdBy": "consectetur sunt officia dolore",
"created": "1998-03-14T02:10:47.324Z",
"lastUpdatedBy": null,
"lastUpdated": "1984-09-26T13:05:51.874Z",
"formData": {
"ip": "1.2.3.4",
"name": "myNewDevice"
},
"_id": "74617ef6284683083a20a31b",
"formId": "8ad4edb5a1ab95306561adab",
"migrationVersion": -29590790,
"formSchemaHash": "veniam voluptate",
"legacyWrapper": true
},
"automaticChanges": [
"id laboris voluptate aliquip",
"aliqua",
"pariatur labore deserunt"
]
},
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"type": "manual",
"enabled": true,
"actionType": "automations",
"actionId": "8f55ffc2dd464f84b0ebc2f7",
"lastExecuted": 23859041,
"createdBy": "reprehenderit",
"created": "1969-09-07T02:11:48.711Z",
"lastUpdatedBy": null,
"lastUpdated": "1958-04-19T07:49:03.916Z",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"_id": "6d47a6235e12ee55fbca824f",
"formId": "f39471c6a9f9d8390a486341",
"migrationVersion": -38432907,
"formSchemaHash": "in fugiat Excepteur Duis incididunt",
"legacyWrapper": false
},
"automaticChanges": [
"aliqua exercitation",
"tempor fugiat culpa",
"nisi Excepteur Duis exercitation esse",
"deserunt"
]
}
]
}
}
}
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"
}
}
}
}
}
}
}
}
}
}
}
]
}