From 4d02a343fe6b3674092be603220e0fc53f959f83 Mon Sep 17 00:00:00 2001 From: kai ru <69238381+kairu-ms@users.noreply.github.com> Date: Tue, 27 Sep 2022 14:27:50 +0800 Subject: [PATCH] support operation insights 2022-10-01 --- .../log-analytics/workspace/_create.md | 11 + .../log-analytics/workspace/_delete.md | 16 + .../workspace/_list-deleted-workspaces.md | 12 + .../monitor/log-analytics/workspace/_list.md | 5 + .../monitor/log-analytics/workspace/_show.md | 11 + .../log-analytics/workspace/_update.md | 16 + .../log-analytics/workspace/table/_create.md | 4 + .../log-analytics/workspace/table/_delete.md | 4 + .../log-analytics/workspace/table/_list.md | 11 + .../log-analytics/workspace/table/_migrate.md | 11 + .../log-analytics/workspace/table/_show.md | 4 + .../log-analytics/workspace/table/_update.md | 4 + .../log-analytics/workspace/table/readme.md | 5 + .../workspace/table/search-job/_cancel.md | 9 + .../workspace/table/search-job/readme.md | 8 + Commands/tree.json | 239 ++ .../2022-10-01.json | 1131 ++++++ .../2022-10-01.xml | 385 ++ .../2022-10-01.json | 1131 ++++++ .../2022-10-01.xml | 385 ++ .../2022-10-01.md | 1 + .../2022-10-01.md | 1 + .../2022-10-01.json | 3270 +++++++++++++++++ .../2022-10-01.xml | 1047 ++++++ .../2022-10-01.json | 614 ++++ .../2022-10-01.xml | 203 + .../2022-10-01.json | 3103 ++++++++++++++++ .../2022-10-01.xml | 968 +++++ .../2022-10-01.json | 164 + .../2022-10-01.xml | 52 + .../2022-10-01.json | 166 + .../2022-10-01.xml | 52 + 32 files changed, 13043 insertions(+) create mode 100644 Commands/monitor/log-analytics/workspace/table/search-job/_cancel.md create mode 100644 Commands/monitor/log-analytics/workspace/table/search-job/readme.md create mode 100644 Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL2RlbGV0ZWR3b3Jrc3BhY2Vz/2022-10-01.json create mode 100644 Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL2RlbGV0ZWR3b3Jrc3BhY2Vz/2022-10-01.xml create mode 100644 Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXM=/2022-10-01.json create mode 100644 Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXM=/2022-10-01.xml create mode 100644 Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL2RlbGV0ZWR3b3Jrc3BhY2Vz/2022-10-01.md create mode 100644 Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXM=/2022-10-01.md create mode 100644 Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30=/2022-10-01.json create mode 100644 Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30=/2022-10-01.xml create mode 100644 Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vdGFibGVz/2022-10-01.json create mode 100644 Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vdGFibGVz/2022-10-01.xml create mode 100644 Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vdGFibGVzL3t9/2022-10-01.json create mode 100644 Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vdGFibGVzL3t9/2022-10-01.xml create mode 100644 Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vdGFibGVzL3t9L21pZ3JhdGU=/2022-10-01.json create mode 100644 Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vdGFibGVzL3t9L21pZ3JhdGU=/2022-10-01.xml create mode 100644 Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vdGFibGVzL3t9L2NhbmNlbHNlYXJjaA==/2022-10-01.json create mode 100644 Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vdGFibGVzL3t9L2NhbmNlbHNlYXJjaA==/2022-10-01.xml diff --git a/Commands/monitor/log-analytics/workspace/_create.md b/Commands/monitor/log-analytics/workspace/_create.md index ec9f2244bd6..4d1b132c015 100644 --- a/Commands/monitor/log-analytics/workspace/_create.md +++ b/Commands/monitor/log-analytics/workspace/_create.md @@ -14,3 +14,14 @@ Create a workspace instance ```bash monitor log-analytics workspace create -g MyResourceGroup -n MyWorkspace ``` + +### [2022-10-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30=/2022-10-01.xml) **Stable** + + + +#### examples + +- Create a workspace instance + ```bash + monitor log-analytics workspace create -g MyResourceGroup -n MyWorkspace + ``` diff --git a/Commands/monitor/log-analytics/workspace/_delete.md b/Commands/monitor/log-analytics/workspace/_delete.md index 52e388e6ea1..926252e96d9 100644 --- a/Commands/monitor/log-analytics/workspace/_delete.md +++ b/Commands/monitor/log-analytics/workspace/_delete.md @@ -21,3 +21,19 @@ The name is kept for 14 days and cannot be used for another workspace. To remove ```bash monitor log-analytics workspace delete --force --resource-group MyResourceGroup --workspace-name MyWorkspace ``` + +### [2022-10-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30=/2022-10-01.xml) **Stable** + + + +#### examples + +- Soft delete a workspace instance. + ```bash + monitor log-analytics workspace delete --resource-group MyResourceGroup --workspace-name MyWorkspace + ``` + +- Completely delete a workspace instance. + ```bash + monitor log-analytics workspace delete --force --resource-group MyResourceGroup --workspace-name MyWorkspace + ``` diff --git a/Commands/monitor/log-analytics/workspace/_list-deleted-workspaces.md b/Commands/monitor/log-analytics/workspace/_list-deleted-workspaces.md index 8c7b0cfe012..df088c4bff3 100644 --- a/Commands/monitor/log-analytics/workspace/_list-deleted-workspaces.md +++ b/Commands/monitor/log-analytics/workspace/_list-deleted-workspaces.md @@ -15,3 +15,15 @@ Get a list of deleted workspaces that can be recovered in a subscription or a re ```bash monitor log-analytics workspace list-deleted-workspaces --resource-group MyResourceGroup ``` + +### [2022-10-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL2RlbGV0ZWR3b3Jrc3BhY2Vz/2022-10-01.xml) **Stable** + + + + +#### examples + +- Get a list of deleted workspaces that can be recovered in a resource group + ```bash + monitor log-analytics workspace list-deleted-workspaces --resource-group MyResourceGroup + ``` diff --git a/Commands/monitor/log-analytics/workspace/_list.md b/Commands/monitor/log-analytics/workspace/_list.md index c78994f2f72..d68609b6021 100644 --- a/Commands/monitor/log-analytics/workspace/_list.md +++ b/Commands/monitor/log-analytics/workspace/_list.md @@ -8,3 +8,8 @@ Get a list of workspaces under a resource group or a subscription. + +### [2022-10-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXM=/2022-10-01.xml) **Stable** + + + diff --git a/Commands/monitor/log-analytics/workspace/_show.md b/Commands/monitor/log-analytics/workspace/_show.md index 4c6cdab0a65..54a3c19a654 100644 --- a/Commands/monitor/log-analytics/workspace/_show.md +++ b/Commands/monitor/log-analytics/workspace/_show.md @@ -14,3 +14,14 @@ Show a workspace instance. ```bash monitor log-analytics workspace show --resource-group MyResourceGroup --workspace-name MyWorkspace ``` + +### [2022-10-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30=/2022-10-01.xml) **Stable** + + + +#### examples + +- Show a workspace instance. + ```bash + monitor log-analytics workspace show --resource-group MyResourceGroup --workspace-name MyWorkspace + ``` diff --git a/Commands/monitor/log-analytics/workspace/_update.md b/Commands/monitor/log-analytics/workspace/_update.md index 5240ada05fe..9ad18c5a0d6 100644 --- a/Commands/monitor/log-analytics/workspace/_update.md +++ b/Commands/monitor/log-analytics/workspace/_update.md @@ -19,3 +19,19 @@ Update a workspace instance. ```bash monitor log-analytics workspace update --resource-group myresourcegroup --workspace-name myworkspace --data-collection-rule "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dcrName}". ``` + +### [2022-10-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30=/2022-10-01.xml) **Stable** + + + +#### examples + +- Update a workspace instance. + ```bash + monitor log-analytics workspace update --resource-group myresourcegroup --retention-time 30 --workspace-name myworkspace + ``` + +- Update the defaultDataCollectionRuleResourceId of the workspace + ```bash + monitor log-analytics workspace update --resource-group myresourcegroup --workspace-name myworkspace --data-collection-rule "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dcrName}". + ``` diff --git a/Commands/monitor/log-analytics/workspace/table/_create.md b/Commands/monitor/log-analytics/workspace/table/_create.md index 1aff5ffa5e8..257657142a3 100644 --- a/Commands/monitor/log-analytics/workspace/table/_create.md +++ b/Commands/monitor/log-analytics/workspace/table/_create.md @@ -7,3 +7,7 @@ Create a Log Analytics workspace table. ### [2021-12-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vdGFibGVzL3t9/2021-12-01-preview.xml) **Stable** + +### [2022-10-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vdGFibGVzL3t9/2022-10-01.xml) **Stable** + + diff --git a/Commands/monitor/log-analytics/workspace/table/_delete.md b/Commands/monitor/log-analytics/workspace/table/_delete.md index c5660c9dc72..9d4ddc1bde9 100644 --- a/Commands/monitor/log-analytics/workspace/table/_delete.md +++ b/Commands/monitor/log-analytics/workspace/table/_delete.md @@ -7,3 +7,7 @@ Delete a Log Analytics workspace table. ### [2021-12-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vdGFibGVzL3t9/2021-12-01-preview.xml) **Stable** + +### [2022-10-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vdGFibGVzL3t9/2022-10-01.xml) **Stable** + + diff --git a/Commands/monitor/log-analytics/workspace/table/_list.md b/Commands/monitor/log-analytics/workspace/table/_list.md index c6e4e63750f..c84074291b2 100644 --- a/Commands/monitor/log-analytics/workspace/table/_list.md +++ b/Commands/monitor/log-analytics/workspace/table/_list.md @@ -14,3 +14,14 @@ List all the tables for the given Log Analytics workspace. ```bash monitor log-analytics workspace table list --resource-group MyResourceGroup --workspace-name MyWorkspace ``` + +### [2022-10-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vdGFibGVz/2022-10-01.xml) **Stable** + + + +#### examples + +- List all the tables for the given Log Analytics workspace + ```bash + monitor log-analytics workspace table list --resource-group MyResourceGroup --workspace-name MyWorkspace + ``` diff --git a/Commands/monitor/log-analytics/workspace/table/_migrate.md b/Commands/monitor/log-analytics/workspace/table/_migrate.md index 418f2afdf98..b81b0839b01 100644 --- a/Commands/monitor/log-analytics/workspace/table/_migrate.md +++ b/Commands/monitor/log-analytics/workspace/table/_migrate.md @@ -14,3 +14,14 @@ Migrate a Log Analytics table from support of the Data Collector API and Custom ```bash monitor log-analytics workspace table migrate --resource-group MyResourceGroup --workspace-name MyWorkspace -n MyTable_CL ``` + +### [2022-10-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vdGFibGVzL3t9L21pZ3JhdGU=/2022-10-01.xml) **Stable** + + + +#### examples + +- Migrate a Log Analytics workspace table. + ```bash + monitor log-analytics workspace table migrate --resource-group MyResourceGroup --workspace-name MyWorkspace -n MyTable_CL + ``` diff --git a/Commands/monitor/log-analytics/workspace/table/_show.md b/Commands/monitor/log-analytics/workspace/table/_show.md index 08d5c512d03..1dd20a4e97d 100644 --- a/Commands/monitor/log-analytics/workspace/table/_show.md +++ b/Commands/monitor/log-analytics/workspace/table/_show.md @@ -7,3 +7,7 @@ Get a Log Analytics workspace table. ### [2021-12-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vdGFibGVzL3t9/2021-12-01-preview.xml) **Stable** + +### [2022-10-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vdGFibGVzL3t9/2022-10-01.xml) **Stable** + + diff --git a/Commands/monitor/log-analytics/workspace/table/_update.md b/Commands/monitor/log-analytics/workspace/table/_update.md index 77befad5143..2b533e2d6b3 100644 --- a/Commands/monitor/log-analytics/workspace/table/_update.md +++ b/Commands/monitor/log-analytics/workspace/table/_update.md @@ -7,3 +7,7 @@ Update a Log Analytics workspace table. ### [2021-12-01-preview](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vdGFibGVzL3t9/2021-12-01-preview.xml) **Stable** + +### [2022-10-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vdGFibGVzL3t9/2022-10-01.xml) **Stable** + + diff --git a/Commands/monitor/log-analytics/workspace/table/readme.md b/Commands/monitor/log-analytics/workspace/table/readme.md index 23b1759906f..b76cb8f6339 100644 --- a/Commands/monitor/log-analytics/workspace/table/readme.md +++ b/Commands/monitor/log-analytics/workspace/table/readme.md @@ -2,6 +2,11 @@ Manage tables for log analytics workspace. +## Subgroups + +- [search-job](/Commands/monitor/log-analytics/workspace/table/search-job/readme.md) +: Manage tables for log analytics workspace search results table. + ## Commands - [create](/Commands/monitor/log-analytics/workspace/table/_create.md) diff --git a/Commands/monitor/log-analytics/workspace/table/search-job/_cancel.md b/Commands/monitor/log-analytics/workspace/table/search-job/_cancel.md new file mode 100644 index 00000000000..ee143e50d3f --- /dev/null +++ b/Commands/monitor/log-analytics/workspace/table/search-job/_cancel.md @@ -0,0 +1,9 @@ +# [Command] _monitor log-analytics workspace table search-job cancel_ + +Cancel a log analytics workspace search results table query run. + +## Versions + +### [2022-10-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vdGFibGVzL3t9L2NhbmNlbHNlYXJjaA==/2022-10-01.xml) **Stable** + + diff --git a/Commands/monitor/log-analytics/workspace/table/search-job/readme.md b/Commands/monitor/log-analytics/workspace/table/search-job/readme.md new file mode 100644 index 00000000000..23408f5f08f --- /dev/null +++ b/Commands/monitor/log-analytics/workspace/table/search-job/readme.md @@ -0,0 +1,8 @@ +# [Group] _monitor log-analytics workspace table search-job_ + +Manage tables for log analytics workspace search results table. + +## Commands + +- [cancel](/Commands/monitor/log-analytics/workspace/table/search-job/_cancel.md) +: Cancel a log analytics workspace search results table query run. diff --git a/Commands/tree.json b/Commands/tree.json index ab3551a8089..3ee01091e7b 100644 --- a/Commands/tree.json +++ b/Commands/tree.json @@ -2834,6 +2834,47 @@ ] }, "table": { + "commandGroups": { + "search-job": { + "commands": { + "cancel": { + "help": { + "short": "Cancel a log analytics workspace search results table query run." + }, + "names": [ + "monitor", + "log-analytics", + "workspace", + "table", + "search-job", + "cancel" + ], + "versions": [ + { + "name": "2022-10-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}/tables/{}/cancelsearch", + "plane": "mgmt-plane", + "version": "2022-10-01" + } + ] + } + ] + } + }, + "help": { + "short": "Manage tables for log analytics workspace search results table." + }, + "names": [ + "monitor", + "log-analytics", + "workspace", + "table", + "search-job" + ] + } + }, "commands": { "create": { "help": { @@ -2856,6 +2897,16 @@ "version": "2021-12-01-preview" } ] + }, + { + "name": "2022-10-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}/tables/{}", + "plane": "mgmt-plane", + "version": "2022-10-01" + } + ] } ] }, @@ -2880,6 +2931,16 @@ "version": "2021-12-01-preview" } ] + }, + { + "name": "2022-10-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}/tables/{}", + "plane": "mgmt-plane", + "version": "2022-10-01" + } + ] } ] }, @@ -2912,6 +2973,24 @@ "version": "2021-12-01-preview" } ] + }, + { + "examples": [ + { + "commands": [ + "monitor log-analytics workspace table list --resource-group MyResourceGroup --workspace-name MyWorkspace" + ], + "name": "List all the tables for the given Log Analytics workspace" + } + ], + "name": "2022-10-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}/tables", + "plane": "mgmt-plane", + "version": "2022-10-01" + } + ] } ] }, @@ -2944,6 +3023,24 @@ "version": "2021-12-01-preview" } ] + }, + { + "examples": [ + { + "commands": [ + "monitor log-analytics workspace table migrate --resource-group MyResourceGroup --workspace-name MyWorkspace -n MyTable_CL" + ], + "name": "Migrate a Log Analytics workspace table." + } + ], + "name": "2022-10-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}/tables/{}/migrate", + "plane": "mgmt-plane", + "version": "2022-10-01" + } + ] } ] }, @@ -2968,6 +3065,16 @@ "version": "2021-12-01-preview" } ] + }, + { + "name": "2022-10-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}/tables/{}", + "plane": "mgmt-plane", + "version": "2022-10-01" + } + ] } ] }, @@ -2992,6 +3099,16 @@ "version": "2021-12-01-preview" } ] + }, + { + "name": "2022-10-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}/tables/{}", + "plane": "mgmt-plane", + "version": "2022-10-01" + } + ] } ] } @@ -3036,6 +3153,24 @@ "version": "2021-12-01-preview" } ] + }, + { + "examples": [ + { + "commands": [ + "monitor log-analytics workspace create -g MyResourceGroup -n MyWorkspace" + ], + "name": "Create a workspace instance" + } + ], + "name": "2022-10-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}", + "plane": "mgmt-plane", + "version": "2022-10-01" + } + ] } ] }, @@ -3076,6 +3211,30 @@ "version": "2021-12-01-preview" } ] + }, + { + "examples": [ + { + "commands": [ + "monitor log-analytics workspace delete --resource-group MyResourceGroup --workspace-name MyWorkspace" + ], + "name": "Soft delete a workspace instance." + }, + { + "commands": [ + "monitor log-analytics workspace delete --force --resource-group MyResourceGroup --workspace-name MyWorkspace" + ], + "name": "Completely delete a workspace instance." + } + ], + "name": "2022-10-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}", + "plane": "mgmt-plane", + "version": "2022-10-01" + } + ] } ] }, @@ -3170,6 +3329,21 @@ "version": "2021-12-01-preview" } ] + }, + { + "name": "2022-10-01", + "resources": [ + { + "id": "/subscriptions/{}/providers/microsoft.operationalinsights/workspaces", + "plane": "mgmt-plane", + "version": "2022-10-01" + }, + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces", + "plane": "mgmt-plane", + "version": "2022-10-01" + } + ] } ] }, @@ -3206,6 +3380,29 @@ "version": "2021-12-01-preview" } ] + }, + { + "examples": [ + { + "commands": [ + "monitor log-analytics workspace list-deleted-workspaces --resource-group MyResourceGroup" + ], + "name": "Get a list of deleted workspaces that can be recovered in a resource group" + } + ], + "name": "2022-10-01", + "resources": [ + { + "id": "/subscriptions/{}/providers/microsoft.operationalinsights/deletedworkspaces", + "plane": "mgmt-plane", + "version": "2022-10-01" + }, + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/deletedworkspaces", + "plane": "mgmt-plane", + "version": "2022-10-01" + } + ] } ] }, @@ -3299,6 +3496,24 @@ "version": "2021-12-01-preview" } ] + }, + { + "examples": [ + { + "commands": [ + "monitor log-analytics workspace show --resource-group MyResourceGroup --workspace-name MyWorkspace" + ], + "name": "Show a workspace instance." + } + ], + "name": "2022-10-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}", + "plane": "mgmt-plane", + "version": "2022-10-01" + } + ] } ] }, @@ -3336,6 +3551,30 @@ "version": "2021-12-01-preview" } ] + }, + { + "examples": [ + { + "commands": [ + "monitor log-analytics workspace update --resource-group myresourcegroup --retention-time 30 --workspace-name myworkspace" + ], + "name": "Update a workspace instance." + }, + { + "commands": [ + "monitor log-analytics workspace update --resource-group myresourcegroup --workspace-name myworkspace --data-collection-rule \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dcrName}\"." + ], + "name": "Update the defaultDataCollectionRuleResourceId of the workspace" + } + ], + "name": "2022-10-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}", + "plane": "mgmt-plane", + "version": "2022-10-01" + } + ] } ] } diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL2RlbGV0ZWR3b3Jrc3BhY2Vz/2022-10-01.json b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL2RlbGV0ZWR3b3Jrc3BhY2Vz/2022-10-01.json new file mode 100644 index 00000000000..8b1dcf274a7 --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL2RlbGV0ZWR3b3Jrc3BhY2Vz/2022-10-01.json @@ -0,0 +1,1131 @@ +{ + "plane": "mgmt-plane", + "resources": [ + { + "id": "/subscriptions/{}/providers/microsoft.operationalinsights/deletedworkspaces", + "version": "2022-10-01", + "swagger": "mgmt-plane/operationalinsights/ResourceProviders/Microsoft.OperationalInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0Lk9wZXJhdGlvbmFsSW5zaWdodHMvZGVsZXRlZFdvcmtzcGFjZXM=/V/MjAyMi0xMC0wMQ==" + }, + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/deletedworkspaces", + "version": "2022-10-01", + "swagger": "mgmt-plane/operationalinsights/ResourceProviders/Microsoft.OperationalInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZWdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uYWxJbnNpZ2h0cy9kZWxldGVkV29ya3NwYWNlcw==/V/MjAyMi0xMC0wMQ==" + } + ], + "commandGroups": [ + { + "name": "monitor log-analytics workspace", + "commands": [ + { + "name": "list-deleted-workspaces", + "version": "2022-10-01", + "resources": [ + { + "id": "/subscriptions/{}/providers/microsoft.operationalinsights/deletedworkspaces", + "version": "2022-10-01", + "swagger": "mgmt-plane/operationalinsights/ResourceProviders/Microsoft.OperationalInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0Lk9wZXJhdGlvbmFsSW5zaWdodHMvZGVsZXRlZFdvcmtzcGFjZXM=/V/MjAyMi0xMC0wMQ==" + }, + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/deletedworkspaces", + "version": "2022-10-01", + "swagger": "mgmt-plane/operationalinsights/ResourceProviders/Microsoft.OperationalInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZWdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uYWxJbnNpZ2h0cy9kZWxldGVkV29ya3NwYWNlcw==/V/MjAyMi0xMC0wMQ==" + } + ], + "argGroups": [ + { + "name": "", + "args": [ + { + "type": "ResourceGroupName", + "var": "$Path.resourceGroupName", + "options": [ + "g", + "resource-group" + ] + }, + { + "type": "SubscriptionId", + "var": "$Path.subscriptionId", + "options": [ + "subscription" + ], + "required": true + } + ] + } + ], + "conditions": [ + { + "var": "$Condition_DeletedWorkspaces_ListByResourceGroup", + "operator": { + "type": "and", + "operators": [ + { + "type": "hasValue", + "arg": "$Path.resourceGroupName" + }, + { + "type": "hasValue", + "arg": "$Path.subscriptionId" + } + ] + } + }, + { + "var": "$Condition_DeletedWorkspaces_List", + "operator": { + "type": "and", + "operators": [ + { + "type": "hasValue", + "arg": "$Path.subscriptionId" + }, + { + "type": "not", + "operator": { + "type": "hasValue", + "arg": "$Path.resourceGroupName" + } + } + ] + } + } + ], + "operations": [ + { + "when": [ + "$Condition_DeletedWorkspaces_ListByResourceGroup" + ], + "operationId": "DeletedWorkspaces_ListByResourceGroup", + "http": { + "path": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/deletedWorkspaces", + "request": { + "method": "get", + "path": { + "params": [ + { + "type": "string", + "name": "resourceGroupName", + "arg": "$Path.resourceGroupName", + "required": true, + "format": { + "maxLength": 90, + "minLength": 1 + } + }, + { + "type": "string", + "name": "subscriptionId", + "arg": "$Path.subscriptionId", + "required": true, + "format": { + "minLength": 1 + } + } + ] + }, + "query": { + "consts": [ + { + "readOnly": true, + "const": true, + "default": { + "value": "2022-10-01" + }, + "type": "string", + "name": "api-version", + "required": true, + "format": { + "minLength": 1 + } + } + ] + } + }, + "responses": [ + { + "statusCode": [ + 200 + ], + "body": { + "json": { + "var": "$Instance", + "schema": { + "type": "object", + "props": [ + { + "type": "array", + "name": "value", + "item": { + "type": "object", + "props": [ + { + "type": "string", + "name": "etag" + }, + { + "readOnly": true, + "type": "ResourceId", + "name": "id", + "format": { + "template": "/subscriptions/{}/resourcegroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}" + } + }, + { + "type": "IdentityObject", + "name": "identity", + "props": [ + { + "readOnly": true, + "type": "string", + "name": "principalId" + }, + { + "readOnly": true, + "type": "string", + "name": "tenantId" + }, + { + "type": "string", + "name": "type", + "required": true, + "enum": { + "items": [ + { + "value": "None" + }, + { + "value": "SystemAssigned" + }, + { + "value": "UserAssigned" + } + ] + } + }, + { + "type": "object", + "name": "userAssignedIdentities", + "additionalProps": { + "item": { + "type": "object", + "props": [ + { + "readOnly": true, + "type": "string", + "name": "clientId" + }, + { + "readOnly": true, + "type": "string", + "name": "principalId" + } + ] + } + } + } + ] + }, + { + "type": "ResourceLocation", + "name": "location", + "required": true + }, + { + "readOnly": true, + "type": "string", + "name": "name" + }, + { + "type": "object", + "name": "properties", + "props": [ + { + "readOnly": true, + "type": "string", + "name": "createdDate" + }, + { + "readOnly": true, + "type": "string", + "name": "customerId" + }, + { + "type": "string", + "name": "defaultDataCollectionRuleResourceId" + }, + { + "type": "object", + "name": "features", + "props": [ + { + "nullable": true, + "type": "string", + "name": "clusterResourceId" + }, + { + "nullable": true, + "type": "boolean", + "name": "disableLocalAuth" + }, + { + "nullable": true, + "type": "boolean", + "name": "enableDataExport" + }, + { + "nullable": true, + "type": "boolean", + "name": "enableLogAccessUsingOnlyResourcePermissions" + }, + { + "nullable": true, + "type": "boolean", + "name": "immediatePurgeDataOn30Days" + } + ] + }, + { + "type": "boolean", + "name": "forceCmkForQuery" + }, + { + "readOnly": true, + "type": "string", + "name": "modifiedDate" + }, + { + "readOnly": true, + "type": "array", + "name": "privateLinkScopedResources", + "item": { + "readOnly": true, + "type": "object", + "props": [ + { + "readOnly": true, + "type": "string", + "name": "resourceId" + }, + { + "readOnly": true, + "type": "string", + "name": "scopeId" + } + ] + } + }, + { + "readOnly": true, + "type": "string", + "name": "provisioningState", + "enum": { + "items": [ + { + "value": "Canceled" + }, + { + "value": "Creating" + }, + { + "value": "Deleting" + }, + { + "value": "Failed" + }, + { + "value": "ProvisioningAccount" + }, + { + "value": "Succeeded" + }, + { + "value": "Updating" + } + ] + } + }, + { + "default": { + "value": "Enabled" + }, + "type": "string", + "name": "publicNetworkAccessForIngestion", + "enum": { + "items": [ + { + "value": "Disabled" + }, + { + "value": "Enabled" + } + ] + } + }, + { + "default": { + "value": "Enabled" + }, + "type": "string", + "name": "publicNetworkAccessForQuery", + "enum": { + "items": [ + { + "value": "Disabled" + }, + { + "value": "Enabled" + } + ] + } + }, + { + "nullable": true, + "type": "integer32", + "name": "retentionInDays" + }, + { + "type": "object", + "name": "sku", + "props": [ + { + "type": "integer32", + "name": "capacityReservationLevel", + "enum": { + "items": [ + { + "value": 100 + }, + { + "value": 200 + }, + { + "value": 300 + }, + { + "value": 400 + }, + { + "value": 500 + }, + { + "value": 1000 + }, + { + "value": 2000 + }, + { + "value": 5000 + } + ] + } + }, + { + "readOnly": true, + "type": "string", + "name": "lastSkuUpdate" + }, + { + "type": "string", + "name": "name", + "required": true, + "enum": { + "items": [ + { + "value": "CapacityReservation" + }, + { + "value": "Free" + }, + { + "value": "LACluster" + }, + { + "value": "PerGB2018" + }, + { + "value": "PerNode" + }, + { + "value": "Premium" + }, + { + "value": "Standalone" + }, + { + "value": "Standard" + } + ] + } + } + ] + }, + { + "type": "object", + "name": "workspaceCapping", + "props": [ + { + "type": "float64", + "name": "dailyQuotaGb" + }, + { + "readOnly": true, + "type": "string", + "name": "dataIngestionStatus", + "enum": { + "items": [ + { + "value": "ApproachingQuota" + }, + { + "value": "ForceOff" + }, + { + "value": "ForceOn" + }, + { + "value": "OverQuota" + }, + { + "value": "RespectQuota" + }, + { + "value": "SubscriptionSuspended" + } + ] + } + }, + { + "readOnly": true, + "type": "string", + "name": "quotaNextResetTime" + } + ] + } + ], + "clientFlatten": true + }, + { + "readOnly": true, + "type": "object", + "name": "systemData", + "props": [ + { + "readOnly": true, + "type": "dateTime", + "name": "createdAt" + }, + { + "readOnly": true, + "type": "string", + "name": "createdBy" + }, + { + "readOnly": true, + "type": "string", + "name": "createdByType", + "enum": { + "items": [ + { + "value": "Application" + }, + { + "value": "Key" + }, + { + "value": "ManagedIdentity" + }, + { + "value": "User" + } + ] + } + }, + { + "readOnly": true, + "type": "dateTime", + "name": "lastModifiedAt" + }, + { + "readOnly": true, + "type": "string", + "name": "lastModifiedBy" + }, + { + "readOnly": true, + "type": "string", + "name": "lastModifiedByType", + "enum": { + "items": [ + { + "value": "Application" + }, + { + "value": "Key" + }, + { + "value": "ManagedIdentity" + }, + { + "value": "User" + } + ] + } + } + ] + }, + { + "type": "object", + "name": "tags", + "additionalProps": { + "item": { + "type": "string" + } + } + }, + { + "readOnly": true, + "type": "string", + "name": "type" + } + ] + } + } + ] + } + } + } + }, + { + "isError": true, + "body": { + "json": { + "schema": { + "type": "@MgmtErrorFormat" + } + } + } + } + ] + } + }, + { + "when": [ + "$Condition_DeletedWorkspaces_List" + ], + "operationId": "DeletedWorkspaces_List", + "http": { + "path": "/subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/deletedWorkspaces", + "request": { + "method": "get", + "path": { + "params": [ + { + "type": "string", + "name": "subscriptionId", + "arg": "$Path.subscriptionId", + "required": true, + "format": { + "minLength": 1 + } + } + ] + }, + "query": { + "consts": [ + { + "readOnly": true, + "const": true, + "default": { + "value": "2022-10-01" + }, + "type": "string", + "name": "api-version", + "required": true, + "format": { + "minLength": 1 + } + } + ] + } + }, + "responses": [ + { + "statusCode": [ + 200 + ], + "body": { + "json": { + "var": "$Instance", + "schema": { + "type": "object", + "props": [ + { + "type": "array", + "name": "value", + "item": { + "type": "object", + "props": [ + { + "type": "string", + "name": "etag" + }, + { + "readOnly": true, + "type": "ResourceId", + "name": "id", + "format": { + "template": "/subscriptions/{}/resourcegroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}" + } + }, + { + "type": "IdentityObject", + "name": "identity", + "props": [ + { + "readOnly": true, + "type": "string", + "name": "principalId" + }, + { + "readOnly": true, + "type": "string", + "name": "tenantId" + }, + { + "type": "string", + "name": "type", + "required": true, + "enum": { + "items": [ + { + "value": "None" + }, + { + "value": "SystemAssigned" + }, + { + "value": "UserAssigned" + } + ] + } + }, + { + "type": "object", + "name": "userAssignedIdentities", + "additionalProps": { + "item": { + "type": "object", + "props": [ + { + "readOnly": true, + "type": "string", + "name": "clientId" + }, + { + "readOnly": true, + "type": "string", + "name": "principalId" + } + ] + } + } + } + ] + }, + { + "type": "ResourceLocation", + "name": "location", + "required": true + }, + { + "readOnly": true, + "type": "string", + "name": "name" + }, + { + "type": "object", + "name": "properties", + "props": [ + { + "readOnly": true, + "type": "string", + "name": "createdDate" + }, + { + "readOnly": true, + "type": "string", + "name": "customerId" + }, + { + "type": "string", + "name": "defaultDataCollectionRuleResourceId" + }, + { + "type": "object", + "name": "features", + "props": [ + { + "nullable": true, + "type": "string", + "name": "clusterResourceId" + }, + { + "nullable": true, + "type": "boolean", + "name": "disableLocalAuth" + }, + { + "nullable": true, + "type": "boolean", + "name": "enableDataExport" + }, + { + "nullable": true, + "type": "boolean", + "name": "enableLogAccessUsingOnlyResourcePermissions" + }, + { + "nullable": true, + "type": "boolean", + "name": "immediatePurgeDataOn30Days" + } + ] + }, + { + "type": "boolean", + "name": "forceCmkForQuery" + }, + { + "readOnly": true, + "type": "string", + "name": "modifiedDate" + }, + { + "readOnly": true, + "type": "array", + "name": "privateLinkScopedResources", + "item": { + "readOnly": true, + "type": "object", + "props": [ + { + "readOnly": true, + "type": "string", + "name": "resourceId" + }, + { + "readOnly": true, + "type": "string", + "name": "scopeId" + } + ] + } + }, + { + "readOnly": true, + "type": "string", + "name": "provisioningState", + "enum": { + "items": [ + { + "value": "Canceled" + }, + { + "value": "Creating" + }, + { + "value": "Deleting" + }, + { + "value": "Failed" + }, + { + "value": "ProvisioningAccount" + }, + { + "value": "Succeeded" + }, + { + "value": "Updating" + } + ] + } + }, + { + "default": { + "value": "Enabled" + }, + "type": "string", + "name": "publicNetworkAccessForIngestion", + "enum": { + "items": [ + { + "value": "Disabled" + }, + { + "value": "Enabled" + } + ] + } + }, + { + "default": { + "value": "Enabled" + }, + "type": "string", + "name": "publicNetworkAccessForQuery", + "enum": { + "items": [ + { + "value": "Disabled" + }, + { + "value": "Enabled" + } + ] + } + }, + { + "nullable": true, + "type": "integer32", + "name": "retentionInDays" + }, + { + "type": "object", + "name": "sku", + "props": [ + { + "type": "integer32", + "name": "capacityReservationLevel", + "enum": { + "items": [ + { + "value": 100 + }, + { + "value": 200 + }, + { + "value": 300 + }, + { + "value": 400 + }, + { + "value": 500 + }, + { + "value": 1000 + }, + { + "value": 2000 + }, + { + "value": 5000 + } + ] + } + }, + { + "readOnly": true, + "type": "string", + "name": "lastSkuUpdate" + }, + { + "type": "string", + "name": "name", + "required": true, + "enum": { + "items": [ + { + "value": "CapacityReservation" + }, + { + "value": "Free" + }, + { + "value": "LACluster" + }, + { + "value": "PerGB2018" + }, + { + "value": "PerNode" + }, + { + "value": "Premium" + }, + { + "value": "Standalone" + }, + { + "value": "Standard" + } + ] + } + } + ] + }, + { + "type": "object", + "name": "workspaceCapping", + "props": [ + { + "type": "float64", + "name": "dailyQuotaGb" + }, + { + "readOnly": true, + "type": "string", + "name": "dataIngestionStatus", + "enum": { + "items": [ + { + "value": "ApproachingQuota" + }, + { + "value": "ForceOff" + }, + { + "value": "ForceOn" + }, + { + "value": "OverQuota" + }, + { + "value": "RespectQuota" + }, + { + "value": "SubscriptionSuspended" + } + ] + } + }, + { + "readOnly": true, + "type": "string", + "name": "quotaNextResetTime" + } + ] + } + ], + "clientFlatten": true + }, + { + "readOnly": true, + "type": "object", + "name": "systemData", + "props": [ + { + "readOnly": true, + "type": "dateTime", + "name": "createdAt" + }, + { + "readOnly": true, + "type": "string", + "name": "createdBy" + }, + { + "readOnly": true, + "type": "string", + "name": "createdByType", + "enum": { + "items": [ + { + "value": "Application" + }, + { + "value": "Key" + }, + { + "value": "ManagedIdentity" + }, + { + "value": "User" + } + ] + } + }, + { + "readOnly": true, + "type": "dateTime", + "name": "lastModifiedAt" + }, + { + "readOnly": true, + "type": "string", + "name": "lastModifiedBy" + }, + { + "readOnly": true, + "type": "string", + "name": "lastModifiedByType", + "enum": { + "items": [ + { + "value": "Application" + }, + { + "value": "Key" + }, + { + "value": "ManagedIdentity" + }, + { + "value": "User" + } + ] + } + } + ] + }, + { + "type": "object", + "name": "tags", + "additionalProps": { + "item": { + "type": "string" + } + } + }, + { + "readOnly": true, + "type": "string", + "name": "type" + } + ] + } + } + ] + } + } + } + }, + { + "isError": true, + "body": { + "json": { + "schema": { + "type": "@MgmtErrorFormat" + } + } + } + } + ] + } + } + ], + "outputs": [ + { + "type": "array", + "ref": "$Instance.value", + "clientFlatten": true + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL2RlbGV0ZWR3b3Jrc3BhY2Vz/2022-10-01.xml b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL2RlbGV0ZWR3b3Jrc3BhY2Vz/2022-10-01.xml new file mode 100644 index 00000000000..46b6a8a4c6c --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL2RlbGV0ZWR3b3Jrc3BhY2Vz/2022-10-01.xml @@ -0,0 +1,385 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXM=/2022-10-01.json b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXM=/2022-10-01.json new file mode 100644 index 00000000000..d5c8a04f4cb --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXM=/2022-10-01.json @@ -0,0 +1,1131 @@ +{ + "plane": "mgmt-plane", + "resources": [ + { + "id": "/subscriptions/{}/providers/microsoft.operationalinsights/workspaces", + "version": "2022-10-01", + "swagger": "mgmt-plane/operationalinsights/ResourceProviders/Microsoft.OperationalInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0Lk9wZXJhdGlvbmFsSW5zaWdodHMvd29ya3NwYWNlcw==/V/MjAyMi0xMC0wMQ==" + }, + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces", + "version": "2022-10-01", + "swagger": "mgmt-plane/operationalinsights/ResourceProviders/Microsoft.OperationalInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZWdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uYWxJbnNpZ2h0cy93b3Jrc3BhY2Vz/V/MjAyMi0xMC0wMQ==" + } + ], + "commandGroups": [ + { + "name": "monitor log-analytics workspace", + "commands": [ + { + "name": "list", + "version": "2022-10-01", + "resources": [ + { + "id": "/subscriptions/{}/providers/microsoft.operationalinsights/workspaces", + "version": "2022-10-01", + "swagger": "mgmt-plane/operationalinsights/ResourceProviders/Microsoft.OperationalInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0Lk9wZXJhdGlvbmFsSW5zaWdodHMvd29ya3NwYWNlcw==/V/MjAyMi0xMC0wMQ==" + }, + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces", + "version": "2022-10-01", + "swagger": "mgmt-plane/operationalinsights/ResourceProviders/Microsoft.OperationalInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZWdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uYWxJbnNpZ2h0cy93b3Jrc3BhY2Vz/V/MjAyMi0xMC0wMQ==" + } + ], + "argGroups": [ + { + "name": "", + "args": [ + { + "type": "ResourceGroupName", + "var": "$Path.resourceGroupName", + "options": [ + "g", + "resource-group" + ] + }, + { + "type": "SubscriptionId", + "var": "$Path.subscriptionId", + "options": [ + "subscription" + ], + "required": true + } + ] + } + ], + "conditions": [ + { + "var": "$Condition_Workspaces_ListByResourceGroup", + "operator": { + "type": "and", + "operators": [ + { + "type": "hasValue", + "arg": "$Path.resourceGroupName" + }, + { + "type": "hasValue", + "arg": "$Path.subscriptionId" + } + ] + } + }, + { + "var": "$Condition_Workspaces_List", + "operator": { + "type": "and", + "operators": [ + { + "type": "hasValue", + "arg": "$Path.subscriptionId" + }, + { + "type": "not", + "operator": { + "type": "hasValue", + "arg": "$Path.resourceGroupName" + } + } + ] + } + } + ], + "operations": [ + { + "when": [ + "$Condition_Workspaces_ListByResourceGroup" + ], + "operationId": "Workspaces_ListByResourceGroup", + "http": { + "path": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces", + "request": { + "method": "get", + "path": { + "params": [ + { + "type": "string", + "name": "resourceGroupName", + "arg": "$Path.resourceGroupName", + "required": true, + "format": { + "maxLength": 90, + "minLength": 1 + } + }, + { + "type": "string", + "name": "subscriptionId", + "arg": "$Path.subscriptionId", + "required": true, + "format": { + "minLength": 1 + } + } + ] + }, + "query": { + "consts": [ + { + "readOnly": true, + "const": true, + "default": { + "value": "2022-10-01" + }, + "type": "string", + "name": "api-version", + "required": true, + "format": { + "minLength": 1 + } + } + ] + } + }, + "responses": [ + { + "statusCode": [ + 200 + ], + "body": { + "json": { + "var": "$Instance", + "schema": { + "type": "object", + "props": [ + { + "type": "array", + "name": "value", + "item": { + "type": "object", + "props": [ + { + "type": "string", + "name": "etag" + }, + { + "readOnly": true, + "type": "ResourceId", + "name": "id", + "format": { + "template": "/subscriptions/{}/resourcegroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}" + } + }, + { + "type": "IdentityObject", + "name": "identity", + "props": [ + { + "readOnly": true, + "type": "string", + "name": "principalId" + }, + { + "readOnly": true, + "type": "string", + "name": "tenantId" + }, + { + "type": "string", + "name": "type", + "required": true, + "enum": { + "items": [ + { + "value": "None" + }, + { + "value": "SystemAssigned" + }, + { + "value": "UserAssigned" + } + ] + } + }, + { + "type": "object", + "name": "userAssignedIdentities", + "additionalProps": { + "item": { + "type": "object", + "props": [ + { + "readOnly": true, + "type": "string", + "name": "clientId" + }, + { + "readOnly": true, + "type": "string", + "name": "principalId" + } + ] + } + } + } + ] + }, + { + "type": "ResourceLocation", + "name": "location", + "required": true + }, + { + "readOnly": true, + "type": "string", + "name": "name" + }, + { + "type": "object", + "name": "properties", + "props": [ + { + "readOnly": true, + "type": "string", + "name": "createdDate" + }, + { + "readOnly": true, + "type": "string", + "name": "customerId" + }, + { + "type": "string", + "name": "defaultDataCollectionRuleResourceId" + }, + { + "type": "object", + "name": "features", + "props": [ + { + "nullable": true, + "type": "string", + "name": "clusterResourceId" + }, + { + "nullable": true, + "type": "boolean", + "name": "disableLocalAuth" + }, + { + "nullable": true, + "type": "boolean", + "name": "enableDataExport" + }, + { + "nullable": true, + "type": "boolean", + "name": "enableLogAccessUsingOnlyResourcePermissions" + }, + { + "nullable": true, + "type": "boolean", + "name": "immediatePurgeDataOn30Days" + } + ] + }, + { + "type": "boolean", + "name": "forceCmkForQuery" + }, + { + "readOnly": true, + "type": "string", + "name": "modifiedDate" + }, + { + "readOnly": true, + "type": "array", + "name": "privateLinkScopedResources", + "item": { + "readOnly": true, + "type": "object", + "props": [ + { + "readOnly": true, + "type": "string", + "name": "resourceId" + }, + { + "readOnly": true, + "type": "string", + "name": "scopeId" + } + ] + } + }, + { + "readOnly": true, + "type": "string", + "name": "provisioningState", + "enum": { + "items": [ + { + "value": "Canceled" + }, + { + "value": "Creating" + }, + { + "value": "Deleting" + }, + { + "value": "Failed" + }, + { + "value": "ProvisioningAccount" + }, + { + "value": "Succeeded" + }, + { + "value": "Updating" + } + ] + } + }, + { + "default": { + "value": "Enabled" + }, + "type": "string", + "name": "publicNetworkAccessForIngestion", + "enum": { + "items": [ + { + "value": "Disabled" + }, + { + "value": "Enabled" + } + ] + } + }, + { + "default": { + "value": "Enabled" + }, + "type": "string", + "name": "publicNetworkAccessForQuery", + "enum": { + "items": [ + { + "value": "Disabled" + }, + { + "value": "Enabled" + } + ] + } + }, + { + "nullable": true, + "type": "integer32", + "name": "retentionInDays" + }, + { + "type": "object", + "name": "sku", + "props": [ + { + "type": "integer32", + "name": "capacityReservationLevel", + "enum": { + "items": [ + { + "value": 100 + }, + { + "value": 200 + }, + { + "value": 300 + }, + { + "value": 400 + }, + { + "value": 500 + }, + { + "value": 1000 + }, + { + "value": 2000 + }, + { + "value": 5000 + } + ] + } + }, + { + "readOnly": true, + "type": "string", + "name": "lastSkuUpdate" + }, + { + "type": "string", + "name": "name", + "required": true, + "enum": { + "items": [ + { + "value": "CapacityReservation" + }, + { + "value": "Free" + }, + { + "value": "LACluster" + }, + { + "value": "PerGB2018" + }, + { + "value": "PerNode" + }, + { + "value": "Premium" + }, + { + "value": "Standalone" + }, + { + "value": "Standard" + } + ] + } + } + ] + }, + { + "type": "object", + "name": "workspaceCapping", + "props": [ + { + "type": "float64", + "name": "dailyQuotaGb" + }, + { + "readOnly": true, + "type": "string", + "name": "dataIngestionStatus", + "enum": { + "items": [ + { + "value": "ApproachingQuota" + }, + { + "value": "ForceOff" + }, + { + "value": "ForceOn" + }, + { + "value": "OverQuota" + }, + { + "value": "RespectQuota" + }, + { + "value": "SubscriptionSuspended" + } + ] + } + }, + { + "readOnly": true, + "type": "string", + "name": "quotaNextResetTime" + } + ] + } + ], + "clientFlatten": true + }, + { + "readOnly": true, + "type": "object", + "name": "systemData", + "props": [ + { + "readOnly": true, + "type": "dateTime", + "name": "createdAt" + }, + { + "readOnly": true, + "type": "string", + "name": "createdBy" + }, + { + "readOnly": true, + "type": "string", + "name": "createdByType", + "enum": { + "items": [ + { + "value": "Application" + }, + { + "value": "Key" + }, + { + "value": "ManagedIdentity" + }, + { + "value": "User" + } + ] + } + }, + { + "readOnly": true, + "type": "dateTime", + "name": "lastModifiedAt" + }, + { + "readOnly": true, + "type": "string", + "name": "lastModifiedBy" + }, + { + "readOnly": true, + "type": "string", + "name": "lastModifiedByType", + "enum": { + "items": [ + { + "value": "Application" + }, + { + "value": "Key" + }, + { + "value": "ManagedIdentity" + }, + { + "value": "User" + } + ] + } + } + ] + }, + { + "type": "object", + "name": "tags", + "additionalProps": { + "item": { + "type": "string" + } + } + }, + { + "readOnly": true, + "type": "string", + "name": "type" + } + ] + } + } + ] + } + } + } + }, + { + "isError": true, + "body": { + "json": { + "schema": { + "type": "@MgmtErrorFormat" + } + } + } + } + ] + } + }, + { + "when": [ + "$Condition_Workspaces_List" + ], + "operationId": "Workspaces_List", + "http": { + "path": "/subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/workspaces", + "request": { + "method": "get", + "path": { + "params": [ + { + "type": "string", + "name": "subscriptionId", + "arg": "$Path.subscriptionId", + "required": true, + "format": { + "minLength": 1 + } + } + ] + }, + "query": { + "consts": [ + { + "readOnly": true, + "const": true, + "default": { + "value": "2022-10-01" + }, + "type": "string", + "name": "api-version", + "required": true, + "format": { + "minLength": 1 + } + } + ] + } + }, + "responses": [ + { + "statusCode": [ + 200 + ], + "body": { + "json": { + "var": "$Instance", + "schema": { + "type": "object", + "props": [ + { + "type": "array", + "name": "value", + "item": { + "type": "object", + "props": [ + { + "type": "string", + "name": "etag" + }, + { + "readOnly": true, + "type": "ResourceId", + "name": "id", + "format": { + "template": "/subscriptions/{}/resourcegroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}" + } + }, + { + "type": "IdentityObject", + "name": "identity", + "props": [ + { + "readOnly": true, + "type": "string", + "name": "principalId" + }, + { + "readOnly": true, + "type": "string", + "name": "tenantId" + }, + { + "type": "string", + "name": "type", + "required": true, + "enum": { + "items": [ + { + "value": "None" + }, + { + "value": "SystemAssigned" + }, + { + "value": "UserAssigned" + } + ] + } + }, + { + "type": "object", + "name": "userAssignedIdentities", + "additionalProps": { + "item": { + "type": "object", + "props": [ + { + "readOnly": true, + "type": "string", + "name": "clientId" + }, + { + "readOnly": true, + "type": "string", + "name": "principalId" + } + ] + } + } + } + ] + }, + { + "type": "ResourceLocation", + "name": "location", + "required": true + }, + { + "readOnly": true, + "type": "string", + "name": "name" + }, + { + "type": "object", + "name": "properties", + "props": [ + { + "readOnly": true, + "type": "string", + "name": "createdDate" + }, + { + "readOnly": true, + "type": "string", + "name": "customerId" + }, + { + "type": "string", + "name": "defaultDataCollectionRuleResourceId" + }, + { + "type": "object", + "name": "features", + "props": [ + { + "nullable": true, + "type": "string", + "name": "clusterResourceId" + }, + { + "nullable": true, + "type": "boolean", + "name": "disableLocalAuth" + }, + { + "nullable": true, + "type": "boolean", + "name": "enableDataExport" + }, + { + "nullable": true, + "type": "boolean", + "name": "enableLogAccessUsingOnlyResourcePermissions" + }, + { + "nullable": true, + "type": "boolean", + "name": "immediatePurgeDataOn30Days" + } + ] + }, + { + "type": "boolean", + "name": "forceCmkForQuery" + }, + { + "readOnly": true, + "type": "string", + "name": "modifiedDate" + }, + { + "readOnly": true, + "type": "array", + "name": "privateLinkScopedResources", + "item": { + "readOnly": true, + "type": "object", + "props": [ + { + "readOnly": true, + "type": "string", + "name": "resourceId" + }, + { + "readOnly": true, + "type": "string", + "name": "scopeId" + } + ] + } + }, + { + "readOnly": true, + "type": "string", + "name": "provisioningState", + "enum": { + "items": [ + { + "value": "Canceled" + }, + { + "value": "Creating" + }, + { + "value": "Deleting" + }, + { + "value": "Failed" + }, + { + "value": "ProvisioningAccount" + }, + { + "value": "Succeeded" + }, + { + "value": "Updating" + } + ] + } + }, + { + "default": { + "value": "Enabled" + }, + "type": "string", + "name": "publicNetworkAccessForIngestion", + "enum": { + "items": [ + { + "value": "Disabled" + }, + { + "value": "Enabled" + } + ] + } + }, + { + "default": { + "value": "Enabled" + }, + "type": "string", + "name": "publicNetworkAccessForQuery", + "enum": { + "items": [ + { + "value": "Disabled" + }, + { + "value": "Enabled" + } + ] + } + }, + { + "nullable": true, + "type": "integer32", + "name": "retentionInDays" + }, + { + "type": "object", + "name": "sku", + "props": [ + { + "type": "integer32", + "name": "capacityReservationLevel", + "enum": { + "items": [ + { + "value": 100 + }, + { + "value": 200 + }, + { + "value": 300 + }, + { + "value": 400 + }, + { + "value": 500 + }, + { + "value": 1000 + }, + { + "value": 2000 + }, + { + "value": 5000 + } + ] + } + }, + { + "readOnly": true, + "type": "string", + "name": "lastSkuUpdate" + }, + { + "type": "string", + "name": "name", + "required": true, + "enum": { + "items": [ + { + "value": "CapacityReservation" + }, + { + "value": "Free" + }, + { + "value": "LACluster" + }, + { + "value": "PerGB2018" + }, + { + "value": "PerNode" + }, + { + "value": "Premium" + }, + { + "value": "Standalone" + }, + { + "value": "Standard" + } + ] + } + } + ] + }, + { + "type": "object", + "name": "workspaceCapping", + "props": [ + { + "type": "float64", + "name": "dailyQuotaGb" + }, + { + "readOnly": true, + "type": "string", + "name": "dataIngestionStatus", + "enum": { + "items": [ + { + "value": "ApproachingQuota" + }, + { + "value": "ForceOff" + }, + { + "value": "ForceOn" + }, + { + "value": "OverQuota" + }, + { + "value": "RespectQuota" + }, + { + "value": "SubscriptionSuspended" + } + ] + } + }, + { + "readOnly": true, + "type": "string", + "name": "quotaNextResetTime" + } + ] + } + ], + "clientFlatten": true + }, + { + "readOnly": true, + "type": "object", + "name": "systemData", + "props": [ + { + "readOnly": true, + "type": "dateTime", + "name": "createdAt" + }, + { + "readOnly": true, + "type": "string", + "name": "createdBy" + }, + { + "readOnly": true, + "type": "string", + "name": "createdByType", + "enum": { + "items": [ + { + "value": "Application" + }, + { + "value": "Key" + }, + { + "value": "ManagedIdentity" + }, + { + "value": "User" + } + ] + } + }, + { + "readOnly": true, + "type": "dateTime", + "name": "lastModifiedAt" + }, + { + "readOnly": true, + "type": "string", + "name": "lastModifiedBy" + }, + { + "readOnly": true, + "type": "string", + "name": "lastModifiedByType", + "enum": { + "items": [ + { + "value": "Application" + }, + { + "value": "Key" + }, + { + "value": "ManagedIdentity" + }, + { + "value": "User" + } + ] + } + } + ] + }, + { + "type": "object", + "name": "tags", + "additionalProps": { + "item": { + "type": "string" + } + } + }, + { + "readOnly": true, + "type": "string", + "name": "type" + } + ] + } + } + ] + } + } + } + }, + { + "isError": true, + "body": { + "json": { + "schema": { + "type": "@MgmtErrorFormat" + } + } + } + } + ] + } + } + ], + "outputs": [ + { + "type": "array", + "ref": "$Instance.value", + "clientFlatten": true + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXM=/2022-10-01.xml b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXM=/2022-10-01.xml new file mode 100644 index 00000000000..a87d0deb651 --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXM=/2022-10-01.xml @@ -0,0 +1,385 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL2RlbGV0ZWR3b3Jrc3BhY2Vz/2022-10-01.md b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL2RlbGV0ZWR3b3Jrc3BhY2Vz/2022-10-01.md new file mode 100644 index 00000000000..7bd9114a39d --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL2RlbGV0ZWR3b3Jrc3BhY2Vz/2022-10-01.md @@ -0,0 +1 @@ +Reference [/subscriptions/{}/providers/microsoft.operationalinsights/deletedworkspaces 2022-10-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL2RlbGV0ZWR3b3Jrc3BhY2Vz/2022-10-01.xml) diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXM=/2022-10-01.md b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXM=/2022-10-01.md new file mode 100644 index 00000000000..ae221ee6d23 --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXM=/2022-10-01.md @@ -0,0 +1 @@ +Reference [/subscriptions/{}/providers/microsoft.operationalinsights/workspaces 2022-10-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXM=/2022-10-01.xml) diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30=/2022-10-01.json b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30=/2022-10-01.json new file mode 100644 index 00000000000..1ebf918c1dc --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30=/2022-10-01.json @@ -0,0 +1,3270 @@ +{ + "plane": "mgmt-plane", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}", + "version": "2022-10-01", + "swagger": "mgmt-plane/operationalinsights/ResourceProviders/Microsoft.OperationalInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZWdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uYWxJbnNpZ2h0cy93b3Jrc3BhY2VzL3t3b3Jrc3BhY2VOYW1lfQ==/V/MjAyMi0xMC0wMQ==" + } + ], + "commandGroups": [ + { + "name": "monitor log-analytics workspace", + "commands": [ + { + "name": "show", + "version": "2022-10-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}", + "version": "2022-10-01", + "swagger": "mgmt-plane/operationalinsights/ResourceProviders/Microsoft.OperationalInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZWdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uYWxJbnNpZ2h0cy93b3Jrc3BhY2VzL3t3b3Jrc3BhY2VOYW1lfQ==/V/MjAyMi0xMC0wMQ==" + } + ], + "argGroups": [ + { + "name": "", + "args": [ + { + "type": "ResourceGroupName", + "var": "$Path.resourceGroupName", + "options": [ + "g", + "resource-group" + ], + "required": true, + "idPart": "resource_group" + }, + { + "type": "SubscriptionId", + "var": "$Path.subscriptionId", + "options": [ + "subscription" + ], + "required": true, + "idPart": "subscription" + }, + { + "type": "string", + "var": "$Path.workspaceName", + "options": [ + "n", + "name", + "workspace-name" + ], + "required": true, + "idPart": "name", + "help": { + "short": "Name of the Log Analytics Workspace." + }, + "format": { + "pattern": "^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$", + "maxLength": 63, + "minLength": 4 + } + } + ] + } + ], + "operations": [ + { + "operationId": "Workspaces_Get", + "http": { + "path": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}", + "request": { + "method": "get", + "path": { + "params": [ + { + "type": "string", + "name": "resourceGroupName", + "arg": "$Path.resourceGroupName", + "required": true, + "format": { + "maxLength": 90, + "minLength": 1 + } + }, + { + "type": "string", + "name": "subscriptionId", + "arg": "$Path.subscriptionId", + "required": true, + "format": { + "minLength": 1 + } + }, + { + "type": "string", + "name": "workspaceName", + "arg": "$Path.workspaceName", + "required": true, + "format": { + "pattern": "^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$", + "maxLength": 63, + "minLength": 4 + } + } + ] + }, + "query": { + "consts": [ + { + "readOnly": true, + "const": true, + "default": { + "value": "2022-10-01" + }, + "type": "string", + "name": "api-version", + "required": true, + "format": { + "minLength": 1 + } + } + ] + } + }, + "responses": [ + { + "statusCode": [ + 200 + ], + "body": { + "json": { + "var": "$Instance", + "schema": { + "type": "object", + "props": [ + { + "type": "string", + "name": "etag" + }, + { + "readOnly": true, + "type": "ResourceId", + "name": "id", + "format": { + "template": "/subscriptions/{}/resourcegroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}" + } + }, + { + "type": "IdentityObject", + "name": "identity", + "props": [ + { + "readOnly": true, + "type": "string", + "name": "principalId" + }, + { + "readOnly": true, + "type": "string", + "name": "tenantId" + }, + { + "type": "string", + "name": "type", + "required": true, + "enum": { + "items": [ + { + "value": "None" + }, + { + "value": "SystemAssigned" + }, + { + "value": "UserAssigned" + } + ] + } + }, + { + "type": "object", + "name": "userAssignedIdentities", + "additionalProps": { + "item": { + "type": "object", + "props": [ + { + "readOnly": true, + "type": "string", + "name": "clientId" + }, + { + "readOnly": true, + "type": "string", + "name": "principalId" + } + ] + } + } + } + ] + }, + { + "type": "ResourceLocation", + "name": "location", + "required": true + }, + { + "readOnly": true, + "type": "string", + "name": "name" + }, + { + "type": "object", + "name": "properties", + "props": [ + { + "readOnly": true, + "type": "string", + "name": "createdDate" + }, + { + "readOnly": true, + "type": "string", + "name": "customerId" + }, + { + "type": "string", + "name": "defaultDataCollectionRuleResourceId" + }, + { + "type": "object", + "name": "features", + "props": [ + { + "nullable": true, + "type": "string", + "name": "clusterResourceId" + }, + { + "nullable": true, + "type": "boolean", + "name": "disableLocalAuth" + }, + { + "nullable": true, + "type": "boolean", + "name": "enableDataExport" + }, + { + "nullable": true, + "type": "boolean", + "name": "enableLogAccessUsingOnlyResourcePermissions" + }, + { + "nullable": true, + "type": "boolean", + "name": "immediatePurgeDataOn30Days" + } + ] + }, + { + "type": "boolean", + "name": "forceCmkForQuery" + }, + { + "readOnly": true, + "type": "string", + "name": "modifiedDate" + }, + { + "readOnly": true, + "type": "array", + "name": "privateLinkScopedResources", + "item": { + "readOnly": true, + "type": "object", + "props": [ + { + "readOnly": true, + "type": "string", + "name": "resourceId" + }, + { + "readOnly": true, + "type": "string", + "name": "scopeId" + } + ] + } + }, + { + "readOnly": true, + "type": "string", + "name": "provisioningState", + "enum": { + "items": [ + { + "value": "Canceled" + }, + { + "value": "Creating" + }, + { + "value": "Deleting" + }, + { + "value": "Failed" + }, + { + "value": "ProvisioningAccount" + }, + { + "value": "Succeeded" + }, + { + "value": "Updating" + } + ] + } + }, + { + "default": { + "value": "Enabled" + }, + "type": "string", + "name": "publicNetworkAccessForIngestion", + "enum": { + "items": [ + { + "value": "Disabled" + }, + { + "value": "Enabled" + } + ] + } + }, + { + "default": { + "value": "Enabled" + }, + "type": "string", + "name": "publicNetworkAccessForQuery", + "enum": { + "items": [ + { + "value": "Disabled" + }, + { + "value": "Enabled" + } + ] + } + }, + { + "nullable": true, + "type": "integer32", + "name": "retentionInDays" + }, + { + "type": "object", + "name": "sku", + "props": [ + { + "type": "integer32", + "name": "capacityReservationLevel", + "enum": { + "items": [ + { + "value": 100 + }, + { + "value": 200 + }, + { + "value": 300 + }, + { + "value": 400 + }, + { + "value": 500 + }, + { + "value": 1000 + }, + { + "value": 2000 + }, + { + "value": 5000 + } + ] + } + }, + { + "readOnly": true, + "type": "string", + "name": "lastSkuUpdate" + }, + { + "type": "string", + "name": "name", + "required": true, + "enum": { + "items": [ + { + "value": "CapacityReservation" + }, + { + "value": "Free" + }, + { + "value": "LACluster" + }, + { + "value": "PerGB2018" + }, + { + "value": "PerNode" + }, + { + "value": "Premium" + }, + { + "value": "Standalone" + }, + { + "value": "Standard" + } + ] + } + } + ] + }, + { + "type": "object", + "name": "workspaceCapping", + "props": [ + { + "type": "float64", + "name": "dailyQuotaGb" + }, + { + "readOnly": true, + "type": "string", + "name": "dataIngestionStatus", + "enum": { + "items": [ + { + "value": "ApproachingQuota" + }, + { + "value": "ForceOff" + }, + { + "value": "ForceOn" + }, + { + "value": "OverQuota" + }, + { + "value": "RespectQuota" + }, + { + "value": "SubscriptionSuspended" + } + ] + } + }, + { + "readOnly": true, + "type": "string", + "name": "quotaNextResetTime" + } + ] + } + ], + "clientFlatten": true + }, + { + "readOnly": true, + "type": "object", + "name": "systemData", + "props": [ + { + "readOnly": true, + "type": "dateTime", + "name": "createdAt" + }, + { + "readOnly": true, + "type": "string", + "name": "createdBy" + }, + { + "readOnly": true, + "type": "string", + "name": "createdByType", + "enum": { + "items": [ + { + "value": "Application" + }, + { + "value": "Key" + }, + { + "value": "ManagedIdentity" + }, + { + "value": "User" + } + ] + } + }, + { + "readOnly": true, + "type": "dateTime", + "name": "lastModifiedAt" + }, + { + "readOnly": true, + "type": "string", + "name": "lastModifiedBy" + }, + { + "readOnly": true, + "type": "string", + "name": "lastModifiedByType", + "enum": { + "items": [ + { + "value": "Application" + }, + { + "value": "Key" + }, + { + "value": "ManagedIdentity" + }, + { + "value": "User" + } + ] + } + } + ] + }, + { + "type": "object", + "name": "tags", + "additionalProps": { + "item": { + "type": "string" + } + } + }, + { + "readOnly": true, + "type": "string", + "name": "type" + } + ] + } + } + } + }, + { + "isError": true, + "body": { + "json": { + "schema": { + "type": "@MgmtErrorFormat" + } + } + } + } + ] + } + } + ], + "outputs": [ + { + "type": "object", + "ref": "$Instance", + "clientFlatten": true + } + ] + }, + { + "name": "delete", + "version": "2022-10-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}", + "version": "2022-10-01", + "swagger": "mgmt-plane/operationalinsights/ResourceProviders/Microsoft.OperationalInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZWdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uYWxJbnNpZ2h0cy93b3Jrc3BhY2VzL3t3b3Jrc3BhY2VOYW1lfQ==/V/MjAyMi0xMC0wMQ==" + } + ], + "argGroups": [ + { + "name": "", + "args": [ + { + "type": "ResourceGroupName", + "var": "$Path.resourceGroupName", + "options": [ + "g", + "resource-group" + ], + "required": true, + "idPart": "resource_group" + }, + { + "type": "SubscriptionId", + "var": "$Path.subscriptionId", + "options": [ + "subscription" + ], + "required": true, + "idPart": "subscription" + }, + { + "type": "string", + "var": "$Path.workspaceName", + "options": [ + "n", + "name", + "workspace-name" + ], + "required": true, + "idPart": "name", + "help": { + "short": "Name of the Log Analytics Workspace." + }, + "format": { + "pattern": "^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$", + "maxLength": 63, + "minLength": 4 + } + }, + { + "type": "boolean", + "var": "$Query.force", + "options": [ + "f", + "force" + ], + "help": { + "short": "Deletes the workspace without the recovery option. A workspace that was deleted with this flag cannot be recovered." + } + } + ] + } + ], + "operations": [ + { + "longRunning": { + "finalStateVia": "azure-async-operation" + }, + "operationId": "Workspaces_Delete", + "http": { + "path": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}", + "request": { + "method": "delete", + "path": { + "params": [ + { + "type": "string", + "name": "resourceGroupName", + "arg": "$Path.resourceGroupName", + "required": true, + "format": { + "maxLength": 90, + "minLength": 1 + } + }, + { + "type": "string", + "name": "subscriptionId", + "arg": "$Path.subscriptionId", + "required": true, + "format": { + "minLength": 1 + } + }, + { + "type": "string", + "name": "workspaceName", + "arg": "$Path.workspaceName", + "required": true, + "format": { + "pattern": "^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$", + "maxLength": 63, + "minLength": 4 + } + } + ] + }, + "query": { + "params": [ + { + "type": "boolean", + "name": "force", + "arg": "$Query.force" + } + ], + "consts": [ + { + "readOnly": true, + "const": true, + "default": { + "value": "2022-10-01" + }, + "type": "string", + "name": "api-version", + "required": true, + "format": { + "minLength": 1 + } + } + ] + } + }, + "responses": [ + { + "statusCode": [ + 200 + ] + }, + { + "statusCode": [ + 202 + ] + }, + { + "statusCode": [ + 204 + ] + }, + { + "isError": true, + "body": { + "json": { + "schema": { + "type": "@MgmtErrorFormat" + } + } + } + } + ] + } + } + ], + "confirmation": "Are you sure you want to perform this operation?" + }, + { + "name": "create", + "version": "2022-10-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}", + "version": "2022-10-01", + "swagger": "mgmt-plane/operationalinsights/ResourceProviders/Microsoft.OperationalInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZWdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uYWxJbnNpZ2h0cy93b3Jrc3BhY2VzL3t3b3Jrc3BhY2VOYW1lfQ==/V/MjAyMi0xMC0wMQ==" + } + ], + "argGroups": [ + { + "name": "", + "args": [ + { + "type": "ResourceGroupName", + "var": "$Path.resourceGroupName", + "options": [ + "g", + "resource-group" + ], + "required": true, + "idPart": "resource_group" + }, + { + "type": "SubscriptionId", + "var": "$Path.subscriptionId", + "options": [ + "subscription" + ], + "required": true, + "idPart": "subscription" + }, + { + "type": "string", + "var": "$Path.workspaceName", + "options": [ + "n", + "name", + "workspace-name" + ], + "required": true, + "idPart": "name", + "help": { + "short": "Name of the Log Analytics Workspace." + }, + "format": { + "pattern": "^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$", + "maxLength": 63, + "minLength": 4 + } + } + ] + }, + { + "name": "Identity", + "args": [ + { + "type": "string", + "var": "$parameters.identity.type", + "options": [ + "identity-type" + ], + "group": "Identity", + "help": { + "short": "Type of managed service identity." + }, + "enum": { + "items": [ + { + "name": "None", + "value": "None" + }, + { + "name": "SystemAssigned", + "value": "SystemAssigned" + }, + { + "name": "UserAssigned", + "value": "UserAssigned" + } + ] + } + }, + { + "type": "object", + "var": "$parameters.identity.userAssignedIdentities", + "options": [ + "user-assigned" + ], + "group": "Identity", + "help": { + "short": "The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'." + }, + "additionalProps": { + "item": { + "blank": { + "value": {} + }, + "type": "object" + } + } + } + ] + }, + { + "name": "Parameters", + "args": [ + { + "type": "string", + "var": "$parameters.etag", + "options": [ + "etag" + ], + "hide": true, + "group": "Parameters", + "help": { + "short": "The etag of the workspace." + } + }, + { + "type": "ResourceLocation", + "var": "$parameters.location", + "options": [ + "l", + "location" + ], + "required": true, + "group": "Parameters", + "help": { + "short": "The geo-location where the resource lives" + } + }, + { + "type": "object", + "var": "$parameters.tags", + "options": [ + "tags" + ], + "group": "Parameters", + "help": { + "short": "Resource tags." + }, + "additionalProps": { + "item": { + "type": "string" + } + } + } + ] + }, + { + "name": "Properties", + "args": [ + { + "type": "string", + "var": "$parameters.properties.defaultDataCollectionRuleResourceId", + "options": [ + "data-collection-rule" + ], + "hide": true, + "group": "Properties", + "help": { + "short": "The resource ID of the default Data Collection Rule to use for this workspace. Expected format is - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dcrName}." + } + }, + { + "type": "object", + "var": "$parameters.properties.features", + "options": [ + "features" + ], + "hide": true, + "group": "Properties", + "help": { + "short": "Workspace features." + }, + "args": [ + { + "nullable": true, + "type": "string", + "var": "$parameters.properties.features.clusterResourceId", + "options": [ + "cluster-resource-id" + ], + "help": { + "short": "Dedicated LA cluster resourceId that is linked to the workspaces." + } + }, + { + "nullable": true, + "type": "boolean", + "var": "$parameters.properties.features.disableLocalAuth", + "options": [ + "disable-local-auth" + ], + "help": { + "short": "Disable Non-AAD based Auth." + } + }, + { + "nullable": true, + "type": "boolean", + "var": "$parameters.properties.features.enableDataExport", + "options": [ + "enable-data-export" + ], + "help": { + "short": "Flag that indicate if data should be exported." + } + }, + { + "nullable": true, + "type": "boolean", + "var": "$parameters.properties.features.enableLogAccessUsingOnlyResourcePermissions", + "options": [ + "enable-log-access-using-only-resource-permissions" + ], + "help": { + "short": "Flag that indicate which permission to use - resource or workspace or both." + } + }, + { + "nullable": true, + "type": "boolean", + "var": "$parameters.properties.features.immediatePurgeDataOn30Days", + "options": [ + "immediate-purge-data-on30-days" + ], + "help": { + "short": "Flag that describes if we want to remove the data after 30 days." + } + } + ] + }, + { + "type": "boolean", + "var": "$parameters.properties.forceCmkForQuery", + "options": [ + "force-cmk-for-query" + ], + "hide": true, + "group": "Properties", + "help": { + "short": "Indicates whether customer managed storage is mandatory for query management." + } + }, + { + "type": "string", + "var": "$parameters.properties.publicNetworkAccessForIngestion", + "options": [ + "ingestion-access" + ], + "group": "Properties", + "help": { + "short": "The public network access type to access workspace ingestion." + }, + "default": { + "value": "Enabled" + }, + "enum": { + "items": [ + { + "name": "Disabled", + "value": "Disabled" + }, + { + "name": "Enabled", + "value": "Enabled" + } + ] + } + }, + { + "type": "string", + "var": "$parameters.properties.publicNetworkAccessForQuery", + "options": [ + "query-access" + ], + "group": "Properties", + "help": { + "short": "The public network access type to access workspace query." + }, + "default": { + "value": "Enabled" + }, + "enum": { + "items": [ + { + "name": "Disabled", + "value": "Disabled" + }, + { + "name": "Enabled", + "value": "Enabled" + } + ] + } + }, + { + "nullable": true, + "type": "integer32", + "var": "$parameters.properties.retentionInDays", + "options": [ + "retention-time" + ], + "group": "Properties", + "help": { + "short": "The workspace data retention in days. Allowed values are per pricing plan. See pricing tiers documentation for details." + }, + "default": { + "value": 30 + } + }, + { + "type": "float64", + "var": "$parameters.properties.workspaceCapping.dailyQuotaGb", + "options": [ + "quota" + ], + "group": "Properties", + "help": { + "short": "The workspace daily quota for ingestion in gigabytes. The minimum value is 0.023 and default is -1 which means unlimited." + } + } + ] + }, + { + "name": "Sku", + "args": [ + { + "type": "integer32", + "var": "$parameters.properties.sku.capacityReservationLevel", + "options": [ + "level", + "capacity-reservation-level" + ], + "group": "Sku", + "help": { + "short": "The capacity reservation level for this workspace, when CapacityReservation sku is selected. The maximum value is 1000 and must be in multiples of 100. If you want to increase the limit, please contact LAIngestionRate@microsoft.com." + }, + "enum": { + "items": [ + { + "name": "100", + "value": 100 + }, + { + "name": "1000", + "value": 1000 + }, + { + "name": "200", + "value": 200 + }, + { + "name": "2000", + "value": 2000 + }, + { + "name": "300", + "value": 300 + }, + { + "name": "400", + "value": 400 + }, + { + "name": "500", + "value": 500 + }, + { + "name": "5000", + "value": 5000 + } + ] + } + }, + { + "type": "string", + "var": "$parameters.properties.sku.name", + "options": [ + "sku", + "sku-name" + ], + "group": "Sku", + "help": { + "short": "The name of the SKU." + }, + "default": { + "value": "PerGB2018" + }, + "enum": { + "items": [ + { + "name": "CapacityReservation", + "value": "CapacityReservation" + }, + { + "name": "Free", + "value": "Free" + }, + { + "name": "LACluster", + "value": "LACluster" + }, + { + "name": "PerGB2018", + "value": "PerGB2018" + }, + { + "name": "PerNode", + "value": "PerNode" + }, + { + "name": "Premium", + "value": "Premium" + }, + { + "name": "Standalone", + "value": "Standalone" + }, + { + "name": "Standard", + "value": "Standard" + } + ] + } + } + ] + } + ], + "operations": [ + { + "longRunning": { + "finalStateVia": "azure-async-operation" + }, + "operationId": "Workspaces_CreateOrUpdate", + "http": { + "path": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}", + "request": { + "method": "put", + "path": { + "params": [ + { + "type": "string", + "name": "resourceGroupName", + "arg": "$Path.resourceGroupName", + "required": true, + "format": { + "maxLength": 90, + "minLength": 1 + } + }, + { + "type": "string", + "name": "subscriptionId", + "arg": "$Path.subscriptionId", + "required": true, + "format": { + "minLength": 1 + } + }, + { + "type": "string", + "name": "workspaceName", + "arg": "$Path.workspaceName", + "required": true, + "format": { + "pattern": "^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$", + "maxLength": 63, + "minLength": 4 + } + } + ] + }, + "query": { + "consts": [ + { + "readOnly": true, + "const": true, + "default": { + "value": "2022-10-01" + }, + "type": "string", + "name": "api-version", + "required": true, + "format": { + "minLength": 1 + } + } + ] + }, + "body": { + "json": { + "schema": { + "type": "object", + "name": "parameters", + "required": true, + "props": [ + { + "type": "string", + "name": "etag", + "arg": "$parameters.etag" + }, + { + "type": "IdentityObject", + "name": "identity", + "props": [ + { + "type": "string", + "name": "type", + "arg": "$parameters.identity.type", + "required": true, + "enum": { + "items": [ + { + "value": "None" + }, + { + "value": "SystemAssigned" + }, + { + "value": "UserAssigned" + } + ] + } + }, + { + "type": "object", + "name": "userAssignedIdentities", + "arg": "$parameters.identity.userAssignedIdentities", + "additionalProps": { + "item": { + "type": "object" + } + } + } + ] + }, + { + "type": "ResourceLocation", + "name": "location", + "arg": "$parameters.location", + "required": true + }, + { + "type": "object", + "name": "properties", + "props": [ + { + "type": "string", + "name": "defaultDataCollectionRuleResourceId", + "arg": "$parameters.properties.defaultDataCollectionRuleResourceId" + }, + { + "type": "object", + "name": "features", + "arg": "$parameters.properties.features", + "props": [ + { + "nullable": true, + "type": "string", + "name": "clusterResourceId", + "arg": "$parameters.properties.features.clusterResourceId" + }, + { + "nullable": true, + "type": "boolean", + "name": "disableLocalAuth", + "arg": "$parameters.properties.features.disableLocalAuth" + }, + { + "nullable": true, + "type": "boolean", + "name": "enableDataExport", + "arg": "$parameters.properties.features.enableDataExport" + }, + { + "nullable": true, + "type": "boolean", + "name": "enableLogAccessUsingOnlyResourcePermissions", + "arg": "$parameters.properties.features.enableLogAccessUsingOnlyResourcePermissions" + }, + { + "nullable": true, + "type": "boolean", + "name": "immediatePurgeDataOn30Days", + "arg": "$parameters.properties.features.immediatePurgeDataOn30Days" + } + ] + }, + { + "type": "boolean", + "name": "forceCmkForQuery", + "arg": "$parameters.properties.forceCmkForQuery" + }, + { + "default": { + "value": "Enabled" + }, + "type": "string", + "name": "publicNetworkAccessForIngestion", + "arg": "$parameters.properties.publicNetworkAccessForIngestion", + "enum": { + "items": [ + { + "value": "Disabled" + }, + { + "value": "Enabled" + } + ] + } + }, + { + "default": { + "value": "Enabled" + }, + "type": "string", + "name": "publicNetworkAccessForQuery", + "arg": "$parameters.properties.publicNetworkAccessForQuery", + "enum": { + "items": [ + { + "value": "Disabled" + }, + { + "value": "Enabled" + } + ] + } + }, + { + "nullable": true, + "type": "integer32", + "name": "retentionInDays", + "arg": "$parameters.properties.retentionInDays" + }, + { + "type": "object", + "name": "sku", + "props": [ + { + "type": "integer32", + "name": "capacityReservationLevel", + "arg": "$parameters.properties.sku.capacityReservationLevel", + "enum": { + "items": [ + { + "value": 100 + }, + { + "value": 200 + }, + { + "value": 300 + }, + { + "value": 400 + }, + { + "value": 500 + }, + { + "value": 1000 + }, + { + "value": 2000 + }, + { + "value": 5000 + } + ] + } + }, + { + "type": "string", + "name": "name", + "arg": "$parameters.properties.sku.name", + "required": true, + "enum": { + "items": [ + { + "value": "CapacityReservation" + }, + { + "value": "Free" + }, + { + "value": "LACluster" + }, + { + "value": "PerGB2018" + }, + { + "value": "PerNode" + }, + { + "value": "Premium" + }, + { + "value": "Standalone" + }, + { + "value": "Standard" + } + ] + } + } + ] + }, + { + "type": "object", + "name": "workspaceCapping", + "props": [ + { + "type": "float64", + "name": "dailyQuotaGb", + "arg": "$parameters.properties.workspaceCapping.dailyQuotaGb" + } + ] + } + ], + "clientFlatten": true + }, + { + "type": "object", + "name": "tags", + "arg": "$parameters.tags", + "additionalProps": { + "item": { + "type": "string" + } + } + } + ], + "clientFlatten": true + } + } + } + }, + "responses": [ + { + "statusCode": [ + 200, + 201 + ], + "body": { + "json": { + "var": "$Instance", + "schema": { + "type": "object", + "props": [ + { + "type": "string", + "name": "etag" + }, + { + "readOnly": true, + "type": "ResourceId", + "name": "id", + "format": { + "template": "/subscriptions/{}/resourcegroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}" + } + }, + { + "type": "IdentityObject", + "name": "identity", + "props": [ + { + "readOnly": true, + "type": "string", + "name": "principalId" + }, + { + "readOnly": true, + "type": "string", + "name": "tenantId" + }, + { + "type": "string", + "name": "type", + "required": true, + "enum": { + "items": [ + { + "value": "None" + }, + { + "value": "SystemAssigned" + }, + { + "value": "UserAssigned" + } + ] + } + }, + { + "type": "object", + "name": "userAssignedIdentities", + "additionalProps": { + "item": { + "type": "object", + "props": [ + { + "readOnly": true, + "type": "string", + "name": "clientId" + }, + { + "readOnly": true, + "type": "string", + "name": "principalId" + } + ] + } + } + } + ] + }, + { + "type": "ResourceLocation", + "name": "location", + "required": true + }, + { + "readOnly": true, + "type": "string", + "name": "name" + }, + { + "type": "object", + "name": "properties", + "props": [ + { + "readOnly": true, + "type": "string", + "name": "createdDate" + }, + { + "readOnly": true, + "type": "string", + "name": "customerId" + }, + { + "type": "string", + "name": "defaultDataCollectionRuleResourceId" + }, + { + "type": "object", + "name": "features", + "props": [ + { + "nullable": true, + "type": "string", + "name": "clusterResourceId" + }, + { + "nullable": true, + "type": "boolean", + "name": "disableLocalAuth" + }, + { + "nullable": true, + "type": "boolean", + "name": "enableDataExport" + }, + { + "nullable": true, + "type": "boolean", + "name": "enableLogAccessUsingOnlyResourcePermissions" + }, + { + "nullable": true, + "type": "boolean", + "name": "immediatePurgeDataOn30Days" + } + ] + }, + { + "type": "boolean", + "name": "forceCmkForQuery" + }, + { + "readOnly": true, + "type": "string", + "name": "modifiedDate" + }, + { + "readOnly": true, + "type": "array", + "name": "privateLinkScopedResources", + "item": { + "readOnly": true, + "type": "object", + "props": [ + { + "readOnly": true, + "type": "string", + "name": "resourceId" + }, + { + "readOnly": true, + "type": "string", + "name": "scopeId" + } + ] + } + }, + { + "readOnly": true, + "type": "string", + "name": "provisioningState", + "enum": { + "items": [ + { + "value": "Canceled" + }, + { + "value": "Creating" + }, + { + "value": "Deleting" + }, + { + "value": "Failed" + }, + { + "value": "ProvisioningAccount" + }, + { + "value": "Succeeded" + }, + { + "value": "Updating" + } + ] + } + }, + { + "default": { + "value": "Enabled" + }, + "type": "string", + "name": "publicNetworkAccessForIngestion", + "enum": { + "items": [ + { + "value": "Disabled" + }, + { + "value": "Enabled" + } + ] + } + }, + { + "default": { + "value": "Enabled" + }, + "type": "string", + "name": "publicNetworkAccessForQuery", + "enum": { + "items": [ + { + "value": "Disabled" + }, + { + "value": "Enabled" + } + ] + } + }, + { + "nullable": true, + "type": "integer32", + "name": "retentionInDays" + }, + { + "type": "object", + "name": "sku", + "props": [ + { + "type": "integer32", + "name": "capacityReservationLevel", + "enum": { + "items": [ + { + "value": 100 + }, + { + "value": 200 + }, + { + "value": 300 + }, + { + "value": 400 + }, + { + "value": 500 + }, + { + "value": 1000 + }, + { + "value": 2000 + }, + { + "value": 5000 + } + ] + } + }, + { + "readOnly": true, + "type": "string", + "name": "lastSkuUpdate" + }, + { + "type": "string", + "name": "name", + "required": true, + "enum": { + "items": [ + { + "value": "CapacityReservation" + }, + { + "value": "Free" + }, + { + "value": "LACluster" + }, + { + "value": "PerGB2018" + }, + { + "value": "PerNode" + }, + { + "value": "Premium" + }, + { + "value": "Standalone" + }, + { + "value": "Standard" + } + ] + } + } + ] + }, + { + "type": "object", + "name": "workspaceCapping", + "props": [ + { + "type": "float64", + "name": "dailyQuotaGb" + }, + { + "readOnly": true, + "type": "string", + "name": "dataIngestionStatus", + "enum": { + "items": [ + { + "value": "ApproachingQuota" + }, + { + "value": "ForceOff" + }, + { + "value": "ForceOn" + }, + { + "value": "OverQuota" + }, + { + "value": "RespectQuota" + }, + { + "value": "SubscriptionSuspended" + } + ] + } + }, + { + "readOnly": true, + "type": "string", + "name": "quotaNextResetTime" + } + ] + } + ], + "clientFlatten": true + }, + { + "readOnly": true, + "type": "object", + "name": "systemData", + "props": [ + { + "readOnly": true, + "type": "dateTime", + "name": "createdAt" + }, + { + "readOnly": true, + "type": "string", + "name": "createdBy" + }, + { + "readOnly": true, + "type": "string", + "name": "createdByType", + "enum": { + "items": [ + { + "value": "Application" + }, + { + "value": "Key" + }, + { + "value": "ManagedIdentity" + }, + { + "value": "User" + } + ] + } + }, + { + "readOnly": true, + "type": "dateTime", + "name": "lastModifiedAt" + }, + { + "readOnly": true, + "type": "string", + "name": "lastModifiedBy" + }, + { + "readOnly": true, + "type": "string", + "name": "lastModifiedByType", + "enum": { + "items": [ + { + "value": "Application" + }, + { + "value": "Key" + }, + { + "value": "ManagedIdentity" + }, + { + "value": "User" + } + ] + } + } + ] + }, + { + "type": "object", + "name": "tags", + "additionalProps": { + "item": { + "type": "string" + } + } + }, + { + "readOnly": true, + "type": "string", + "name": "type" + } + ] + } + } + } + }, + { + "statusCode": [ + 202 + ] + }, + { + "isError": true, + "body": { + "json": { + "schema": { + "type": "@MgmtErrorFormat" + } + } + } + } + ] + } + } + ], + "outputs": [ + { + "type": "object", + "ref": "$Instance", + "clientFlatten": true + } + ] + }, + { + "name": "update", + "version": "2022-10-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}", + "version": "2022-10-01", + "swagger": "mgmt-plane/operationalinsights/ResourceProviders/Microsoft.OperationalInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZWdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uYWxJbnNpZ2h0cy93b3Jrc3BhY2VzL3t3b3Jrc3BhY2VOYW1lfQ==/V/MjAyMi0xMC0wMQ==" + } + ], + "argGroups": [ + { + "name": "", + "args": [ + { + "type": "ResourceGroupName", + "var": "$Path.resourceGroupName", + "options": [ + "g", + "resource-group" + ], + "required": true, + "idPart": "resource_group" + }, + { + "type": "SubscriptionId", + "var": "$Path.subscriptionId", + "options": [ + "subscription" + ], + "required": true, + "idPart": "subscription" + }, + { + "type": "string", + "var": "$Path.workspaceName", + "options": [ + "n", + "name", + "workspace-name" + ], + "required": true, + "idPart": "name", + "help": { + "short": "Name of the Log Analytics Workspace." + }, + "format": { + "pattern": "^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$", + "maxLength": 63, + "minLength": 4 + } + } + ] + }, + { + "name": "Identity", + "args": [ + { + "type": "string", + "var": "$parameters.identity.type", + "options": [ + "identity-type" + ], + "group": "Identity", + "help": { + "short": "Type of managed service identity." + }, + "enum": { + "items": [ + { + "name": "None", + "value": "None" + }, + { + "name": "SystemAssigned", + "value": "SystemAssigned" + }, + { + "name": "UserAssigned", + "value": "UserAssigned" + } + ] + } + }, + { + "nullable": true, + "type": "object", + "var": "$parameters.identity.userAssignedIdentities", + "options": [ + "user-assigned" + ], + "group": "Identity", + "help": { + "short": "The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'." + }, + "additionalProps": { + "item": { + "nullable": true, + "blank": { + "value": {} + }, + "type": "object" + } + } + } + ] + }, + { + "name": "Parameters", + "args": [ + { + "nullable": true, + "type": "string", + "var": "$parameters.etag", + "options": [ + "etag" + ], + "hide": true, + "group": "Parameters", + "help": { + "short": "The etag of the workspace." + } + }, + { + "nullable": true, + "type": "object", + "var": "$parameters.tags", + "options": [ + "tags" + ], + "group": "Parameters", + "help": { + "short": "Resource tags." + }, + "additionalProps": { + "item": { + "nullable": true, + "type": "string" + } + } + } + ] + }, + { + "name": "Properties", + "args": [ + { + "nullable": true, + "type": "string", + "var": "$parameters.properties.defaultDataCollectionRuleResourceId", + "options": [ + "data-collection-rule" + ], + "group": "Properties", + "help": { + "short": "The resource ID of the default Data Collection Rule to use for this workspace. Expected format is - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/dataCollectionRules/{dcrName}." + } + }, + { + "nullable": true, + "type": "object", + "var": "$parameters.properties.features", + "options": [ + "features" + ], + "hide": true, + "group": "Properties", + "help": { + "short": "Workspace features." + }, + "args": [ + { + "nullable": true, + "type": "string", + "var": "$parameters.properties.features.clusterResourceId", + "options": [ + "cluster-resource-id" + ], + "help": { + "short": "Dedicated LA cluster resourceId that is linked to the workspaces." + } + }, + { + "nullable": true, + "type": "boolean", + "var": "$parameters.properties.features.disableLocalAuth", + "options": [ + "disable-local-auth" + ], + "help": { + "short": "Disable Non-AAD based Auth." + } + }, + { + "nullable": true, + "type": "boolean", + "var": "$parameters.properties.features.enableDataExport", + "options": [ + "enable-data-export" + ], + "help": { + "short": "Flag that indicate if data should be exported." + } + }, + { + "nullable": true, + "type": "boolean", + "var": "$parameters.properties.features.enableLogAccessUsingOnlyResourcePermissions", + "options": [ + "enable-log-access-using-only-resource-permissions" + ], + "help": { + "short": "Flag that indicate which permission to use - resource or workspace or both." + } + }, + { + "nullable": true, + "type": "boolean", + "var": "$parameters.properties.features.immediatePurgeDataOn30Days", + "options": [ + "immediate-purge-data-on30-days" + ], + "help": { + "short": "Flag that describes if we want to remove the data after 30 days." + } + } + ] + }, + { + "nullable": true, + "type": "boolean", + "var": "$parameters.properties.forceCmkForQuery", + "options": [ + "force-cmk-for-query" + ], + "hide": true, + "group": "Properties", + "help": { + "short": "Indicates whether customer managed storage is mandatory for query management." + } + }, + { + "nullable": true, + "type": "string", + "var": "$parameters.properties.publicNetworkAccessForIngestion", + "options": [ + "ingestion-access" + ], + "group": "Properties", + "help": { + "short": "The public network access type to access workspace ingestion." + }, + "enum": { + "items": [ + { + "name": "Disabled", + "value": "Disabled" + }, + { + "name": "Enabled", + "value": "Enabled" + } + ] + } + }, + { + "nullable": true, + "type": "string", + "var": "$parameters.properties.publicNetworkAccessForQuery", + "options": [ + "query-access" + ], + "group": "Properties", + "help": { + "short": "The public network access type to access workspace query." + }, + "enum": { + "items": [ + { + "name": "Disabled", + "value": "Disabled" + }, + { + "name": "Enabled", + "value": "Enabled" + } + ] + } + }, + { + "nullable": true, + "type": "integer32", + "var": "$parameters.properties.retentionInDays", + "options": [ + "retention-time" + ], + "group": "Properties", + "help": { + "short": "The workspace data retention in days. Allowed values are per pricing plan. See pricing tiers documentation for details." + } + }, + { + "nullable": true, + "type": "float64", + "var": "$parameters.properties.workspaceCapping.dailyQuotaGb", + "options": [ + "quota" + ], + "group": "Properties", + "help": { + "short": "The workspace daily quota for ingestion in gigabytes. The minimum value is 0.023 and default is -1 which means unlimited." + } + } + ] + }, + { + "name": "Sku", + "args": [ + { + "nullable": true, + "type": "integer32", + "var": "$parameters.properties.sku.capacityReservationLevel", + "options": [ + "level", + "capacity-reservation-level" + ], + "group": "Sku", + "help": { + "short": "The capacity reservation level for this workspace, when CapacityReservation sku is selected. The maximum value is 1000 and must be in multiples of 100. If you want to increase the limit, please contact LAIngestionRate@microsoft.com." + }, + "enum": { + "items": [ + { + "name": "100", + "value": 100 + }, + { + "name": "1000", + "value": 1000 + }, + { + "name": "200", + "value": 200 + }, + { + "name": "2000", + "value": 2000 + }, + { + "name": "300", + "value": 300 + }, + { + "name": "400", + "value": 400 + }, + { + "name": "500", + "value": 500 + }, + { + "name": "5000", + "value": 5000 + } + ] + } + }, + { + "type": "string", + "var": "$parameters.properties.sku.name", + "options": [ + "sku", + "sku-name" + ], + "hide": true, + "group": "Sku", + "help": { + "short": "The name of the SKU." + }, + "enum": { + "items": [ + { + "name": "CapacityReservation", + "value": "CapacityReservation" + }, + { + "name": "Free", + "value": "Free" + }, + { + "name": "LACluster", + "value": "LACluster" + }, + { + "name": "PerGB2018", + "value": "PerGB2018" + }, + { + "name": "PerNode", + "value": "PerNode" + }, + { + "name": "Premium", + "value": "Premium" + }, + { + "name": "Standalone", + "value": "Standalone" + }, + { + "name": "Standard", + "value": "Standard" + } + ] + } + } + ] + } + ], + "operations": [ + { + "operationId": "Workspaces_Get", + "http": { + "path": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}", + "request": { + "method": "get", + "path": { + "params": [ + { + "type": "string", + "name": "resourceGroupName", + "arg": "$Path.resourceGroupName", + "required": true, + "format": { + "maxLength": 90, + "minLength": 1 + } + }, + { + "type": "string", + "name": "subscriptionId", + "arg": "$Path.subscriptionId", + "required": true, + "format": { + "minLength": 1 + } + }, + { + "type": "string", + "name": "workspaceName", + "arg": "$Path.workspaceName", + "required": true, + "format": { + "pattern": "^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$", + "maxLength": 63, + "minLength": 4 + } + } + ] + }, + "query": { + "consts": [ + { + "readOnly": true, + "const": true, + "default": { + "value": "2022-10-01" + }, + "type": "string", + "name": "api-version", + "required": true, + "format": { + "minLength": 1 + } + } + ] + } + }, + "responses": [ + { + "statusCode": [ + 200 + ], + "body": { + "json": { + "var": "$Instance", + "schema": { + "type": "object", + "props": [ + { + "type": "string", + "name": "etag" + }, + { + "readOnly": true, + "type": "ResourceId", + "name": "id", + "format": { + "template": "/subscriptions/{}/resourcegroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}" + } + }, + { + "type": "IdentityObject", + "name": "identity", + "props": [ + { + "readOnly": true, + "type": "string", + "name": "principalId" + }, + { + "readOnly": true, + "type": "string", + "name": "tenantId" + }, + { + "type": "string", + "name": "type", + "required": true, + "enum": { + "items": [ + { + "value": "None" + }, + { + "value": "SystemAssigned" + }, + { + "value": "UserAssigned" + } + ] + } + }, + { + "type": "object", + "name": "userAssignedIdentities", + "additionalProps": { + "item": { + "type": "object", + "props": [ + { + "readOnly": true, + "type": "string", + "name": "clientId" + }, + { + "readOnly": true, + "type": "string", + "name": "principalId" + } + ] + } + } + } + ] + }, + { + "type": "ResourceLocation", + "name": "location", + "required": true + }, + { + "readOnly": true, + "type": "string", + "name": "name" + }, + { + "type": "object", + "name": "properties", + "props": [ + { + "readOnly": true, + "type": "string", + "name": "createdDate" + }, + { + "readOnly": true, + "type": "string", + "name": "customerId" + }, + { + "type": "string", + "name": "defaultDataCollectionRuleResourceId" + }, + { + "type": "object", + "name": "features", + "props": [ + { + "nullable": true, + "type": "string", + "name": "clusterResourceId" + }, + { + "nullable": true, + "type": "boolean", + "name": "disableLocalAuth" + }, + { + "nullable": true, + "type": "boolean", + "name": "enableDataExport" + }, + { + "nullable": true, + "type": "boolean", + "name": "enableLogAccessUsingOnlyResourcePermissions" + }, + { + "nullable": true, + "type": "boolean", + "name": "immediatePurgeDataOn30Days" + } + ] + }, + { + "type": "boolean", + "name": "forceCmkForQuery" + }, + { + "readOnly": true, + "type": "string", + "name": "modifiedDate" + }, + { + "readOnly": true, + "type": "array", + "name": "privateLinkScopedResources", + "item": { + "readOnly": true, + "type": "object", + "props": [ + { + "readOnly": true, + "type": "string", + "name": "resourceId" + }, + { + "readOnly": true, + "type": "string", + "name": "scopeId" + } + ] + } + }, + { + "readOnly": true, + "type": "string", + "name": "provisioningState", + "enum": { + "items": [ + { + "value": "Canceled" + }, + { + "value": "Creating" + }, + { + "value": "Deleting" + }, + { + "value": "Failed" + }, + { + "value": "ProvisioningAccount" + }, + { + "value": "Succeeded" + }, + { + "value": "Updating" + } + ] + } + }, + { + "default": { + "value": "Enabled" + }, + "type": "string", + "name": "publicNetworkAccessForIngestion", + "enum": { + "items": [ + { + "value": "Disabled" + }, + { + "value": "Enabled" + } + ] + } + }, + { + "default": { + "value": "Enabled" + }, + "type": "string", + "name": "publicNetworkAccessForQuery", + "enum": { + "items": [ + { + "value": "Disabled" + }, + { + "value": "Enabled" + } + ] + } + }, + { + "nullable": true, + "type": "integer32", + "name": "retentionInDays" + }, + { + "type": "object", + "name": "sku", + "props": [ + { + "type": "integer32", + "name": "capacityReservationLevel", + "enum": { + "items": [ + { + "value": 100 + }, + { + "value": 200 + }, + { + "value": 300 + }, + { + "value": 400 + }, + { + "value": 500 + }, + { + "value": 1000 + }, + { + "value": 2000 + }, + { + "value": 5000 + } + ] + } + }, + { + "readOnly": true, + "type": "string", + "name": "lastSkuUpdate" + }, + { + "type": "string", + "name": "name", + "required": true, + "enum": { + "items": [ + { + "value": "CapacityReservation" + }, + { + "value": "Free" + }, + { + "value": "LACluster" + }, + { + "value": "PerGB2018" + }, + { + "value": "PerNode" + }, + { + "value": "Premium" + }, + { + "value": "Standalone" + }, + { + "value": "Standard" + } + ] + } + } + ] + }, + { + "type": "object", + "name": "workspaceCapping", + "props": [ + { + "type": "float64", + "name": "dailyQuotaGb" + }, + { + "readOnly": true, + "type": "string", + "name": "dataIngestionStatus", + "enum": { + "items": [ + { + "value": "ApproachingQuota" + }, + { + "value": "ForceOff" + }, + { + "value": "ForceOn" + }, + { + "value": "OverQuota" + }, + { + "value": "RespectQuota" + }, + { + "value": "SubscriptionSuspended" + } + ] + } + }, + { + "readOnly": true, + "type": "string", + "name": "quotaNextResetTime" + } + ] + } + ], + "clientFlatten": true + }, + { + "readOnly": true, + "type": "object", + "name": "systemData", + "props": [ + { + "readOnly": true, + "type": "dateTime", + "name": "createdAt" + }, + { + "readOnly": true, + "type": "string", + "name": "createdBy" + }, + { + "readOnly": true, + "type": "string", + "name": "createdByType", + "enum": { + "items": [ + { + "value": "Application" + }, + { + "value": "Key" + }, + { + "value": "ManagedIdentity" + }, + { + "value": "User" + } + ] + } + }, + { + "readOnly": true, + "type": "dateTime", + "name": "lastModifiedAt" + }, + { + "readOnly": true, + "type": "string", + "name": "lastModifiedBy" + }, + { + "readOnly": true, + "type": "string", + "name": "lastModifiedByType", + "enum": { + "items": [ + { + "value": "Application" + }, + { + "value": "Key" + }, + { + "value": "ManagedIdentity" + }, + { + "value": "User" + } + ] + } + } + ] + }, + { + "type": "object", + "name": "tags", + "additionalProps": { + "item": { + "type": "string" + } + } + }, + { + "readOnly": true, + "type": "string", + "name": "type" + } + ], + "cls": "Workspace_read" + } + } + } + }, + { + "isError": true, + "body": { + "json": { + "schema": { + "type": "@MgmtErrorFormat" + } + } + } + } + ] + } + }, + { + "instanceUpdate": { + "instance": "$Instance", + "json": { + "schema": { + "type": "object", + "name": "parameters", + "required": true, + "props": [ + { + "type": "string", + "name": "etag", + "arg": "$parameters.etag" + }, + { + "type": "IdentityObject", + "name": "identity", + "props": [ + { + "type": "string", + "name": "type", + "arg": "$parameters.identity.type", + "required": true, + "enum": { + "items": [ + { + "value": "None" + }, + { + "value": "SystemAssigned" + }, + { + "value": "UserAssigned" + } + ] + } + }, + { + "type": "object", + "name": "userAssignedIdentities", + "arg": "$parameters.identity.userAssignedIdentities", + "additionalProps": { + "item": { + "type": "object" + } + } + } + ] + }, + { + "type": "object", + "name": "properties", + "props": [ + { + "type": "string", + "name": "defaultDataCollectionRuleResourceId", + "arg": "$parameters.properties.defaultDataCollectionRuleResourceId" + }, + { + "type": "object", + "name": "features", + "arg": "$parameters.properties.features", + "props": [ + { + "nullable": true, + "type": "string", + "name": "clusterResourceId", + "arg": "$parameters.properties.features.clusterResourceId" + }, + { + "nullable": true, + "type": "boolean", + "name": "disableLocalAuth", + "arg": "$parameters.properties.features.disableLocalAuth" + }, + { + "nullable": true, + "type": "boolean", + "name": "enableDataExport", + "arg": "$parameters.properties.features.enableDataExport" + }, + { + "nullable": true, + "type": "boolean", + "name": "enableLogAccessUsingOnlyResourcePermissions", + "arg": "$parameters.properties.features.enableLogAccessUsingOnlyResourcePermissions" + }, + { + "nullable": true, + "type": "boolean", + "name": "immediatePurgeDataOn30Days", + "arg": "$parameters.properties.features.immediatePurgeDataOn30Days" + } + ] + }, + { + "type": "boolean", + "name": "forceCmkForQuery", + "arg": "$parameters.properties.forceCmkForQuery" + }, + { + "default": { + "value": "Enabled" + }, + "type": "string", + "name": "publicNetworkAccessForIngestion", + "arg": "$parameters.properties.publicNetworkAccessForIngestion", + "enum": { + "items": [ + { + "value": "Disabled" + }, + { + "value": "Enabled" + } + ] + } + }, + { + "default": { + "value": "Enabled" + }, + "type": "string", + "name": "publicNetworkAccessForQuery", + "arg": "$parameters.properties.publicNetworkAccessForQuery", + "enum": { + "items": [ + { + "value": "Disabled" + }, + { + "value": "Enabled" + } + ] + } + }, + { + "nullable": true, + "type": "integer32", + "name": "retentionInDays", + "arg": "$parameters.properties.retentionInDays" + }, + { + "type": "object", + "name": "sku", + "props": [ + { + "type": "integer32", + "name": "capacityReservationLevel", + "arg": "$parameters.properties.sku.capacityReservationLevel", + "enum": { + "items": [ + { + "value": 100 + }, + { + "value": 200 + }, + { + "value": 300 + }, + { + "value": 400 + }, + { + "value": 500 + }, + { + "value": 1000 + }, + { + "value": 2000 + }, + { + "value": 5000 + } + ] + } + }, + { + "type": "string", + "name": "name", + "arg": "$parameters.properties.sku.name", + "required": true, + "enum": { + "items": [ + { + "value": "CapacityReservation" + }, + { + "value": "Free" + }, + { + "value": "LACluster" + }, + { + "value": "PerGB2018" + }, + { + "value": "PerNode" + }, + { + "value": "Premium" + }, + { + "value": "Standalone" + }, + { + "value": "Standard" + } + ] + } + } + ] + }, + { + "type": "object", + "name": "workspaceCapping", + "props": [ + { + "type": "float64", + "name": "dailyQuotaGb", + "arg": "$parameters.properties.workspaceCapping.dailyQuotaGb" + } + ] + } + ], + "clientFlatten": true + }, + { + "type": "object", + "name": "tags", + "arg": "$parameters.tags", + "additionalProps": { + "item": { + "type": "string" + } + } + } + ], + "clientFlatten": true + } + } + } + }, + { + "longRunning": { + "finalStateVia": "azure-async-operation" + }, + "operationId": "Workspaces_CreateOrUpdate", + "http": { + "path": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}", + "request": { + "method": "put", + "path": { + "params": [ + { + "type": "string", + "name": "resourceGroupName", + "arg": "$Path.resourceGroupName", + "required": true, + "format": { + "maxLength": 90, + "minLength": 1 + } + }, + { + "type": "string", + "name": "subscriptionId", + "arg": "$Path.subscriptionId", + "required": true, + "format": { + "minLength": 1 + } + }, + { + "type": "string", + "name": "workspaceName", + "arg": "$Path.workspaceName", + "required": true, + "format": { + "pattern": "^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$", + "maxLength": 63, + "minLength": 4 + } + } + ] + }, + "query": { + "consts": [ + { + "readOnly": true, + "const": true, + "default": { + "value": "2022-10-01" + }, + "type": "string", + "name": "api-version", + "required": true, + "format": { + "minLength": 1 + } + } + ] + }, + "body": { + "json": { + "ref": "$Instance" + } + } + }, + "responses": [ + { + "statusCode": [ + 200, + 201 + ], + "body": { + "json": { + "var": "$Instance", + "schema": { + "type": "@Workspace_read" + } + } + } + }, + { + "statusCode": [ + 202 + ] + }, + { + "isError": true, + "body": { + "json": { + "schema": { + "type": "@MgmtErrorFormat" + } + } + } + } + ] + } + } + ], + "outputs": [ + { + "type": "object", + "ref": "$Instance", + "clientFlatten": true + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30=/2022-10-01.xml b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30=/2022-10-01.xml new file mode 100644 index 00000000000..135dbdf8ebf --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30=/2022-10-01.xml @@ -0,0 +1,1047 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vdGFibGVz/2022-10-01.json b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vdGFibGVz/2022-10-01.json new file mode 100644 index 00000000000..e45ff46c594 --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vdGFibGVz/2022-10-01.json @@ -0,0 +1,614 @@ +{ + "plane": "mgmt-plane", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}/tables", + "version": "2022-10-01", + "swagger": "mgmt-plane/operationalinsights/ResourceProviders/Microsoft.OperationalInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uYWxJbnNpZ2h0cy93b3Jrc3BhY2VzL3t3b3Jrc3BhY2VOYW1lfS90YWJsZXM=/V/MjAyMi0xMC0wMQ==" + } + ], + "commandGroups": [ + { + "name": "monitor log-analytics workspace table", + "commands": [ + { + "name": "list", + "version": "2022-10-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}/tables", + "version": "2022-10-01", + "swagger": "mgmt-plane/operationalinsights/ResourceProviders/Microsoft.OperationalInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uYWxJbnNpZ2h0cy93b3Jrc3BhY2VzL3t3b3Jrc3BhY2VOYW1lfS90YWJsZXM=/V/MjAyMi0xMC0wMQ==" + } + ], + "argGroups": [ + { + "name": "", + "args": [ + { + "type": "ResourceGroupName", + "var": "$Path.resourceGroupName", + "options": [ + "g", + "resource-group" + ], + "required": true + }, + { + "type": "SubscriptionId", + "var": "$Path.subscriptionId", + "options": [ + "subscription" + ], + "required": true + }, + { + "type": "string", + "var": "$Path.workspaceName", + "options": [ + "workspace-name" + ], + "required": true, + "help": { + "short": "The name of the workspace." + }, + "format": { + "pattern": "^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$", + "maxLength": 63, + "minLength": 4 + } + } + ] + } + ], + "operations": [ + { + "operationId": "Tables_ListByWorkspace", + "http": { + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables", + "request": { + "method": "get", + "path": { + "params": [ + { + "type": "string", + "name": "resourceGroupName", + "arg": "$Path.resourceGroupName", + "required": true, + "format": { + "maxLength": 90, + "minLength": 1 + } + }, + { + "type": "string", + "name": "subscriptionId", + "arg": "$Path.subscriptionId", + "required": true, + "format": { + "minLength": 1 + } + }, + { + "type": "string", + "name": "workspaceName", + "arg": "$Path.workspaceName", + "required": true, + "format": { + "pattern": "^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$", + "maxLength": 63, + "minLength": 4 + } + } + ] + }, + "query": { + "consts": [ + { + "readOnly": true, + "const": true, + "default": { + "value": "2022-10-01" + }, + "type": "string", + "name": "api-version", + "required": true, + "format": { + "minLength": 1 + } + } + ] + } + }, + "responses": [ + { + "statusCode": [ + 200 + ], + "body": { + "json": { + "var": "$Instance", + "schema": { + "type": "object", + "props": [ + { + "type": "array", + "name": "value", + "item": { + "type": "object", + "props": [ + { + "readOnly": true, + "type": "ResourceId", + "name": "id", + "format": { + "template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/tables/{}" + } + }, + { + "readOnly": true, + "type": "string", + "name": "name" + }, + { + "type": "object", + "name": "properties", + "props": [ + { + "readOnly": true, + "type": "integer32", + "name": "archiveRetentionInDays" + }, + { + "readOnly": true, + "type": "string", + "name": "lastPlanModifiedDate" + }, + { + "type": "string", + "name": "plan", + "enum": { + "items": [ + { + "value": "Analytics" + }, + { + "value": "Basic" + } + ] + } + }, + { + "readOnly": true, + "type": "string", + "name": "provisioningState", + "enum": { + "items": [ + { + "value": "InProgress" + }, + { + "value": "Succeeded" + }, + { + "value": "Updating" + } + ] + } + }, + { + "type": "object", + "name": "restoredLogs", + "props": [ + { + "readOnly": true, + "type": "string", + "name": "azureAsyncOperationId" + }, + { + "type": "dateTime", + "name": "endRestoreTime" + }, + { + "type": "string", + "name": "sourceTable" + }, + { + "type": "dateTime", + "name": "startRestoreTime" + } + ] + }, + { + "readOnly": true, + "type": "object", + "name": "resultStatistics", + "props": [ + { + "readOnly": true, + "type": "integer32", + "name": "ingestedRecords" + }, + { + "readOnly": true, + "type": "float", + "name": "progress", + "format": { + "multipleOf": 0.01 + } + }, + { + "readOnly": true, + "type": "float", + "name": "scannedGb", + "format": { + "multipleOf": 0.01 + } + } + ] + }, + { + "type": "integer32", + "name": "retentionInDays", + "format": { + "maximum": 730, + "minimum": 4 + } + }, + { + "readOnly": true, + "type": "boolean", + "name": "retentionInDaysAsDefault" + }, + { + "type": "object", + "name": "schema", + "props": [ + { + "readOnly": true, + "type": "array", + "name": "categories", + "item": { + "readOnly": true, + "type": "string" + } + }, + { + "type": "array", + "name": "columns", + "item": { + "type": "object", + "props": [ + { + "type": "string", + "name": "dataTypeHint", + "enum": { + "items": [ + { + "value": "armPath" + }, + { + "value": "guid" + }, + { + "value": "ip" + }, + { + "value": "uri" + } + ] + } + }, + { + "type": "string", + "name": "description" + }, + { + "type": "string", + "name": "displayName" + }, + { + "readOnly": true, + "type": "boolean", + "name": "isDefaultDisplay" + }, + { + "readOnly": true, + "type": "boolean", + "name": "isHidden" + }, + { + "type": "string", + "name": "name" + }, + { + "type": "string", + "name": "type", + "enum": { + "items": [ + { + "value": "boolean" + }, + { + "value": "dateTime" + }, + { + "value": "dynamic" + }, + { + "value": "guid" + }, + { + "value": "int" + }, + { + "value": "long" + }, + { + "value": "real" + }, + { + "value": "string" + } + ] + } + } + ], + "cls": "Column_read" + } + }, + { + "type": "string", + "name": "description" + }, + { + "type": "string", + "name": "displayName" + }, + { + "readOnly": true, + "type": "array", + "name": "labels", + "item": { + "readOnly": true, + "type": "string" + } + }, + { + "type": "string", + "name": "name" + }, + { + "readOnly": true, + "type": "array", + "name": "solutions", + "item": { + "readOnly": true, + "type": "string" + } + }, + { + "readOnly": true, + "type": "string", + "name": "source", + "enum": { + "items": [ + { + "value": "customer" + }, + { + "value": "microsoft" + } + ] + } + }, + { + "readOnly": true, + "type": "array<@Column_read>", + "name": "standardColumns", + "item": { + "readOnly": true, + "type": "@Column_read" + } + }, + { + "readOnly": true, + "type": "string", + "name": "tableSubType", + "enum": { + "items": [ + { + "value": "Any" + }, + { + "value": "Classic" + }, + { + "value": "DataCollectionRuleBased" + } + ] + } + }, + { + "readOnly": true, + "type": "string", + "name": "tableType", + "enum": { + "items": [ + { + "value": "CustomLog" + }, + { + "value": "Microsoft" + }, + { + "value": "RestoredLogs" + }, + { + "value": "SearchResults" + } + ] + } + } + ] + }, + { + "type": "object", + "name": "searchResults", + "props": [ + { + "readOnly": true, + "type": "string", + "name": "azureAsyncOperationId" + }, + { + "type": "string", + "name": "description" + }, + { + "type": "dateTime", + "name": "endSearchTime" + }, + { + "type": "integer32", + "name": "limit" + }, + { + "type": "string", + "name": "query" + }, + { + "readOnly": true, + "type": "string", + "name": "sourceTable" + }, + { + "type": "dateTime", + "name": "startSearchTime" + } + ] + }, + { + "type": "integer32", + "name": "totalRetentionInDays", + "format": { + "maximum": 2555, + "minimum": 4 + } + }, + { + "readOnly": true, + "type": "boolean", + "name": "totalRetentionInDaysAsDefault" + } + ], + "clientFlatten": true + }, + { + "readOnly": true, + "type": "object", + "name": "systemData", + "props": [ + { + "readOnly": true, + "type": "dateTime", + "name": "createdAt" + }, + { + "readOnly": true, + "type": "string", + "name": "createdBy" + }, + { + "readOnly": true, + "type": "string", + "name": "createdByType", + "enum": { + "items": [ + { + "value": "Application" + }, + { + "value": "Key" + }, + { + "value": "ManagedIdentity" + }, + { + "value": "User" + } + ] + } + }, + { + "readOnly": true, + "type": "dateTime", + "name": "lastModifiedAt" + }, + { + "readOnly": true, + "type": "string", + "name": "lastModifiedBy" + }, + { + "readOnly": true, + "type": "string", + "name": "lastModifiedByType", + "enum": { + "items": [ + { + "value": "Application" + }, + { + "value": "Key" + }, + { + "value": "ManagedIdentity" + }, + { + "value": "User" + } + ] + } + } + ] + }, + { + "readOnly": true, + "type": "string", + "name": "type" + } + ] + } + } + ] + } + } + } + }, + { + "isError": true, + "body": { + "json": { + "schema": { + "type": "@MgmtErrorFormat" + } + } + } + } + ] + } + } + ], + "outputs": [ + { + "type": "array", + "ref": "$Instance.value", + "clientFlatten": true + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vdGFibGVz/2022-10-01.xml b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vdGFibGVz/2022-10-01.xml new file mode 100644 index 00000000000..7e82c37e836 --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vdGFibGVz/2022-10-01.xml @@ -0,0 +1,203 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vdGFibGVzL3t9/2022-10-01.json b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vdGFibGVzL3t9/2022-10-01.json new file mode 100644 index 00000000000..33364b745f4 --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vdGFibGVzL3t9/2022-10-01.json @@ -0,0 +1,3103 @@ +{ + "plane": "mgmt-plane", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}/tables/{}", + "version": "2022-10-01", + "swagger": "mgmt-plane/operationalinsights/ResourceProviders/Microsoft.OperationalInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uYWxJbnNpZ2h0cy93b3Jrc3BhY2VzL3t3b3Jrc3BhY2VOYW1lfS90YWJsZXMve3RhYmxlTmFtZX0=/V/MjAyMi0xMC0wMQ==" + } + ], + "commandGroups": [ + { + "name": "monitor log-analytics workspace table", + "commands": [ + { + "name": "show", + "version": "2022-10-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}/tables/{}", + "version": "2022-10-01", + "swagger": "mgmt-plane/operationalinsights/ResourceProviders/Microsoft.OperationalInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uYWxJbnNpZ2h0cy93b3Jrc3BhY2VzL3t3b3Jrc3BhY2VOYW1lfS90YWJsZXMve3RhYmxlTmFtZX0=/V/MjAyMi0xMC0wMQ==" + } + ], + "argGroups": [ + { + "name": "", + "args": [ + { + "type": "ResourceGroupName", + "var": "$Path.resourceGroupName", + "options": [ + "g", + "resource-group" + ], + "required": true, + "idPart": "resource_group" + }, + { + "type": "SubscriptionId", + "var": "$Path.subscriptionId", + "options": [ + "subscription" + ], + "required": true, + "idPart": "subscription" + }, + { + "type": "string", + "var": "$Path.tableName", + "options": [ + "n", + "name", + "table-name" + ], + "required": true, + "idPart": "child_name_1", + "help": { + "short": "The name of the table." + } + }, + { + "type": "string", + "var": "$Path.workspaceName", + "options": [ + "workspace-name" + ], + "required": true, + "idPart": "name", + "help": { + "short": "The name of the workspace." + }, + "format": { + "pattern": "^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$", + "maxLength": 63, + "minLength": 4 + } + } + ] + } + ], + "operations": [ + { + "operationId": "Tables_Get", + "http": { + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}", + "request": { + "method": "get", + "path": { + "params": [ + { + "type": "string", + "name": "resourceGroupName", + "arg": "$Path.resourceGroupName", + "required": true, + "format": { + "maxLength": 90, + "minLength": 1 + } + }, + { + "type": "string", + "name": "subscriptionId", + "arg": "$Path.subscriptionId", + "required": true, + "format": { + "minLength": 1 + } + }, + { + "type": "string", + "name": "tableName", + "arg": "$Path.tableName", + "required": true + }, + { + "type": "string", + "name": "workspaceName", + "arg": "$Path.workspaceName", + "required": true, + "format": { + "pattern": "^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$", + "maxLength": 63, + "minLength": 4 + } + } + ] + }, + "query": { + "consts": [ + { + "readOnly": true, + "const": true, + "default": { + "value": "2022-10-01" + }, + "type": "string", + "name": "api-version", + "required": true, + "format": { + "minLength": 1 + } + } + ] + } + }, + "responses": [ + { + "statusCode": [ + 200 + ], + "body": { + "json": { + "var": "$Instance", + "schema": { + "type": "object", + "props": [ + { + "readOnly": true, + "type": "ResourceId", + "name": "id", + "format": { + "template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/tables/{}" + } + }, + { + "readOnly": true, + "type": "string", + "name": "name" + }, + { + "type": "object", + "name": "properties", + "props": [ + { + "readOnly": true, + "type": "integer32", + "name": "archiveRetentionInDays" + }, + { + "readOnly": true, + "type": "string", + "name": "lastPlanModifiedDate" + }, + { + "type": "string", + "name": "plan", + "enum": { + "items": [ + { + "value": "Analytics" + }, + { + "value": "Basic" + } + ] + } + }, + { + "readOnly": true, + "type": "string", + "name": "provisioningState", + "enum": { + "items": [ + { + "value": "InProgress" + }, + { + "value": "Succeeded" + }, + { + "value": "Updating" + } + ] + } + }, + { + "type": "object", + "name": "restoredLogs", + "props": [ + { + "readOnly": true, + "type": "string", + "name": "azureAsyncOperationId" + }, + { + "type": "dateTime", + "name": "endRestoreTime" + }, + { + "type": "string", + "name": "sourceTable" + }, + { + "type": "dateTime", + "name": "startRestoreTime" + } + ] + }, + { + "readOnly": true, + "type": "object", + "name": "resultStatistics", + "props": [ + { + "readOnly": true, + "type": "integer32", + "name": "ingestedRecords" + }, + { + "readOnly": true, + "type": "float", + "name": "progress", + "format": { + "multipleOf": 0.01 + } + }, + { + "readOnly": true, + "type": "float", + "name": "scannedGb", + "format": { + "multipleOf": 0.01 + } + } + ] + }, + { + "type": "integer32", + "name": "retentionInDays", + "format": { + "maximum": 730, + "minimum": 4 + } + }, + { + "readOnly": true, + "type": "boolean", + "name": "retentionInDaysAsDefault" + }, + { + "type": "object", + "name": "schema", + "props": [ + { + "readOnly": true, + "type": "array", + "name": "categories", + "item": { + "readOnly": true, + "type": "string" + } + }, + { + "type": "array", + "name": "columns", + "item": { + "type": "object", + "props": [ + { + "type": "string", + "name": "dataTypeHint", + "enum": { + "items": [ + { + "value": "armPath" + }, + { + "value": "guid" + }, + { + "value": "ip" + }, + { + "value": "uri" + } + ] + } + }, + { + "type": "string", + "name": "description" + }, + { + "type": "string", + "name": "displayName" + }, + { + "readOnly": true, + "type": "boolean", + "name": "isDefaultDisplay" + }, + { + "readOnly": true, + "type": "boolean", + "name": "isHidden" + }, + { + "type": "string", + "name": "name" + }, + { + "type": "string", + "name": "type", + "enum": { + "items": [ + { + "value": "boolean" + }, + { + "value": "dateTime" + }, + { + "value": "dynamic" + }, + { + "value": "guid" + }, + { + "value": "int" + }, + { + "value": "long" + }, + { + "value": "real" + }, + { + "value": "string" + } + ] + } + } + ], + "cls": "Column_read" + } + }, + { + "type": "string", + "name": "description" + }, + { + "type": "string", + "name": "displayName" + }, + { + "readOnly": true, + "type": "array", + "name": "labels", + "item": { + "readOnly": true, + "type": "string" + } + }, + { + "type": "string", + "name": "name" + }, + { + "readOnly": true, + "type": "array", + "name": "solutions", + "item": { + "readOnly": true, + "type": "string" + } + }, + { + "readOnly": true, + "type": "string", + "name": "source", + "enum": { + "items": [ + { + "value": "customer" + }, + { + "value": "microsoft" + } + ] + } + }, + { + "readOnly": true, + "type": "array<@Column_read>", + "name": "standardColumns", + "item": { + "readOnly": true, + "type": "@Column_read" + } + }, + { + "readOnly": true, + "type": "string", + "name": "tableSubType", + "enum": { + "items": [ + { + "value": "Any" + }, + { + "value": "Classic" + }, + { + "value": "DataCollectionRuleBased" + } + ] + } + }, + { + "readOnly": true, + "type": "string", + "name": "tableType", + "enum": { + "items": [ + { + "value": "CustomLog" + }, + { + "value": "Microsoft" + }, + { + "value": "RestoredLogs" + }, + { + "value": "SearchResults" + } + ] + } + } + ] + }, + { + "type": "object", + "name": "searchResults", + "props": [ + { + "readOnly": true, + "type": "string", + "name": "azureAsyncOperationId" + }, + { + "type": "string", + "name": "description" + }, + { + "type": "dateTime", + "name": "endSearchTime" + }, + { + "type": "integer32", + "name": "limit" + }, + { + "type": "string", + "name": "query" + }, + { + "readOnly": true, + "type": "string", + "name": "sourceTable" + }, + { + "type": "dateTime", + "name": "startSearchTime" + } + ] + }, + { + "type": "integer32", + "name": "totalRetentionInDays", + "format": { + "maximum": 2555, + "minimum": 4 + } + }, + { + "readOnly": true, + "type": "boolean", + "name": "totalRetentionInDaysAsDefault" + } + ], + "clientFlatten": true + }, + { + "readOnly": true, + "type": "object", + "name": "systemData", + "props": [ + { + "readOnly": true, + "type": "dateTime", + "name": "createdAt" + }, + { + "readOnly": true, + "type": "string", + "name": "createdBy" + }, + { + "readOnly": true, + "type": "string", + "name": "createdByType", + "enum": { + "items": [ + { + "value": "Application" + }, + { + "value": "Key" + }, + { + "value": "ManagedIdentity" + }, + { + "value": "User" + } + ] + } + }, + { + "readOnly": true, + "type": "dateTime", + "name": "lastModifiedAt" + }, + { + "readOnly": true, + "type": "string", + "name": "lastModifiedBy" + }, + { + "readOnly": true, + "type": "string", + "name": "lastModifiedByType", + "enum": { + "items": [ + { + "value": "Application" + }, + { + "value": "Key" + }, + { + "value": "ManagedIdentity" + }, + { + "value": "User" + } + ] + } + } + ] + }, + { + "readOnly": true, + "type": "string", + "name": "type" + } + ] + } + } + } + }, + { + "isError": true, + "body": { + "json": { + "schema": { + "type": "@MgmtErrorFormat" + } + } + } + } + ] + } + } + ], + "outputs": [ + { + "type": "object", + "ref": "$Instance", + "clientFlatten": true + } + ] + }, + { + "name": "delete", + "version": "2022-10-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}/tables/{}", + "version": "2022-10-01", + "swagger": "mgmt-plane/operationalinsights/ResourceProviders/Microsoft.OperationalInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uYWxJbnNpZ2h0cy93b3Jrc3BhY2VzL3t3b3Jrc3BhY2VOYW1lfS90YWJsZXMve3RhYmxlTmFtZX0=/V/MjAyMi0xMC0wMQ==" + } + ], + "argGroups": [ + { + "name": "", + "args": [ + { + "type": "ResourceGroupName", + "var": "$Path.resourceGroupName", + "options": [ + "g", + "resource-group" + ], + "required": true, + "idPart": "resource_group" + }, + { + "type": "SubscriptionId", + "var": "$Path.subscriptionId", + "options": [ + "subscription" + ], + "required": true, + "idPart": "subscription" + }, + { + "type": "string", + "var": "$Path.tableName", + "options": [ + "n", + "name", + "table-name" + ], + "required": true, + "idPart": "child_name_1", + "help": { + "short": "The name of the table." + } + }, + { + "type": "string", + "var": "$Path.workspaceName", + "options": [ + "workspace-name" + ], + "required": true, + "idPart": "name", + "help": { + "short": "The name of the workspace." + }, + "format": { + "pattern": "^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$", + "maxLength": 63, + "minLength": 4 + } + } + ] + } + ], + "operations": [ + { + "longRunning": { + "finalStateVia": "azure-async-operation" + }, + "operationId": "Tables_Delete", + "http": { + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}", + "request": { + "method": "delete", + "path": { + "params": [ + { + "type": "string", + "name": "resourceGroupName", + "arg": "$Path.resourceGroupName", + "required": true, + "format": { + "maxLength": 90, + "minLength": 1 + } + }, + { + "type": "string", + "name": "subscriptionId", + "arg": "$Path.subscriptionId", + "required": true, + "format": { + "minLength": 1 + } + }, + { + "type": "string", + "name": "tableName", + "arg": "$Path.tableName", + "required": true + }, + { + "type": "string", + "name": "workspaceName", + "arg": "$Path.workspaceName", + "required": true, + "format": { + "pattern": "^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$", + "maxLength": 63, + "minLength": 4 + } + } + ] + }, + "query": { + "consts": [ + { + "readOnly": true, + "const": true, + "default": { + "value": "2022-10-01" + }, + "type": "string", + "name": "api-version", + "required": true, + "format": { + "minLength": 1 + } + } + ] + } + }, + "responses": [ + { + "statusCode": [ + 200 + ] + }, + { + "statusCode": [ + 202 + ] + }, + { + "statusCode": [ + 204 + ] + }, + { + "isError": true, + "body": { + "json": { + "schema": { + "type": "@MgmtErrorFormat" + } + } + } + } + ] + } + } + ], + "confirmation": "Are you sure you want to perform this operation?" + }, + { + "name": "create", + "version": "2022-10-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}/tables/{}", + "version": "2022-10-01", + "swagger": "mgmt-plane/operationalinsights/ResourceProviders/Microsoft.OperationalInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uYWxJbnNpZ2h0cy93b3Jrc3BhY2VzL3t3b3Jrc3BhY2VOYW1lfS90YWJsZXMve3RhYmxlTmFtZX0=/V/MjAyMi0xMC0wMQ==" + } + ], + "argGroups": [ + { + "name": "", + "args": [ + { + "type": "ResourceGroupName", + "var": "$Path.resourceGroupName", + "options": [ + "g", + "resource-group" + ], + "required": true, + "idPart": "resource_group" + }, + { + "type": "SubscriptionId", + "var": "$Path.subscriptionId", + "options": [ + "subscription" + ], + "required": true, + "idPart": "subscription" + }, + { + "type": "string", + "var": "$Path.tableName", + "options": [ + "n", + "name", + "table-name" + ], + "required": true, + "idPart": "child_name_1", + "help": { + "short": "The name of the table." + } + }, + { + "type": "string", + "var": "$Path.workspaceName", + "options": [ + "workspace-name" + ], + "required": true, + "idPart": "name", + "help": { + "short": "The name of the workspace." + }, + "format": { + "pattern": "^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$", + "maxLength": 63, + "minLength": 4 + } + } + ] + }, + { + "name": "Properties", + "args": [ + { + "type": "string", + "var": "$parameters.properties.plan", + "options": [ + "plan" + ], + "group": "Properties", + "help": { + "short": "Instruct the system how to handle and charge the logs ingested to this table." + }, + "enum": { + "items": [ + { + "name": "Analytics", + "value": "Analytics" + }, + { + "name": "Basic", + "value": "Basic" + } + ] + } + }, + { + "type": "object", + "var": "$parameters.properties.restoredLogs", + "options": [ + "restore" + ], + "group": "Properties", + "help": { + "short": "Parameters of the restore operation that initiated this table." + }, + "args": [ + { + "type": "dateTime", + "var": "$parameters.properties.restoredLogs.endRestoreTime", + "options": [ + "end-restore-time" + ], + "help": { + "short": "The timestamp to end the restore by (UTC)." + } + }, + { + "type": "string", + "var": "$parameters.properties.restoredLogs.sourceTable", + "options": [ + "source-table" + ], + "help": { + "short": "The table to restore data from." + } + }, + { + "type": "dateTime", + "var": "$parameters.properties.restoredLogs.startRestoreTime", + "options": [ + "start-restore-time" + ], + "help": { + "short": "The timestamp to start the restore from (UTC)." + } + } + ] + }, + { + "type": "integer32", + "var": "$parameters.properties.retentionInDays", + "options": [ + "retention-time" + ], + "group": "Properties", + "help": { + "short": "The table retention in days, between 4 and 730." + }, + "format": { + "maximum": 730, + "minimum": 4 + } + }, + { + "type": "object", + "var": "$parameters.properties.schema", + "options": [ + "schema" + ], + "group": "Properties", + "help": { + "short": "Table schema." + }, + "args": [ + { + "type": "array", + "var": "$parameters.properties.schema.columns", + "options": [ + "columns" + ], + "help": { + "short": "A list of table custom columns." + }, + "item": { + "type": "object", + "args": [ + { + "type": "string", + "var": "$parameters.properties.schema.columns[].dataTypeHint", + "options": [ + "data-type-hint" + ], + "help": { + "short": "Column data type logical hint." + }, + "enum": { + "items": [ + { + "name": "armPath", + "value": "armPath" + }, + { + "name": "guid", + "value": "guid" + }, + { + "name": "ip", + "value": "ip" + }, + { + "name": "uri", + "value": "uri" + } + ] + } + }, + { + "type": "string", + "var": "$parameters.properties.schema.columns[].description", + "options": [ + "description" + ], + "help": { + "short": "Column description." + } + }, + { + "type": "string", + "var": "$parameters.properties.schema.columns[].displayName", + "options": [ + "display-name" + ], + "help": { + "short": "Column display name." + } + }, + { + "type": "string", + "var": "$parameters.properties.schema.columns[].name", + "options": [ + "name" + ], + "help": { + "short": "Column name." + } + }, + { + "type": "string", + "var": "$parameters.properties.schema.columns[].type", + "options": [ + "type" + ], + "help": { + "short": "Column data type." + }, + "enum": { + "items": [ + { + "name": "boolean", + "value": "boolean" + }, + { + "name": "dateTime", + "value": "dateTime" + }, + { + "name": "dynamic", + "value": "dynamic" + }, + { + "name": "guid", + "value": "guid" + }, + { + "name": "int", + "value": "int" + }, + { + "name": "long", + "value": "long" + }, + { + "name": "real", + "value": "real" + }, + { + "name": "string", + "value": "string" + } + ] + } + } + ] + } + }, + { + "type": "string", + "var": "$parameters.properties.schema.description", + "options": [ + "description" + ], + "help": { + "short": "Table description." + } + }, + { + "type": "string", + "var": "$parameters.properties.schema.displayName", + "options": [ + "display-name" + ], + "help": { + "short": "Table display name." + } + }, + { + "type": "string", + "var": "$parameters.properties.schema.name", + "options": [ + "name" + ], + "help": { + "short": "Table name." + } + } + ] + }, + { + "type": "object", + "var": "$parameters.properties.searchResults", + "options": [ + "search-job" + ], + "group": "Properties", + "help": { + "short": "Parameters of the search job that initiated this table." + }, + "args": [ + { + "type": "string", + "var": "$parameters.properties.searchResults.description", + "options": [ + "description" + ], + "help": { + "short": "Search job Description." + } + }, + { + "type": "dateTime", + "var": "$parameters.properties.searchResults.endSearchTime", + "options": [ + "end-search-time" + ], + "help": { + "short": "The timestamp to end the search by (UTC)" + } + }, + { + "type": "integer32", + "var": "$parameters.properties.searchResults.limit", + "options": [ + "limit" + ], + "help": { + "short": "Limit the search job to return up to specified number of rows." + } + }, + { + "type": "string", + "var": "$parameters.properties.searchResults.query", + "options": [ + "query" + ], + "help": { + "short": "Search job query." + } + }, + { + "type": "dateTime", + "var": "$parameters.properties.searchResults.startSearchTime", + "options": [ + "start-search-time" + ], + "help": { + "short": "The timestamp to start the search from (UTC)" + } + } + ] + }, + { + "type": "integer32", + "var": "$parameters.properties.totalRetentionInDays", + "options": [ + "total-retention-time" + ], + "group": "Properties", + "help": { + "short": "The table total retention in days, between 4 and 2555." + }, + "format": { + "maximum": 2555, + "minimum": 4 + } + } + ] + } + ], + "operations": [ + { + "longRunning": { + "finalStateVia": "azure-async-operation" + }, + "operationId": "Tables_CreateOrUpdate", + "http": { + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}", + "request": { + "method": "put", + "path": { + "params": [ + { + "type": "string", + "name": "resourceGroupName", + "arg": "$Path.resourceGroupName", + "required": true, + "format": { + "maxLength": 90, + "minLength": 1 + } + }, + { + "type": "string", + "name": "subscriptionId", + "arg": "$Path.subscriptionId", + "required": true, + "format": { + "minLength": 1 + } + }, + { + "type": "string", + "name": "tableName", + "arg": "$Path.tableName", + "required": true + }, + { + "type": "string", + "name": "workspaceName", + "arg": "$Path.workspaceName", + "required": true, + "format": { + "pattern": "^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$", + "maxLength": 63, + "minLength": 4 + } + } + ] + }, + "query": { + "consts": [ + { + "readOnly": true, + "const": true, + "default": { + "value": "2022-10-01" + }, + "type": "string", + "name": "api-version", + "required": true, + "format": { + "minLength": 1 + } + } + ] + }, + "body": { + "json": { + "schema": { + "type": "object", + "name": "parameters", + "required": true, + "props": [ + { + "type": "object", + "name": "properties", + "props": [ + { + "type": "string", + "name": "plan", + "arg": "$parameters.properties.plan", + "enum": { + "items": [ + { + "value": "Analytics" + }, + { + "value": "Basic" + } + ] + } + }, + { + "type": "object", + "name": "restoredLogs", + "arg": "$parameters.properties.restoredLogs", + "props": [ + { + "type": "dateTime", + "name": "endRestoreTime", + "arg": "$parameters.properties.restoredLogs.endRestoreTime" + }, + { + "type": "string", + "name": "sourceTable", + "arg": "$parameters.properties.restoredLogs.sourceTable" + }, + { + "type": "dateTime", + "name": "startRestoreTime", + "arg": "$parameters.properties.restoredLogs.startRestoreTime" + } + ] + }, + { + "type": "integer32", + "name": "retentionInDays", + "arg": "$parameters.properties.retentionInDays", + "format": { + "maximum": 730, + "minimum": 4 + } + }, + { + "type": "object", + "name": "schema", + "arg": "$parameters.properties.schema", + "props": [ + { + "type": "array", + "name": "columns", + "arg": "$parameters.properties.schema.columns", + "item": { + "type": "object", + "props": [ + { + "type": "string", + "name": "dataTypeHint", + "arg": "$parameters.properties.schema.columns[].dataTypeHint", + "enum": { + "items": [ + { + "value": "armPath" + }, + { + "value": "guid" + }, + { + "value": "ip" + }, + { + "value": "uri" + } + ] + } + }, + { + "type": "string", + "name": "description", + "arg": "$parameters.properties.schema.columns[].description" + }, + { + "type": "string", + "name": "displayName", + "arg": "$parameters.properties.schema.columns[].displayName" + }, + { + "type": "string", + "name": "name", + "arg": "$parameters.properties.schema.columns[].name" + }, + { + "type": "string", + "name": "type", + "arg": "$parameters.properties.schema.columns[].type", + "enum": { + "items": [ + { + "value": "boolean" + }, + { + "value": "dateTime" + }, + { + "value": "dynamic" + }, + { + "value": "guid" + }, + { + "value": "int" + }, + { + "value": "long" + }, + { + "value": "real" + }, + { + "value": "string" + } + ] + } + } + ] + } + }, + { + "type": "string", + "name": "description", + "arg": "$parameters.properties.schema.description" + }, + { + "type": "string", + "name": "displayName", + "arg": "$parameters.properties.schema.displayName" + }, + { + "type": "string", + "name": "name", + "arg": "$parameters.properties.schema.name" + } + ] + }, + { + "type": "object", + "name": "searchResults", + "arg": "$parameters.properties.searchResults", + "props": [ + { + "type": "string", + "name": "description", + "arg": "$parameters.properties.searchResults.description" + }, + { + "type": "dateTime", + "name": "endSearchTime", + "arg": "$parameters.properties.searchResults.endSearchTime" + }, + { + "type": "integer32", + "name": "limit", + "arg": "$parameters.properties.searchResults.limit" + }, + { + "type": "string", + "name": "query", + "arg": "$parameters.properties.searchResults.query" + }, + { + "type": "dateTime", + "name": "startSearchTime", + "arg": "$parameters.properties.searchResults.startSearchTime" + } + ] + }, + { + "type": "integer32", + "name": "totalRetentionInDays", + "arg": "$parameters.properties.totalRetentionInDays", + "format": { + "maximum": 2555, + "minimum": 4 + } + } + ], + "clientFlatten": true + } + ], + "clientFlatten": true + } + } + } + }, + "responses": [ + { + "statusCode": [ + 200 + ], + "body": { + "json": { + "var": "$Instance", + "schema": { + "type": "object", + "props": [ + { + "readOnly": true, + "type": "ResourceId", + "name": "id", + "format": { + "template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/tables/{}" + } + }, + { + "readOnly": true, + "type": "string", + "name": "name" + }, + { + "type": "object", + "name": "properties", + "props": [ + { + "readOnly": true, + "type": "integer32", + "name": "archiveRetentionInDays" + }, + { + "readOnly": true, + "type": "string", + "name": "lastPlanModifiedDate" + }, + { + "type": "string", + "name": "plan", + "enum": { + "items": [ + { + "value": "Analytics" + }, + { + "value": "Basic" + } + ] + } + }, + { + "readOnly": true, + "type": "string", + "name": "provisioningState", + "enum": { + "items": [ + { + "value": "InProgress" + }, + { + "value": "Succeeded" + }, + { + "value": "Updating" + } + ] + } + }, + { + "type": "object", + "name": "restoredLogs", + "props": [ + { + "readOnly": true, + "type": "string", + "name": "azureAsyncOperationId" + }, + { + "type": "dateTime", + "name": "endRestoreTime" + }, + { + "type": "string", + "name": "sourceTable" + }, + { + "type": "dateTime", + "name": "startRestoreTime" + } + ] + }, + { + "readOnly": true, + "type": "object", + "name": "resultStatistics", + "props": [ + { + "readOnly": true, + "type": "integer32", + "name": "ingestedRecords" + }, + { + "readOnly": true, + "type": "float", + "name": "progress", + "format": { + "multipleOf": 0.01 + } + }, + { + "readOnly": true, + "type": "float", + "name": "scannedGb", + "format": { + "multipleOf": 0.01 + } + } + ] + }, + { + "type": "integer32", + "name": "retentionInDays", + "format": { + "maximum": 730, + "minimum": 4 + } + }, + { + "readOnly": true, + "type": "boolean", + "name": "retentionInDaysAsDefault" + }, + { + "type": "object", + "name": "schema", + "props": [ + { + "readOnly": true, + "type": "array", + "name": "categories", + "item": { + "readOnly": true, + "type": "string" + } + }, + { + "type": "array", + "name": "columns", + "item": { + "type": "object", + "props": [ + { + "type": "string", + "name": "dataTypeHint", + "enum": { + "items": [ + { + "value": "armPath" + }, + { + "value": "guid" + }, + { + "value": "ip" + }, + { + "value": "uri" + } + ] + } + }, + { + "type": "string", + "name": "description" + }, + { + "type": "string", + "name": "displayName" + }, + { + "readOnly": true, + "type": "boolean", + "name": "isDefaultDisplay" + }, + { + "readOnly": true, + "type": "boolean", + "name": "isHidden" + }, + { + "type": "string", + "name": "name" + }, + { + "type": "string", + "name": "type", + "enum": { + "items": [ + { + "value": "boolean" + }, + { + "value": "dateTime" + }, + { + "value": "dynamic" + }, + { + "value": "guid" + }, + { + "value": "int" + }, + { + "value": "long" + }, + { + "value": "real" + }, + { + "value": "string" + } + ] + } + } + ], + "cls": "Column_read" + } + }, + { + "type": "string", + "name": "description" + }, + { + "type": "string", + "name": "displayName" + }, + { + "readOnly": true, + "type": "array", + "name": "labels", + "item": { + "readOnly": true, + "type": "string" + } + }, + { + "type": "string", + "name": "name" + }, + { + "readOnly": true, + "type": "array", + "name": "solutions", + "item": { + "readOnly": true, + "type": "string" + } + }, + { + "readOnly": true, + "type": "string", + "name": "source", + "enum": { + "items": [ + { + "value": "customer" + }, + { + "value": "microsoft" + } + ] + } + }, + { + "readOnly": true, + "type": "array<@Column_read>", + "name": "standardColumns", + "item": { + "readOnly": true, + "type": "@Column_read" + } + }, + { + "readOnly": true, + "type": "string", + "name": "tableSubType", + "enum": { + "items": [ + { + "value": "Any" + }, + { + "value": "Classic" + }, + { + "value": "DataCollectionRuleBased" + } + ] + } + }, + { + "readOnly": true, + "type": "string", + "name": "tableType", + "enum": { + "items": [ + { + "value": "CustomLog" + }, + { + "value": "Microsoft" + }, + { + "value": "RestoredLogs" + }, + { + "value": "SearchResults" + } + ] + } + } + ] + }, + { + "type": "object", + "name": "searchResults", + "props": [ + { + "readOnly": true, + "type": "string", + "name": "azureAsyncOperationId" + }, + { + "type": "string", + "name": "description" + }, + { + "type": "dateTime", + "name": "endSearchTime" + }, + { + "type": "integer32", + "name": "limit" + }, + { + "type": "string", + "name": "query" + }, + { + "readOnly": true, + "type": "string", + "name": "sourceTable" + }, + { + "type": "dateTime", + "name": "startSearchTime" + } + ] + }, + { + "type": "integer32", + "name": "totalRetentionInDays", + "format": { + "maximum": 2555, + "minimum": 4 + } + }, + { + "readOnly": true, + "type": "boolean", + "name": "totalRetentionInDaysAsDefault" + } + ], + "clientFlatten": true + }, + { + "readOnly": true, + "type": "object", + "name": "systemData", + "props": [ + { + "readOnly": true, + "type": "dateTime", + "name": "createdAt" + }, + { + "readOnly": true, + "type": "string", + "name": "createdBy" + }, + { + "readOnly": true, + "type": "string", + "name": "createdByType", + "enum": { + "items": [ + { + "value": "Application" + }, + { + "value": "Key" + }, + { + "value": "ManagedIdentity" + }, + { + "value": "User" + } + ] + } + }, + { + "readOnly": true, + "type": "dateTime", + "name": "lastModifiedAt" + }, + { + "readOnly": true, + "type": "string", + "name": "lastModifiedBy" + }, + { + "readOnly": true, + "type": "string", + "name": "lastModifiedByType", + "enum": { + "items": [ + { + "value": "Application" + }, + { + "value": "Key" + }, + { + "value": "ManagedIdentity" + }, + { + "value": "User" + } + ] + } + } + ] + }, + { + "readOnly": true, + "type": "string", + "name": "type" + } + ] + } + } + } + }, + { + "statusCode": [ + 202 + ] + }, + { + "isError": true, + "body": { + "json": { + "schema": { + "type": "@MgmtErrorFormat" + } + } + } + } + ] + } + } + ], + "outputs": [ + { + "type": "object", + "ref": "$Instance", + "clientFlatten": true + } + ] + }, + { + "name": "update", + "version": "2022-10-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}/tables/{}", + "version": "2022-10-01", + "swagger": "mgmt-plane/operationalinsights/ResourceProviders/Microsoft.OperationalInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uYWxJbnNpZ2h0cy93b3Jrc3BhY2VzL3t3b3Jrc3BhY2VOYW1lfS90YWJsZXMve3RhYmxlTmFtZX0=/V/MjAyMi0xMC0wMQ==" + } + ], + "argGroups": [ + { + "name": "", + "args": [ + { + "type": "ResourceGroupName", + "var": "$Path.resourceGroupName", + "options": [ + "g", + "resource-group" + ], + "required": true, + "idPart": "resource_group" + }, + { + "type": "SubscriptionId", + "var": "$Path.subscriptionId", + "options": [ + "subscription" + ], + "required": true, + "idPart": "subscription" + }, + { + "type": "string", + "var": "$Path.tableName", + "options": [ + "n", + "name", + "table-name" + ], + "required": true, + "idPart": "child_name_1", + "help": { + "short": "The name of the table." + } + }, + { + "type": "string", + "var": "$Path.workspaceName", + "options": [ + "workspace-name" + ], + "required": true, + "idPart": "name", + "help": { + "short": "The name of the workspace." + }, + "format": { + "pattern": "^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$", + "maxLength": 63, + "minLength": 4 + } + } + ] + }, + { + "name": "Properties", + "args": [ + { + "type": "string", + "var": "$parameters.properties.plan", + "options": [ + "plan" + ], + "group": "Properties", + "help": { + "short": "Instruct the system how to handle and charge the logs ingested to this table." + }, + "enum": { + "items": [ + { + "name": "Analytics", + "value": "Analytics" + }, + { + "name": "Basic", + "value": "Basic" + } + ] + } + }, + { + "type": "object", + "var": "$parameters.properties.restoredLogs", + "options": [ + "restore" + ], + "group": "Properties", + "help": { + "short": "Parameters of the restore operation that initiated this table." + }, + "args": [ + { + "type": "dateTime", + "var": "$parameters.properties.restoredLogs.endRestoreTime", + "options": [ + "end-restore-time" + ], + "help": { + "short": "The timestamp to end the restore by (UTC)." + } + }, + { + "type": "string", + "var": "$parameters.properties.restoredLogs.sourceTable", + "options": [ + "source-table" + ], + "help": { + "short": "The table to restore data from." + } + }, + { + "type": "dateTime", + "var": "$parameters.properties.restoredLogs.startRestoreTime", + "options": [ + "start-restore-time" + ], + "help": { + "short": "The timestamp to start the restore from (UTC)." + } + } + ] + }, + { + "type": "integer32", + "var": "$parameters.properties.retentionInDays", + "options": [ + "retention-time" + ], + "group": "Properties", + "help": { + "short": "The table retention in days, between 4 and 730. Setting this property to -1 will default to the workspace retention." + }, + "format": { + "maximum": 730, + "minimum": 4 + } + }, + { + "type": "object", + "var": "$parameters.properties.schema", + "options": [ + "schema" + ], + "group": "Properties", + "help": { + "short": "Table schema." + }, + "args": [ + { + "type": "array", + "var": "$parameters.properties.schema.columns", + "options": [ + "columns" + ], + "help": { + "short": "A list of table custom columns." + }, + "item": { + "type": "object", + "args": [ + { + "type": "string", + "var": "$parameters.properties.schema.columns[].dataTypeHint", + "options": [ + "data-type-hint" + ], + "help": { + "short": "Column data type logical hint." + }, + "enum": { + "items": [ + { + "name": "armPath", + "value": "armPath" + }, + { + "name": "guid", + "value": "guid" + }, + { + "name": "ip", + "value": "ip" + }, + { + "name": "uri", + "value": "uri" + } + ] + } + }, + { + "type": "string", + "var": "$parameters.properties.schema.columns[].description", + "options": [ + "description" + ], + "help": { + "short": "Column description." + } + }, + { + "type": "string", + "var": "$parameters.properties.schema.columns[].displayName", + "options": [ + "display-name" + ], + "help": { + "short": "Column display name." + } + }, + { + "type": "string", + "var": "$parameters.properties.schema.columns[].name", + "options": [ + "name" + ], + "help": { + "short": "Column name." + } + }, + { + "type": "string", + "var": "$parameters.properties.schema.columns[].type", + "options": [ + "type" + ], + "help": { + "short": "Column data type." + }, + "enum": { + "items": [ + { + "name": "boolean", + "value": "boolean" + }, + { + "name": "dateTime", + "value": "dateTime" + }, + { + "name": "dynamic", + "value": "dynamic" + }, + { + "name": "guid", + "value": "guid" + }, + { + "name": "int", + "value": "int" + }, + { + "name": "long", + "value": "long" + }, + { + "name": "real", + "value": "real" + }, + { + "name": "string", + "value": "string" + } + ] + } + } + ] + } + }, + { + "type": "string", + "var": "$parameters.properties.schema.description", + "options": [ + "description" + ], + "help": { + "short": "Table description." + } + }, + { + "type": "string", + "var": "$parameters.properties.schema.displayName", + "options": [ + "display-name" + ], + "help": { + "short": "Table display name." + } + }, + { + "type": "string", + "var": "$parameters.properties.schema.name", + "options": [ + "name" + ], + "help": { + "short": "Table name." + } + } + ] + }, + { + "type": "object", + "var": "$parameters.properties.searchResults", + "options": [ + "search-job" + ], + "group": "Properties", + "help": { + "short": "Parameters of the search job that initiated this table." + }, + "args": [ + { + "type": "string", + "var": "$parameters.properties.searchResults.description", + "options": [ + "description" + ], + "help": { + "short": "Search job Description." + } + }, + { + "type": "dateTime", + "var": "$parameters.properties.searchResults.endSearchTime", + "options": [ + "end-search-time" + ], + "help": { + "short": "The timestamp to end the search by (UTC)" + } + }, + { + "type": "integer32", + "var": "$parameters.properties.searchResults.limit", + "options": [ + "limit" + ], + "help": { + "short": "Limit the search job to return up to specified number of rows." + } + }, + { + "type": "string", + "var": "$parameters.properties.searchResults.query", + "options": [ + "query" + ], + "help": { + "short": "Search job query." + } + }, + { + "type": "dateTime", + "var": "$parameters.properties.searchResults.startSearchTime", + "options": [ + "start-search-time" + ], + "help": { + "short": "The timestamp to start the search from (UTC)" + } + } + ] + }, + { + "type": "integer32", + "var": "$parameters.properties.totalRetentionInDays", + "options": [ + "total-retention-time" + ], + "group": "Properties", + "help": { + "short": "The table total retention in days, between 4 and 2555. Setting this property to -1 will default to table retention." + }, + "format": { + "maximum": 2555, + "minimum": 4 + } + } + ] + } + ], + "operations": [ + { + "longRunning": { + "finalStateVia": "azure-async-operation" + }, + "operationId": "Tables_Update", + "http": { + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}", + "request": { + "method": "patch", + "path": { + "params": [ + { + "type": "string", + "name": "resourceGroupName", + "arg": "$Path.resourceGroupName", + "required": true, + "format": { + "maxLength": 90, + "minLength": 1 + } + }, + { + "type": "string", + "name": "subscriptionId", + "arg": "$Path.subscriptionId", + "required": true, + "format": { + "minLength": 1 + } + }, + { + "type": "string", + "name": "tableName", + "arg": "$Path.tableName", + "required": true + }, + { + "type": "string", + "name": "workspaceName", + "arg": "$Path.workspaceName", + "required": true, + "format": { + "pattern": "^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$", + "maxLength": 63, + "minLength": 4 + } + } + ] + }, + "query": { + "consts": [ + { + "readOnly": true, + "const": true, + "default": { + "value": "2022-10-01" + }, + "type": "string", + "name": "api-version", + "required": true, + "format": { + "minLength": 1 + } + } + ] + }, + "body": { + "json": { + "schema": { + "type": "object", + "name": "parameters", + "required": true, + "props": [ + { + "type": "object", + "name": "properties", + "props": [ + { + "type": "string", + "name": "plan", + "arg": "$parameters.properties.plan", + "enum": { + "items": [ + { + "value": "Analytics" + }, + { + "value": "Basic" + } + ] + } + }, + { + "type": "object", + "name": "restoredLogs", + "arg": "$parameters.properties.restoredLogs", + "props": [ + { + "type": "dateTime", + "name": "endRestoreTime", + "arg": "$parameters.properties.restoredLogs.endRestoreTime" + }, + { + "type": "string", + "name": "sourceTable", + "arg": "$parameters.properties.restoredLogs.sourceTable" + }, + { + "type": "dateTime", + "name": "startRestoreTime", + "arg": "$parameters.properties.restoredLogs.startRestoreTime" + } + ] + }, + { + "type": "integer32", + "name": "retentionInDays", + "arg": "$parameters.properties.retentionInDays", + "format": { + "maximum": 730, + "minimum": 4 + } + }, + { + "type": "object", + "name": "schema", + "arg": "$parameters.properties.schema", + "props": [ + { + "type": "array", + "name": "columns", + "arg": "$parameters.properties.schema.columns", + "item": { + "type": "object", + "props": [ + { + "type": "string", + "name": "dataTypeHint", + "arg": "$parameters.properties.schema.columns[].dataTypeHint", + "enum": { + "items": [ + { + "value": "armPath" + }, + { + "value": "guid" + }, + { + "value": "ip" + }, + { + "value": "uri" + } + ] + } + }, + { + "type": "string", + "name": "description", + "arg": "$parameters.properties.schema.columns[].description" + }, + { + "type": "string", + "name": "displayName", + "arg": "$parameters.properties.schema.columns[].displayName" + }, + { + "type": "string", + "name": "name", + "arg": "$parameters.properties.schema.columns[].name" + }, + { + "type": "string", + "name": "type", + "arg": "$parameters.properties.schema.columns[].type", + "enum": { + "items": [ + { + "value": "boolean" + }, + { + "value": "dateTime" + }, + { + "value": "dynamic" + }, + { + "value": "guid" + }, + { + "value": "int" + }, + { + "value": "long" + }, + { + "value": "real" + }, + { + "value": "string" + } + ] + } + } + ] + } + }, + { + "type": "string", + "name": "description", + "arg": "$parameters.properties.schema.description" + }, + { + "type": "string", + "name": "displayName", + "arg": "$parameters.properties.schema.displayName" + }, + { + "type": "string", + "name": "name", + "arg": "$parameters.properties.schema.name" + } + ] + }, + { + "type": "object", + "name": "searchResults", + "arg": "$parameters.properties.searchResults", + "props": [ + { + "type": "string", + "name": "description", + "arg": "$parameters.properties.searchResults.description" + }, + { + "type": "dateTime", + "name": "endSearchTime", + "arg": "$parameters.properties.searchResults.endSearchTime" + }, + { + "type": "integer32", + "name": "limit", + "arg": "$parameters.properties.searchResults.limit" + }, + { + "type": "string", + "name": "query", + "arg": "$parameters.properties.searchResults.query" + }, + { + "type": "dateTime", + "name": "startSearchTime", + "arg": "$parameters.properties.searchResults.startSearchTime" + } + ] + }, + { + "type": "integer32", + "name": "totalRetentionInDays", + "arg": "$parameters.properties.totalRetentionInDays", + "format": { + "maximum": 2555, + "minimum": 4 + } + } + ], + "clientFlatten": true + } + ], + "clientFlatten": true + } + } + } + }, + "responses": [ + { + "statusCode": [ + 200 + ], + "body": { + "json": { + "var": "$Instance", + "schema": { + "type": "object", + "props": [ + { + "readOnly": true, + "type": "ResourceId", + "name": "id", + "format": { + "template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.OperationalInsights/workspaces/{}/tables/{}" + } + }, + { + "readOnly": true, + "type": "string", + "name": "name" + }, + { + "type": "object", + "name": "properties", + "props": [ + { + "readOnly": true, + "type": "integer32", + "name": "archiveRetentionInDays" + }, + { + "readOnly": true, + "type": "string", + "name": "lastPlanModifiedDate" + }, + { + "type": "string", + "name": "plan", + "enum": { + "items": [ + { + "value": "Analytics" + }, + { + "value": "Basic" + } + ] + } + }, + { + "readOnly": true, + "type": "string", + "name": "provisioningState", + "enum": { + "items": [ + { + "value": "InProgress" + }, + { + "value": "Succeeded" + }, + { + "value": "Updating" + } + ] + } + }, + { + "type": "object", + "name": "restoredLogs", + "props": [ + { + "readOnly": true, + "type": "string", + "name": "azureAsyncOperationId" + }, + { + "type": "dateTime", + "name": "endRestoreTime" + }, + { + "type": "string", + "name": "sourceTable" + }, + { + "type": "dateTime", + "name": "startRestoreTime" + } + ] + }, + { + "readOnly": true, + "type": "object", + "name": "resultStatistics", + "props": [ + { + "readOnly": true, + "type": "integer32", + "name": "ingestedRecords" + }, + { + "readOnly": true, + "type": "float", + "name": "progress", + "format": { + "multipleOf": 0.01 + } + }, + { + "readOnly": true, + "type": "float", + "name": "scannedGb", + "format": { + "multipleOf": 0.01 + } + } + ] + }, + { + "type": "integer32", + "name": "retentionInDays", + "format": { + "maximum": 730, + "minimum": 4 + } + }, + { + "readOnly": true, + "type": "boolean", + "name": "retentionInDaysAsDefault" + }, + { + "type": "object", + "name": "schema", + "props": [ + { + "readOnly": true, + "type": "array", + "name": "categories", + "item": { + "readOnly": true, + "type": "string" + } + }, + { + "type": "array", + "name": "columns", + "item": { + "type": "object", + "props": [ + { + "type": "string", + "name": "dataTypeHint", + "enum": { + "items": [ + { + "value": "armPath" + }, + { + "value": "guid" + }, + { + "value": "ip" + }, + { + "value": "uri" + } + ] + } + }, + { + "type": "string", + "name": "description" + }, + { + "type": "string", + "name": "displayName" + }, + { + "readOnly": true, + "type": "boolean", + "name": "isDefaultDisplay" + }, + { + "readOnly": true, + "type": "boolean", + "name": "isHidden" + }, + { + "type": "string", + "name": "name" + }, + { + "type": "string", + "name": "type", + "enum": { + "items": [ + { + "value": "boolean" + }, + { + "value": "dateTime" + }, + { + "value": "dynamic" + }, + { + "value": "guid" + }, + { + "value": "int" + }, + { + "value": "long" + }, + { + "value": "real" + }, + { + "value": "string" + } + ] + } + } + ], + "cls": "Column_read" + } + }, + { + "type": "string", + "name": "description" + }, + { + "type": "string", + "name": "displayName" + }, + { + "readOnly": true, + "type": "array", + "name": "labels", + "item": { + "readOnly": true, + "type": "string" + } + }, + { + "type": "string", + "name": "name" + }, + { + "readOnly": true, + "type": "array", + "name": "solutions", + "item": { + "readOnly": true, + "type": "string" + } + }, + { + "readOnly": true, + "type": "string", + "name": "source", + "enum": { + "items": [ + { + "value": "customer" + }, + { + "value": "microsoft" + } + ] + } + }, + { + "readOnly": true, + "type": "array<@Column_read>", + "name": "standardColumns", + "item": { + "readOnly": true, + "type": "@Column_read" + } + }, + { + "readOnly": true, + "type": "string", + "name": "tableSubType", + "enum": { + "items": [ + { + "value": "Any" + }, + { + "value": "Classic" + }, + { + "value": "DataCollectionRuleBased" + } + ] + } + }, + { + "readOnly": true, + "type": "string", + "name": "tableType", + "enum": { + "items": [ + { + "value": "CustomLog" + }, + { + "value": "Microsoft" + }, + { + "value": "RestoredLogs" + }, + { + "value": "SearchResults" + } + ] + } + } + ] + }, + { + "type": "object", + "name": "searchResults", + "props": [ + { + "readOnly": true, + "type": "string", + "name": "azureAsyncOperationId" + }, + { + "type": "string", + "name": "description" + }, + { + "type": "dateTime", + "name": "endSearchTime" + }, + { + "type": "integer32", + "name": "limit" + }, + { + "type": "string", + "name": "query" + }, + { + "readOnly": true, + "type": "string", + "name": "sourceTable" + }, + { + "type": "dateTime", + "name": "startSearchTime" + } + ] + }, + { + "type": "integer32", + "name": "totalRetentionInDays", + "format": { + "maximum": 2555, + "minimum": 4 + } + }, + { + "readOnly": true, + "type": "boolean", + "name": "totalRetentionInDaysAsDefault" + } + ], + "clientFlatten": true + }, + { + "readOnly": true, + "type": "object", + "name": "systemData", + "props": [ + { + "readOnly": true, + "type": "dateTime", + "name": "createdAt" + }, + { + "readOnly": true, + "type": "string", + "name": "createdBy" + }, + { + "readOnly": true, + "type": "string", + "name": "createdByType", + "enum": { + "items": [ + { + "value": "Application" + }, + { + "value": "Key" + }, + { + "value": "ManagedIdentity" + }, + { + "value": "User" + } + ] + } + }, + { + "readOnly": true, + "type": "dateTime", + "name": "lastModifiedAt" + }, + { + "readOnly": true, + "type": "string", + "name": "lastModifiedBy" + }, + { + "readOnly": true, + "type": "string", + "name": "lastModifiedByType", + "enum": { + "items": [ + { + "value": "Application" + }, + { + "value": "Key" + }, + { + "value": "ManagedIdentity" + }, + { + "value": "User" + } + ] + } + } + ] + }, + { + "readOnly": true, + "type": "string", + "name": "type" + } + ] + } + } + } + }, + { + "statusCode": [ + 202 + ] + }, + { + "isError": true, + "body": { + "json": { + "schema": { + "type": "@MgmtErrorFormat" + } + } + } + } + ] + } + } + ], + "outputs": [ + { + "type": "object", + "ref": "$Instance", + "clientFlatten": true + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vdGFibGVzL3t9/2022-10-01.xml b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vdGFibGVzL3t9/2022-10-01.xml new file mode 100644 index 00000000000..b65e25a0d9b --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vdGFibGVzL3t9/2022-10-01.xml @@ -0,0 +1,968 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vdGFibGVzL3t9L21pZ3JhdGU=/2022-10-01.json b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vdGFibGVzL3t9L21pZ3JhdGU=/2022-10-01.json new file mode 100644 index 00000000000..a57247a6317 --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vdGFibGVzL3t9L21pZ3JhdGU=/2022-10-01.json @@ -0,0 +1,164 @@ +{ + "plane": "mgmt-plane", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}/tables/{}/migrate", + "version": "2022-10-01", + "swagger": "mgmt-plane/operationalinsights/ResourceProviders/Microsoft.OperationalInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uYWxJbnNpZ2h0cy93b3Jrc3BhY2VzL3t3b3Jrc3BhY2VOYW1lfS90YWJsZXMve3RhYmxlTmFtZX0vbWlncmF0ZQ==/V/MjAyMi0xMC0wMQ==" + } + ], + "commandGroups": [ + { + "name": "monitor log-analytics workspace table", + "commands": [ + { + "name": "migrate", + "version": "2022-10-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}/tables/{}/migrate", + "version": "2022-10-01", + "swagger": "mgmt-plane/operationalinsights/ResourceProviders/Microsoft.OperationalInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uYWxJbnNpZ2h0cy93b3Jrc3BhY2VzL3t3b3Jrc3BhY2VOYW1lfS90YWJsZXMve3RhYmxlTmFtZX0vbWlncmF0ZQ==/V/MjAyMi0xMC0wMQ==" + } + ], + "argGroups": [ + { + "name": "", + "args": [ + { + "type": "ResourceGroupName", + "var": "$Path.resourceGroupName", + "options": [ + "g", + "resource-group" + ], + "required": true + }, + { + "type": "SubscriptionId", + "var": "$Path.subscriptionId", + "options": [ + "subscription" + ], + "required": true + }, + { + "type": "string", + "var": "$Path.tableName", + "options": [ + "table-name" + ], + "required": true, + "help": { + "short": "The name of the table." + } + }, + { + "type": "string", + "var": "$Path.workspaceName", + "options": [ + "workspace-name" + ], + "required": true, + "help": { + "short": "The name of the workspace." + }, + "format": { + "pattern": "^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$", + "maxLength": 63, + "minLength": 4 + } + } + ] + } + ], + "operations": [ + { + "operationId": "Tables_Migrate", + "http": { + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}/migrate", + "request": { + "method": "post", + "path": { + "params": [ + { + "type": "string", + "name": "resourceGroupName", + "arg": "$Path.resourceGroupName", + "required": true, + "format": { + "maxLength": 90, + "minLength": 1 + } + }, + { + "type": "string", + "name": "subscriptionId", + "arg": "$Path.subscriptionId", + "required": true, + "format": { + "minLength": 1 + } + }, + { + "type": "string", + "name": "tableName", + "arg": "$Path.tableName", + "required": true + }, + { + "type": "string", + "name": "workspaceName", + "arg": "$Path.workspaceName", + "required": true, + "format": { + "pattern": "^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$", + "maxLength": 63, + "minLength": 4 + } + } + ] + }, + "query": { + "consts": [ + { + "readOnly": true, + "const": true, + "default": { + "value": "2022-10-01" + }, + "type": "string", + "name": "api-version", + "required": true, + "format": { + "minLength": 1 + } + } + ] + } + }, + "responses": [ + { + "statusCode": [ + 200 + ] + }, + { + "isError": true, + "body": { + "json": { + "schema": { + "type": "@MgmtErrorFormat" + } + } + } + } + ] + } + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vdGFibGVzL3t9L21pZ3JhdGU=/2022-10-01.xml b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vdGFibGVzL3t9L21pZ3JhdGU=/2022-10-01.xml new file mode 100644 index 00000000000..51c4c91d9b3 --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vdGFibGVzL3t9L21pZ3JhdGU=/2022-10-01.xml @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vdGFibGVzL3t9L2NhbmNlbHNlYXJjaA==/2022-10-01.json b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vdGFibGVzL3t9L2NhbmNlbHNlYXJjaA==/2022-10-01.json new file mode 100644 index 00000000000..b33c88f51d7 --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vdGFibGVzL3t9L2NhbmNlbHNlYXJjaA==/2022-10-01.json @@ -0,0 +1,166 @@ +{ + "plane": "mgmt-plane", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}/tables/{}/cancelsearch", + "version": "2022-10-01", + "swagger": "mgmt-plane/operationalinsights/ResourceProviders/Microsoft.OperationalInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uYWxJbnNpZ2h0cy93b3Jrc3BhY2VzL3t3b3Jrc3BhY2VOYW1lfS90YWJsZXMve3RhYmxlTmFtZX0vY2FuY2VsU2VhcmNo/V/MjAyMi0xMC0wMQ==" + } + ], + "commandGroups": [ + { + "name": "monitor log-analytics workspace table search-job", + "commands": [ + { + "name": "cancel", + "version": "2022-10-01", + "resources": [ + { + "id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}/tables/{}/cancelsearch", + "version": "2022-10-01", + "swagger": "mgmt-plane/operationalinsights/ResourceProviders/Microsoft.OperationalInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uYWxJbnNpZ2h0cy93b3Jrc3BhY2VzL3t3b3Jrc3BhY2VOYW1lfS90YWJsZXMve3RhYmxlTmFtZX0vY2FuY2VsU2VhcmNo/V/MjAyMi0xMC0wMQ==" + } + ], + "argGroups": [ + { + "name": "", + "args": [ + { + "type": "ResourceGroupName", + "var": "$Path.resourceGroupName", + "options": [ + "g", + "resource-group" + ], + "required": true + }, + { + "type": "SubscriptionId", + "var": "$Path.subscriptionId", + "options": [ + "subscription" + ], + "required": true + }, + { + "type": "string", + "var": "$Path.tableName", + "options": [ + "n", + "name", + "table-name" + ], + "required": true, + "help": { + "short": "The name of the table." + } + }, + { + "type": "string", + "var": "$Path.workspaceName", + "options": [ + "workspace-name" + ], + "required": true, + "help": { + "short": "The name of the workspace." + }, + "format": { + "pattern": "^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$", + "maxLength": 63, + "minLength": 4 + } + } + ] + } + ], + "operations": [ + { + "operationId": "Tables_CancelSearch", + "http": { + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}/cancelSearch", + "request": { + "method": "post", + "path": { + "params": [ + { + "type": "string", + "name": "resourceGroupName", + "arg": "$Path.resourceGroupName", + "required": true, + "format": { + "maxLength": 90, + "minLength": 1 + } + }, + { + "type": "string", + "name": "subscriptionId", + "arg": "$Path.subscriptionId", + "required": true, + "format": { + "minLength": 1 + } + }, + { + "type": "string", + "name": "tableName", + "arg": "$Path.tableName", + "required": true + }, + { + "type": "string", + "name": "workspaceName", + "arg": "$Path.workspaceName", + "required": true, + "format": { + "pattern": "^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$", + "maxLength": 63, + "minLength": 4 + } + } + ] + }, + "query": { + "consts": [ + { + "readOnly": true, + "const": true, + "default": { + "value": "2022-10-01" + }, + "type": "string", + "name": "api-version", + "required": true, + "format": { + "minLength": 1 + } + } + ] + } + }, + "responses": [ + { + "statusCode": [ + 200 + ] + }, + { + "isError": true, + "body": { + "json": { + "schema": { + "type": "@MgmtErrorFormat" + } + } + } + } + ] + } + } + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vdGFibGVzL3t9L2NhbmNlbHNlYXJjaA==/2022-10-01.xml b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vdGFibGVzL3t9L2NhbmNlbHNlYXJjaA==/2022-10-01.xml new file mode 100644 index 00000000000..58610115f26 --- /dev/null +++ b/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vdGFibGVzL3t9L2NhbmNlbHNlYXJjaA==/2022-10-01.xml @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +