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": "c01ff83a6aff142d7eb30c82",
"name": "myCoolDocumentName"
}
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": "ucm_compliance_plans",
"createdBy": "consequat",
"created": "1952-01-30T03:34:07.468Z",
"lastUpdatedBy": "ea ad Excepteur laboris",
"lastUpdated": "2005-12-23T12:47:40.18Z",
"_id": "83372c703ab6fe19a312c737",
"gbac": {
"write": [
"c4fe8e695ae388f79d2f3d35",
"418ce0359ff00babf9906efb",
"320dc338fc87cf6b220d8191",
"4407d18f7cdf75fe67af8c5a",
"89645ae35ed5df0fe94425d1"
],
"read": [
"59a50e5b70e4acf63ae1eecd",
"42ca685073551c2b2194b9af"
]
},
"componentId": "DA14EfE6-4cCb-7Eff-fEED-C00aaC19a87a",
"componentName": "dolore culpa laboris"
},
"metadata": {
"automaticChanges": [
"amet aliqua et dolor laborum"
],
"triggerCloneResults": {
"message": "esse sunt eiusmod",
"data": [
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"type": "endpoint",
"enabled": true,
"actionType": "automations",
"actionId": "966b37c3d5843c5552f13c8a",
"lastExecuted": null,
"createdBy": "aliqua fugiat consequat",
"created": "2017-11-14T13:22:41.826Z",
"lastUpdatedBy": "sed dolore mollit pariatur",
"lastUpdated": "1968-04-10T08:17:41.067Z",
"verb": "POST",
"routeName": "YDw",
"schema": null,
"_id": "f5a019084d9e7fa36526f991",
"jst": null,
"migrationVersion": -42016902
},
"automaticChanges": [
"veniam"
]
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"type": "manual",
"enabled": false,
"actionType": "automations",
"actionId": "ae76af390cd8972180b98166",
"lastExecuted": null,
"createdBy": "occaecat non",
"created": "2020-05-16T10:30:54.994Z",
"lastUpdatedBy": null,
"lastUpdated": "2004-09-14T04:25:47.395Z",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"legacyWrapper": false,
"_id": "eef633b01f9c4ff805dd2441",
"formId": "ff087facea7b43bd06e6d069",
"migrationVersion": -79751854,
"formSchemaHash": "irure"
},
"automaticChanges": [
"et",
"esse anim et aute sint",
"aliquip Duis reprehenderit",
"occaecat quis velit"
]
},
{
"success": false,
"data": {
"name": "veniam adipisicing",
"description": "in cupidatat anim",
"type": 9123810.47246024,
"enabled": "velit ipsum",
"actionType": false,
"actionId": "cillum dolor",
"lastExecuted": -52891480.329226725,
"createdBy": true,
"created": -54291770,
"lastUpdatedBy": "id",
"lastUpdated": 5542138,
"formData": 34962354,
"legacyWrapper": 90448496,
"firstRunAt": "commodo",
"nextRunAt": false,
"processMissedRuns": 47444516.65462658,
"locked": 40032770,
"repeatUnit": "laborum consequat eu",
"repeatFrequency": 55983949.45401299,
"repeatInterval": 75618077,
"_id": "laborum irure Excepteur ut",
"formId": 41495965
},
"automaticChanges": [
"aliquip ullamco anim sit",
"aute sint velit voluptate ad"
]
}
]
}
}
}
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"
}
}
}
}
}
}
}
}
}
}
}
]
}