Skip to content

Commit 2426f3e

Browse files
authored
Microsoft.OperationalInsights: Adding table migrate. (#17654)
* Microsoft.OperationalInsights: Adding table migrate. * Better description for migrate.
1 parent 8335971 commit 2426f3e

File tree

2 files changed

+61
-8
lines changed

2 files changed

+61
-8
lines changed

specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/preview/2021-12-01-preview/Tables.json

Lines changed: 49 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,48 @@
291291
"final-state-via": "azure-async-operation"
292292
}
293293
}
294+
},
295+
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}/migrate": {
296+
"post": {
297+
"tags": [
298+
"Tables"
299+
],
300+
"x-ms-examples": {
301+
"TablesGet": {
302+
"$ref": "./examples/TablesMigrate.json"
303+
}
304+
},
305+
"operationId": "Tables_Migrate",
306+
"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.",
307+
"parameters": [
308+
{
309+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
310+
},
311+
{
312+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter"
313+
},
314+
{
315+
"$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter"
316+
},
317+
{
318+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
319+
},
320+
{
321+
"$ref": "#/parameters/TableNameParameter"
322+
}
323+
],
324+
"responses": {
325+
"200": {
326+
"description": "OK response definition."
327+
},
328+
"default": {
329+
"description": "Error response describing why the operation failed.",
330+
"schema": {
331+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
332+
}
333+
}
334+
}
335+
}
294336
}
295337
},
296338
"definitions": {
@@ -532,7 +574,7 @@
532574
},
533575
"description": {
534576
"type": "string",
535-
"description": "Search results table's Description."
577+
"description": "Search job Description."
536578
},
537579
"limit": {
538580
"type": "integer",
@@ -552,7 +594,7 @@
552594
"sourceTable": {
553595
"readOnly": true,
554596
"type": "string",
555-
"description": "The table to search data from."
597+
"description": "The table used in the search job."
556598
}
557599
},
558600
"description": "Parameters of the search job that initiated this table."
@@ -571,7 +613,6 @@
571613
"description": "The timestamp to end the restore by (UTC)."
572614
},
573615
"sourceTable": {
574-
"readOnly": true,
575616
"type": "string",
576617
"description": "The table to restore data from."
577618
}
@@ -604,14 +645,14 @@
604645
"format": "int32",
605646
"minimum": 4,
606647
"maximum": 730,
607-
"description": "The data table data retention in days, between 4 and 730. Setting this property to null will default to the workspace retention."
648+
"description": "The table retention in days, between 4 and 730. Setting this property to -1 will default to the workspace retention."
608649
},
609650
"totalRetentionInDays": {
610651
"type": "integer",
611652
"format": "int32",
612653
"minimum": 4,
613654
"maximum": 2555,
614-
"description": "The table data total retention in days, between 4 and 2555. Setting this property to null will default to table retention."
655+
"description": "The table total retention in days, between 4 and 2555. Setting this property to -1 will default to table retention."
615656
},
616657
"archiveRetentionInDays": {
617658
"readOnly": true,
@@ -633,7 +674,7 @@
633674
},
634675
"plan": {
635676
"type": "string",
636-
"description": "The table plan.",
677+
"description": "Instruct the system how to handle and charge the logs ingested to this table.",
637678
"enum": [
638679
"Basic",
639680
"Analytics"
@@ -644,11 +685,11 @@
644685
"values": [
645686
{
646687
"value": "Basic",
647-
"description": "Basic - logs that are adjusted to support high volume / low value verbose logs."
688+
"description": "Logs that are adjusted to support high volume low value verbose logs."
648689
},
649690
{
650691
"value": "Analytics",
651-
"description": "Analytics - logs that allow monitoring and analytics."
692+
"description": "Logs that allow monitoring and analytics."
652693
}
653694
]
654695
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"parameters": {
3+
"resourceGroupName": "oiautorest6685",
4+
"workspaceName": "oiautorest6685",
5+
"api-version": "2021-12-01-preview",
6+
"subscriptionId": "00000000-0000-0000-0000-00000000000",
7+
"tableName": "table1_CL"
8+
},
9+
"responses": {
10+
"200": {}
11+
}
12+
}

0 commit comments

Comments
 (0)