-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Operationalinsights tables, wokspace capping and sku (#9505)
* Workspace tables * Pretty * Fixes * Fix * Fixes * Add missing properties for capping and SKU * Fixes * Fix * PR fixes - change PUT to PATCH * Unrequire properties in /tabels PATCH
- Loading branch information
1 parent
eb91865
commit c6ab418
Showing
6 changed files
with
377 additions
and
0 deletions.
There are no files selected for viewing
241 changes: 241 additions & 0 deletions
241
...hts/resource-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/Tables.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,241 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"title": "Azure Log Analytics", | ||
"description": "Azure Log Analytics API reference", | ||
"version": "2020-03-01-preview" | ||
}, | ||
"host": "management.azure.com", | ||
"schemes": [ | ||
"https" | ||
], | ||
"consumes": [ | ||
"application/json" | ||
], | ||
"produces": [ | ||
"application/json" | ||
], | ||
"security": [ | ||
{ | ||
"azure_auth": [ | ||
"user_impersonation" | ||
] | ||
} | ||
], | ||
"securityDefinitions": { | ||
"azure_auth": { | ||
"type": "oauth2", | ||
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", | ||
"flow": "implicit", | ||
"description": "Azure Active Directory OAuth2 Flow", | ||
"scopes": { | ||
"user_impersonation": "impersonate your user account" | ||
} | ||
} | ||
}, | ||
"paths": { | ||
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables": { | ||
"get": { | ||
"tags": [ | ||
"Tables" | ||
], | ||
"x-ms-examples": { | ||
"TablesListByWorkspace": { | ||
"$ref": "./examples/TablesList.json" | ||
} | ||
}, | ||
"operationId": "Tables_ListByWorkspace", | ||
"description": "Gets all the tables for the specified Log Analytics workspace.", | ||
"parameters": [ | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" | ||
}, | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" | ||
}, | ||
{ | ||
"$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter" | ||
}, | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "OK response definition.", | ||
"schema": { | ||
"$ref": "#/definitions/TablesListResult" | ||
} | ||
}, | ||
"default": { | ||
"description": "Error response describing why the operation failed.", | ||
"schema": { | ||
"$ref": "#/definitions/ErrorContract" | ||
} | ||
} | ||
}, | ||
"x-ms-pageable": { | ||
"nextLinkName": null | ||
} | ||
} | ||
}, | ||
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}": { | ||
"patch": { | ||
"tags": [ | ||
"Tables" | ||
], | ||
"x-ms-examples": { | ||
"TablesSet": { | ||
"$ref": "./examples/TablesUpdate.json" | ||
} | ||
}, | ||
"operationId": "Tables_Update", | ||
"description": "Updates a Log Analytics workspace table properties.", | ||
"parameters": [ | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" | ||
}, | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" | ||
}, | ||
{ | ||
"$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter" | ||
}, | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" | ||
}, | ||
{ | ||
"$ref": "#/parameters/TableNameParameter" | ||
}, | ||
{ | ||
"name": "parameters", | ||
"in": "body", | ||
"required": true, | ||
"schema": { | ||
"$ref": "#/definitions/Table" | ||
}, | ||
"description": "The parameters required to update table properties." | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "OK response definition.", | ||
"schema": { | ||
"$ref": "#/definitions/Table" | ||
} | ||
}, | ||
"default": { | ||
"description": "Error response describing why the operation failed.", | ||
"schema": { | ||
"$ref": "#/definitions/ErrorContract" | ||
} | ||
} | ||
} | ||
}, | ||
"get": { | ||
"tags": [ | ||
"Tables" | ||
], | ||
"x-ms-examples": { | ||
"TablesGet": { | ||
"$ref": "./examples/TablesGet.json" | ||
} | ||
}, | ||
"operationId": "Tables_Get", | ||
"description": "Gets a Log Analytics workspace table.", | ||
"parameters": [ | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" | ||
}, | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" | ||
}, | ||
{ | ||
"$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter" | ||
}, | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" | ||
}, | ||
{ | ||
"$ref": "#/parameters/TableNameParameter" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "OK response definition.", | ||
"schema": { | ||
"$ref": "#/definitions/Table" | ||
} | ||
}, | ||
"default": { | ||
"description": "Error response describing why the operation failed.", | ||
"schema": { | ||
"$ref": "#/definitions/ErrorContract" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"definitions": { | ||
"TableProperties": { | ||
"properties": { | ||
"retentionInDays": { | ||
"type": "integer", | ||
"format": "int32", | ||
"minimum": 30, | ||
"maximum": 730, | ||
"description": "The data table data retention in days, between 30 and 730. Setting this property to null will default to the workspace retention." | ||
} | ||
}, | ||
"description": "Table properties." | ||
}, | ||
"Table": { | ||
"properties": { | ||
"properties": { | ||
"x-ms-client-flatten": true, | ||
"$ref": "#/definitions/TableProperties", | ||
"description": "Table properties." | ||
} | ||
}, | ||
"allOf": [ | ||
{ | ||
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource" | ||
} | ||
], | ||
"description": "Workspace data table definition." | ||
}, | ||
"TablesListResult": { | ||
"properties": { | ||
"value": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/Table" | ||
}, | ||
"description": "A list of data tables." | ||
} | ||
}, | ||
"description": "The list tables operation response." | ||
}, | ||
"ErrorContract": { | ||
"title": "Error details.", | ||
"description": "Contains details when the response code indicates an error.", | ||
"properties": { | ||
"error": { | ||
"description": "The details of the error.", | ||
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" | ||
} | ||
} | ||
} | ||
}, | ||
"parameters": { | ||
"TableNameParameter": { | ||
"name": "tableName", | ||
"in": "path", | ||
"required": true, | ||
"type": "string", | ||
"description": "The name of the table.", | ||
"x-ms-parameter-location": "method" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...-manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/examples/TablesGet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"parameters": { | ||
"resourceGroupName": "oiautorest6685", | ||
"workspaceName": "oiautorest6685", | ||
"api-version": "2020-03-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-00000000000", | ||
"tableName": "table1" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"retentionInDays": 30 | ||
}, | ||
"id": "/subscriptions/594038b5-1093-476e-a366-482775671c11/resourcegroups/calbot-rg/providers/microsoft.operationalinsights/workspaces/testresourcelock/tables/table1", | ||
"name": "table1" | ||
} | ||
} | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
...manager/Microsoft.OperationalInsights/preview/2020-03-01-preview/examples/TablesList.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"parameters": { | ||
"resourceGroupName": "oiautorest6685", | ||
"workspaceName": "oiautorest6685", | ||
"api-version": "2020-03-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-00000000000" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": [ | ||
{ | ||
"properties": { | ||
"retentionInDays": 7 | ||
}, | ||
"id": "/subscriptions/594038b5-1093-476e-a366-482775671c11/resourcegroups/calbot-rg/providers/microsoft.operationalinsights/workspaces/testresourcelock/tables/table1", | ||
"name": "table1" | ||
}, | ||
{ | ||
"properties": { | ||
"retentionInDays": 7 | ||
}, | ||
"id": "/subscriptions/594038b5-1093-476e-a366-482775671c11/resourcegroups/calbot-rg/providers/microsoft.operationalinsights/workspaces/testresourcelock/tables/table2", | ||
"name": "table2" | ||
}, | ||
{ | ||
"properties": { | ||
"retentionInDays": 7 | ||
}, | ||
"id": "/subscriptions/594038b5-1093-476e-a366-482775671c11/resourcegroups/calbot-rg/providers/microsoft.operationalinsights/workspaces/testresourcelock/tables/table3", | ||
"name": "table3" | ||
} | ||
] | ||
} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...nager/Microsoft.OperationalInsights/preview/2020-03-01-preview/examples/TablesUpdate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"parameters": { | ||
"resourceGroupName": "oiautorest6685", | ||
"workspaceName": "oiautorest6685", | ||
"api-version": "2020-03-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-00000000000", | ||
"tableName": "table1", | ||
"parameters": { | ||
"properties": { | ||
"retentionInDays": 30 | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"retentionInDays": 30 | ||
}, | ||
"id": "/subscriptions/594038b5-1093-476e-a366-482775671c11/resourcegroups/calbot-rg/providers/microsoft.operationalinsights/workspaces/testresourcelock/tables/table1", | ||
"name": "table1" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.