Summary
Clone Automation
Description
Clone an Automation.
Route
POST /operations-manager/automations/clone
Roles
Parameters
Name | Type | Required | Description |
---|---|---|---|
automation | object | yes | The id of the Automation to be cloned and, optionally, a name to assign to the clone. |
{ "id": "b2a34c1859e28f2874e85609", "name": "myCoolDocumentName" }
{ "title": "automation", "properties": { "id": { "description": "The id of the Automation to be cloned.", "$ref": "common#/definitions/ObjectIdLikeString" }, "name": { "description": "An optional name to use for the clone.", "oneOf": [ { "type": "null" }, { "$ref": "common#/definitions/name" } ] } } }
Return
Name | Type | Description |
---|---|---|
result | object | The result of the clone operation. |
{ "message": "Successfully imported 3 of 4 documents", "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "componentType": null, "createdBy": null, "created": "1997-06-09T00:53:01.993Z", "lastUpdatedBy": null, "lastUpdated": "2023-08-17T21:53:39.61Z", "_id": "90d4469a4119dae1f6d8c2f5", "gbac": { "write": [ "18672093b21f856058f56d3f", "177b6f970ec2f01475cc014b" ], "read": [ "b1808e0f395dc6f5badabf10", "0f434e96d66fa5c0b45e7650", "19643fdc0584bb728ac4e4cf", "fe7c0863b3ffd55a11e98ed0" ] }, "componentId": "C327cba7-f590-B1Ec-22bD-4D645dcF9420" }, "metadata": { "automaticChanges": [ "aute ea dolore sint in", "Lorem Ut reprehenderit", "est nulla ex Duis officia", "magna eu aute commodo", "minim consequat nostrud" ], "triggerCloneResults": { "message": "elit id adipisicing", "data": [ { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "endpoint", "enabled": true, "actionType": "automations", "actionId": "68794186f020ecf09e0f591f", "lastExecuted": null, "createdBy": "Ut veniam aliquip", "created": "1971-07-20T16:30:35.299Z", "lastUpdatedBy": "incididunt ipsum qui", "lastUpdated": "1969-05-29T14:13:40.058Z", "verb": "POST", "routeName": "1M", "_id": "d77e1813232f4d48957763db", "jst": "0c9c8bc91b9c7d638ffeaa66", "migrationVersion": -12434468 }, "automaticChanges": [ "fugiat", "sed eu" ] }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "36e0d55a052e66e4164c6183", "lastExecuted": null, "createdBy": null, "created": "1981-05-29T05:11:21.34Z", "lastUpdatedBy": "non deserunt", "lastUpdated": "1957-12-07T05:42:41.116Z", "source": "magna culpa", "topic": "non cillum id incididunt", "schema": null, "_id": "b7db73ae3d5ff4c482895d04", "jst": null, "migrationVersion": -82237732 }, "automaticChanges": [ "eiusmod ea est reprehenderit consequat", "dolore proident minim eiusmod irure" ] }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "manual", "enabled": true, "actionType": "automations", "actionId": "c06906e89b03f5b191c95bb5", "lastExecuted": 34001180, "createdBy": "dolore", "created": "1984-12-19T05:02:24.535Z", "lastUpdatedBy": "sed cupidatat in quis id", "lastUpdated": "1979-07-09T13:57:46.023Z", "formData": { "deviceName": "ATL-123", "action": "SYNC" }, "_id": "2915abb61d40b470d69d2236", "formId": "c1f387f7328af3cc57f5ab04", "migrationVersion": -11585744, "formSchemaHash": "proident" }, "automaticChanges": [ "ullamco fugiat", "aliqua laborum", "eu" ] }, { "success": false, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "eventSystem", "enabled": true, "actionType": "automations", "actionId": "c36a95a461b32e70d4839b6e", "lastExecuted": null, "createdBy": "quis ad", "created": "2008-08-06T19:14:08.089Z", "lastUpdatedBy": "Ut voluptate sint Duis eiusmod", "lastUpdated": "1986-02-10T21:30:13.314Z", "source": "pariatur", "topic": "esse quis est", "schema": null, "_id": "06889b65f402abc8824059db", "jst": "878448a53671de78e17d806e", "migrationVersion": -37453416 }, "automaticChanges": [ "ad dolore ipsum", "consectetur", "ut amet", "ad", "dolor in amet" ] }, { "success": true, "data": { "name": "myCoolDocumentName", "description": "Some helpful information about the document", "type": "endpoint", "enabled": false, "actionType": "automations", "actionId": "0c92606c9b9003187305703f", "lastExecuted": 29606733, "createdBy": "aliquip laboris", "created": "1968-08-20T13:47:39.645Z", "lastUpdatedBy": "enim dolor amet", "lastUpdated": "1983-01-12T07:59:39.788Z", "verb": "POST", "routeName": "8tpq", "_id": "ad007fe5576e55fb47ccab6a", "jst": null, "migrationVersion": -16359475 }, "automaticChanges": [ "Duis adipisicing est", "mollit ex officia exercitation ut", "labore incididunt exercitation proident", "nostrud deserunt adipisicing consectetur Ut", "aliqua" ] } ] } } }
{ "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" } } } } } } } } } } } ] }