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": "06fd57abd7746413aae48245",
"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": null,
"createdBy": null,
"created": "1977-07-27T23:38:16.083Z",
"lastUpdatedBy": null,
"lastUpdated": "2004-08-15T18:31:16.073Z",
"_id": "f765c909ba98f1df89b215c9",
"gbac": {
"write": [
"01ef8240068e1c1962dc0335",
"616d7bcb97fd0f109870de8f"
],
"read": [
"a9be529a6f536397eff86842",
"1a14d53f4f6787ec49cd920a",
"101bdbb548baf5ee8812d2b3"
]
},
"componentName": null
},
"metadata": {
"automaticChanges": [
"id veniam",
"ut",
"labore",
"pariatur laboris"
],
"triggerCloneResults": {
"message": "esse magna deserunt anim elit",
"data": [
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"type": "eventSystem",
"enabled": false,
"actionType": "automations",
"actionId": "2a68e61ec865aedf52725566",
"lastExecuted": null,
"createdBy": "tempor",
"created": "2016-07-24T11:28:33.793Z",
"lastUpdatedBy": null,
"lastUpdated": "2000-06-16T14:13:54.735Z",
"source": "tempor amet Ut esse",
"topic": "enim",
"_id": "50c576126bbae6599135dc1f",
"jst": "86c408bcd2f897aa92c8f169",
"migrationVersion": -64771890,
"legacyWrapper": true
},
"automaticChanges": [
"do consequat ex",
"adipisicing Ut eiusmod elit Lorem"
]
},
{
"success": false,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"type": "endpoint",
"enabled": false,
"actionType": "automations",
"actionId": "96b124e7cfbb5bfbb51f08b3",
"lastExecuted": 6550617,
"createdBy": "mollit non",
"created": "2009-02-27T09:31:14.251Z",
"lastUpdatedBy": null,
"lastUpdated": "1990-04-21T06:23:18.169Z",
"verb": "POST",
"routeName": "w7eqX7xt",
"schema": null,
"_id": "8520710a6e3b2bc918f0c641",
"jst": null,
"migrationVersion": -45890990
},
"automaticChanges": [
"ut"
]
},
{
"success": true,
"data": {
"name": "myCoolDocumentName",
"description": "Some helpful information about the document",
"type": "manual",
"enabled": false,
"actionType": "automations",
"actionId": "b7894bc2a987efb3a197a79c",
"lastExecuted": 24670153,
"createdBy": "anim tempor et laborum",
"created": "1992-01-26T17:13:51.482Z",
"lastUpdatedBy": null,
"lastUpdated": "2001-11-07T22:32:10.659Z",
"formData": {
"deviceName": "ATL-123",
"action": "SYNC"
},
"_id": "b9dd7cdd7f7706eeb04e9460",
"formId": "066740da11ced6144d6d6fc7",
"migrationVersion": -5198817,
"formSchemaHash": null,
"legacyWrapper": false
},
"automaticChanges": [
"nostrud",
"eiusmod deserunt nulla sed fugiat"
]
}
]
}
}
}
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"
}
}
}
}
}
}
}
}
}
}
}
]
}