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": "a79e4d6beb9778bb862a7d5f",
"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": "amet dolor deserunt consequat",
"created": "1984-08-01T23:10:58.456Z",
"lastUpdatedBy": null,
"lastUpdated": "1952-09-02T12:58:32.419Z",
"_id": "9ac1906b9db9ef3e26868561",
"gbac": {
"write": [
"b7ce668fb5c43f7597874a27",
"f8deb3c7330fa571dfbddb0f",
"f42efd79800016bef358ec2f",
"00ea668ce935ea7bb8468476",
"25d3fd911e72d24d7078adcb"
],
"read": [
"0e5067b0e62f09ebd9ad4de2",
"808ba6c5d58e95fa83affea5",
"2d32cda590526aff3b74302d",
"d2892a29e92684e7bccdfabf",
"cc67182337489e746c2f0699"
]
},
"componentId": "76c098bf945f823b6affa25e"
},
"metadata": {
"automaticChanges": [
"in Excepteur"
],
"triggerCloneResults": {
"message": "laborum eu consequat",
"data": [
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"type": "eventSystem",
"enabled": false,
"actionType": "automations",
"actionId": "829b7405d6caf81f8e546879",
"lastExecuted": 6324534,
"createdBy": null,
"created": "2010-06-12T13:38:26.81Z",
"lastUpdatedBy": "elit ipsum anim occaecat",
"lastUpdated": "1959-09-12T18:43:02.204Z",
"source": "mollit ut labore",
"topic": "Duis",
"schema": null,
"legacyWrapper": true,
"_id": "55a6da212200a163006e4934",
"jst": "e34a44ab4de726ad1588a4b8",
"migrationVersion": -75839646
},
"automaticChanges": [
"labore sint"
]
}
]
}
}
}
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"
}
}
}
}
}
}
}
}
}
}
}
]
}