From 2426f3e7b764f4e4bc71a75831eb6ee0f486affa Mon Sep 17 00:00:00 2001 From: Dudi Likvornik Date: Wed, 9 Feb 2022 03:52:03 +0200 Subject: [PATCH] Microsoft.OperationalInsights: Adding table migrate. (#17654) * Microsoft.OperationalInsights: Adding table migrate. * Better description for migrate. --- .../preview/2021-12-01-preview/Tables.json | 57 ++++++++++++++++--- .../examples/TablesMigrate.json | 12 ++++ 2 files changed, 61 insertions(+), 8 deletions(-) create mode 100644 specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2021-12-01-preview/examples/TablesMigrate.json diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2021-12-01-preview/Tables.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2021-12-01-preview/Tables.json index 069b0dc35bb7..e12281957d8f 100644 --- a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2021-12-01-preview/Tables.json +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2021-12-01-preview/Tables.json @@ -291,6 +291,48 @@ "final-state-via": "azure-async-operation" } } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}/migrate": { + "post": { + "tags": [ + "Tables" + ], + "x-ms-examples": { + "TablesGet": { + "$ref": "./examples/TablesMigrate.json" + } + }, + "operationId": "Tables_Migrate", + "description": "Migrate a Log Analytics table from support of the Data Collector API and Custom Fields features to support of Data Collection Rule-based Custom Logs.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/TableNameParameter" + } + ], + "responses": { + "200": { + "description": "OK response definition." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } } }, "definitions": { @@ -532,7 +574,7 @@ }, "description": { "type": "string", - "description": "Search results table's Description." + "description": "Search job Description." }, "limit": { "type": "integer", @@ -552,7 +594,7 @@ "sourceTable": { "readOnly": true, "type": "string", - "description": "The table to search data from." + "description": "The table used in the search job." } }, "description": "Parameters of the search job that initiated this table." @@ -571,7 +613,6 @@ "description": "The timestamp to end the restore by (UTC)." }, "sourceTable": { - "readOnly": true, "type": "string", "description": "The table to restore data from." } @@ -604,14 +645,14 @@ "format": "int32", "minimum": 4, "maximum": 730, - "description": "The data table data retention in days, between 4 and 730. Setting this property to null will default to the workspace retention." + "description": "The table retention in days, between 4 and 730. Setting this property to -1 will default to the workspace retention." }, "totalRetentionInDays": { "type": "integer", "format": "int32", "minimum": 4, "maximum": 2555, - "description": "The table data total retention in days, between 4 and 2555. Setting this property to null will default to table retention." + "description": "The table total retention in days, between 4 and 2555. Setting this property to -1 will default to table retention." }, "archiveRetentionInDays": { "readOnly": true, @@ -633,7 +674,7 @@ }, "plan": { "type": "string", - "description": "The table plan.", + "description": "Instruct the system how to handle and charge the logs ingested to this table.", "enum": [ "Basic", "Analytics" @@ -644,11 +685,11 @@ "values": [ { "value": "Basic", - "description": "Basic - logs that are adjusted to support high volume / low value verbose logs." + "description": "Logs that are adjusted to support high volume low value verbose logs." }, { "value": "Analytics", - "description": "Analytics - logs that allow monitoring and analytics." + "description": "Logs that allow monitoring and analytics." } ] } diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2021-12-01-preview/examples/TablesMigrate.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2021-12-01-preview/examples/TablesMigrate.json new file mode 100644 index 000000000000..2424fb1b96ae --- /dev/null +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2021-12-01-preview/examples/TablesMigrate.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "resourceGroupName": "oiautorest6685", + "workspaceName": "oiautorest6685", + "api-version": "2021-12-01-preview", + "subscriptionId": "00000000-0000-0000-0000-00000000000", + "tableName": "table1_CL" + }, + "responses": { + "200": {} + } +}