diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-02-01/Operations.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-02-01/Operations.json new file mode 100644 index 000000000000..86bcbdd7d3d7 --- /dev/null +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-02-01/Operations.json @@ -0,0 +1,127 @@ +{ + "swagger": "2.0", + "info": { + "title": "Azure Log Analytics", + "description": "Azure Log Analytics API reference", + "version": "2022-02-01" + }, + "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": { + "/providers/Microsoft.OperationalInsights/operations": { + "get": { + "x-ms-examples": { + "Get specific operation status": { + "$ref": "./examples/OperationsListByTenant.json" + } + }, + "tags": [ + "Operations" + ], + "operationId": "Operations_List", + "description": "Lists all of the available OperationalInsights Rest API operations.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK response definition.", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "OperationListResult": { + "description": "Result of the request to list solution operations.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "x-ms-identifiers": [ + "name" + ], + "description": "List of solution operations supported by the OperationsManagement resource provider." + }, + "nextLink": { + "type": "string", + "readOnly": true, + "description": "URL to get the next set of operation list results if there are any." + } + } + }, + "Operation": { + "description": "Supported operation of OperationalInsights resource provider.", + "properties": { + "name": { + "description": "Operation name: {provider}/{resource}/{operation}", + "type": "string" + }, + "display": { + "description": "Display metadata associated with the operation.", + "properties": { + "provider": { + "description": "Service provider: Microsoft OperationsManagement.", + "type": "string" + }, + "resource": { + "description": "Resource on which the operation is performed etc.", + "type": "string" + }, + "operation": { + "description": "Type of operation: get, read, delete, etc.", + "type": "string" + }, + "description": { + "description": "Description of operation", + "type": "string" + } + } + } + } + } + }, + "parameters": {} +} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-02-01/Tables.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-02-01/Tables.json new file mode 100644 index 000000000000..774f2fe7993e --- /dev/null +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-02-01/Tables.json @@ -0,0 +1,787 @@ +{ + "swagger": "2.0", + "info": { + "title": "Azure Log Analytics", + "description": "Azure Log Analytics API reference", + "version": "2022-02-01" + }, + "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/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK response definition.", + "schema": { + "$ref": "#/definitions/TablesListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}": { + "put": { + "tags": [ + "Tables" + ], + "x-ms-examples": { + "TablesUpsert": { + "$ref": "./examples/TablesUpsert.json" + } + }, + "operationId": "Tables_CreateOrUpdate", + "description": "Update or Create a Log Analytics workspace table.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/TableNameParameter" + }, + { + "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" + } + }, + "202": { + "description": "Accepted response definition (Long running operation)." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "patch": { + "tags": [ + "Tables" + ], + "x-ms-examples": { + "TablesUpsert": { + "$ref": "./examples/TablesUpsert.json" + } + }, + "operationId": "Tables_Update", + "description": "Update a Log Analytics workspace table.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/TableNameParameter" + }, + { + "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" + } + }, + "202": { + "description": "Accepted response definition (Long running operation)." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "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/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/TableNameParameter" + } + ], + "responses": { + "200": { + "description": "OK response definition.", + "schema": { + "$ref": "#/definitions/Table" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "delete": { + "tags": [ + "Tables" + ], + "x-ms-examples": { + "TablesGet": { + "$ref": "./examples/TablesDelete.json" + } + }, + "operationId": "Tables_Delete", + "description": "Delete a Log Analytics workspace table.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/TableNameParameter" + } + ], + "responses": { + "200": { + "description": "OK response definition." + }, + "204": { + "description": "OK response definition." + }, + "202": { + "description": "Accepted response definition (Long running operation)." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/tables/{tableName}/migrate": { + "post": { + "tags": [ + "Tables" + ], + "x-ms-examples": { + "TablesGet": { + "$ref": "./examples/TablesMigrate.json" + } + }, + "operationId": "Tables_Migrate", + "description": "Migrate a Log Analytics table from support of the Data Collector API and Custom Fields features to support of Data Collection Rule-based Custom Logs.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/TableNameParameter" + } + ], + "responses": { + "200": { + "description": "OK response definition." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "Column": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Column name." + }, + "type": { + "type": "string", + "description": "Column data type.", + "enum": [ + "string", + "int", + "long", + "real", + "boolean", + "dateTime", + "guid", + "dynamic" + ], + "x-ms-enum": { + "name": "ColumnTypeEnum", + "modelAsString": true + } + }, + "dataTypeHint": { + "type": "string", + "description": "Column data type logical hint.", + "enum": [ + "uri", + "guid", + "armPath", + "ip" + ], + "x-ms-enum": { + "name": "ColumnDataTypeHintEnum", + "modelAsString": true, + "values": [ + { + "value": "uri", + "description": "A string that matches the pattern of a URI, for example, scheme://username:password@host:1234/this/is/a/path?k1=v1&k2=v2#fragment" + }, + { + "value": "guid", + "description": "A standard 128-bit GUID following the standard shape, xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" + }, + { + "value": "armPath", + "description": "An Azure Resource Model (ARM) path: /subscriptions/{...}/resourceGroups/{...}/providers/Microsoft.{...}/{...}/{...}/{...}..." + }, + { + "value": "ip", + "description": "A standard V4/V6 ip address following the standard shape, x.x.x.x/y:y:y:y:y:y:y:y" + } + ] + } + }, + "displayName": { + "type": "string", + "description": "Column display name." + }, + "description": { + "type": "string", + "description": "Column description." + }, + "isDefaultDisplay": { + "readOnly": true, + "type": "boolean", + "description": "Is displayed by default." + }, + "isHidden": { + "readOnly": true, + "type": "boolean", + "description": "Is column hidden." + } + }, + "description": "Table column." + }, + "Schema": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Table name." + }, + "displayName": { + "type": "string", + "description": "Table display name." + }, + "description": { + "type": "string", + "description": "Table description." + }, + "columns": { + "type": "array", + "items": { + "$ref": "#/definitions/Column" + }, + "x-ms-identifiers": [ + "name" + ], + "description": "A list of table custom columns." + }, + "standardColumns": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/Column" + }, + "x-ms-identifiers": [ + "name" + ], + "description": "A list of table standard columns." + }, + "categories": { + "readOnly": true, + "type": "array", + "items": { + "type": "string" + }, + "description": "Table category." + }, + "labels": { + "readOnly": true, + "type": "array", + "items": { + "type": "string" + }, + "description": "Table labels." + }, + "source": { + "readOnly": true, + "type": "string", + "description": "Table's creator.", + "enum": [ + "microsoft", + "customer" + ], + "x-ms-enum": { + "name": "SourceEnum", + "modelAsString": true, + "values": [ + { + "value": "microsoft", + "description": "Tables provisioned by the system, as collected via Diagnostic Settings, the Agents, or any other standard data collection means." + }, + { + "value": "customer", + "description": "Tables created by the owner of the Workspace, and only found in this Workspace." + } + ] + } + }, + "tableType": { + "readOnly": true, + "type": "string", + "description": "Table's creator.", + "enum": [ + "Microsoft", + "CustomLog", + "RestoredLogs", + "SearchResults" + ], + "x-ms-enum": { + "name": "TableTypeEnum", + "modelAsString": true, + "values": [ + { + "value": "Microsoft", + "description": "Standard data collected by Azure Monitor." + }, + { + "value": "CustomLog", + "description": "Custom log table." + }, + { + "value": "RestoredLogs", + "description": "Restored data." + }, + { + "value": "SearchResults", + "description": "Data collected by a search job." + } + ] + } + }, + "tableSubType": { + "readOnly": true, + "type": "string", + "description": "The subtype describes what APIs can be used to interact with the table, and what features are available against it.", + "enum": [ + "Any", + "Classic", + "DataCollectionRuleBased" + ], + "x-ms-enum": { + "name": "TableSubTypeEnum", + "modelAsString": true, + "values": [ + { + "value": "Any", + "description": "The default subtype with which built-in tables are created." + }, + { + "value": "Classic", + "description": "Indicates a table created through the Data Collector API or with the custom logs feature of the MMA agent, or any table against which Custom Fields were created." + }, + { + "value": "DataCollectionRuleBased", + "description": "A table eligible to have data sent into it via any of the means supported by Data Collection Rules: the Data Collection Endpoint API, ingestion-time transformations, or any other mechanism provided by Data Collection Rules" + } + ] + } + }, + "solutions": { + "readOnly": true, + "type": "array", + "items": { + "type": "string" + }, + "description": "List of solutions the table is affiliated with" + }, + "searchResults": { + "readOnly": true, + "$ref": "#/definitions/SearchResults", + "description": "Parameters of the search job that initiated this table." + }, + "restoredLogs": { + "readOnly": true, + "$ref": "#/definitions/RestoredLogs", + "description": "Parameters of the restore operation that initiated this table." + } + }, + "description": "Table's schema." + }, + "SearchResults": { + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "Search job query." + }, + "description": { + "type": "string", + "description": "Search job Description." + }, + "limit": { + "type": "integer", + "format": "int32", + "description": "Limit the search job to return up to specified number of rows." + }, + "startSearchTime": { + "type": "string", + "format": "date-time", + "description": "The timestamp to start the search from (UTC)" + }, + "endSearchTime": { + "type": "string", + "format": "date-time", + "description": "The timestamp to end the search by (UTC)" + }, + "sourceTable": { + "readOnly": true, + "type": "string", + "description": "The table used in the search job." + } + }, + "description": "Parameters of the search job that initiated this table." + }, + "RestoredLogs": { + "type": "object", + "properties": { + "startRestoreTime": { + "type": "string", + "format": "date-time", + "description": "The timestamp to start the restore from (UTC)." + }, + "endRestoreTime": { + "type": "string", + "format": "date-time", + "description": "The timestamp to end the restore by (UTC)." + }, + "sourceTable": { + "type": "string", + "description": "The table to restore data from." + } + }, + "description": "Restore parameters." + }, + "ResultStatistics": { + "type": "object", + "properties": { + "progress": { + "readOnly": true, + "type": "number", + "multipleOf": 0.01, + "description": "Search job completion percentage." + }, + "ingestedRecords": { + "readOnly": true, + "type": "integer", + "format": "int32", + "description": "The number of rows that were returned by the search job." + } + }, + "description": "Search job execution statistics." + }, + "TableProperties": { + "type": "object", + "properties": { + "retentionInDays": { + "type": "integer", + "format": "int32", + "minimum": 4, + "maximum": 730, + "description": "The table retention in days, between 4 and 730. Setting this property to -1 will default to the workspace retention." + }, + "totalRetentionInDays": { + "type": "integer", + "format": "int32", + "minimum": 4, + "maximum": 2555, + "description": "The table total retention in days, between 4 and 2555. Setting this property to -1 will default to table retention." + }, + "archiveRetentionInDays": { + "readOnly": true, + "type": "integer", + "format": "int32", + "description": "The table data archive retention in days. Calculated as (totalRetentionInDays-retentionInDays)" + }, + "searchResults": { + "$ref": "#/definitions/SearchResults", + "description": "Parameters of the search job that initiated this table." + }, + "restoredLogs": { + "$ref": "#/definitions/RestoredLogs", + "description": "Parameters of the restore operation that initiated this table." + }, + "resultStatistics": { + "$ref": "#/definitions/ResultStatistics", + "description": "Search job execution statistics." + }, + "plan": { + "type": "string", + "description": "Instruct the system how to handle and charge the logs ingested to this table.", + "enum": [ + "Basic", + "Analytics" + ], + "x-ms-enum": { + "name": "TablePlanEnum", + "modelAsString": true, + "values": [ + { + "value": "Basic", + "description": "Logs that are adjusted to support high volume low value verbose logs." + }, + { + "value": "Analytics", + "description": "Logs that allow monitoring and analytics." + } + ] + } + }, + "lastPlanModifiedDate": { + "readOnly": true, + "type": "string", + "description": "The timestamp that table plan was last modified (UTC)." + }, + "schema": { + "$ref": "#/definitions/Schema", + "description": "Table schema." + }, + "provisioningState": { + "type": "string", + "readOnly": true, + "description": "Table's current provisioning state. If set to 'updating', indicates a resource lock due to ongoing operation, forbidding any update to the table until the ongoing operation is concluded.", + "enum": [ + "Updating", + "InProgress", + "Succeeded" + ], + "x-ms-enum": { + "name": "ProvisioningStateEnum", + "modelAsString": true, + "values": [ + { + "value": "Updating", + "description": "Table schema is still being built and updated, table is currently locked for any changes till the procedure is done." + }, + { + "value": "InProgress", + "description": "Table schema is stable and without changes, table data is being updated." + }, + { + "value": "Succeeded", + "description": "Table state is stable and without changes, table is unlocked and open for new updates." + } + ] + } + } + }, + "description": "Table properties." + }, + "Table": { + "type": "object", + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/TableProperties", + "description": "Table's properties." + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "readOnly": true + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ProxyResource" + } + ], + "description": "Workspace data table definition." + }, + "TablesListResult": { + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Table" + }, + "description": "A list of data tables." + } + }, + "description": "The list tables operation response." + } + }, + "parameters": { + "TableNameParameter": { + "name": "tableName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the table.", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-02-01/Workspaces.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-02-01/Workspaces.json new file mode 100644 index 000000000000..30edcd8b3291 --- /dev/null +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-02-01/Workspaces.json @@ -0,0 +1,723 @@ +{ + "swagger": "2.0", + "info": { + "title": "Azure Log Analytics", + "description": "Azure Log Analytics API reference", + "version": "2022-02-01" + }, + "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}/providers/Microsoft.OperationalInsights/workspaces": { + "get": { + "tags": [ + "Workspaces" + ], + "x-ms-examples": { + "WorkspacesSubscriptionList": { + "$ref": "./examples/WorkspacesSubscriptionList.json" + } + }, + "operationId": "Workspaces_List", + "description": "Gets the workspaces in a subscription.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK response definition.", + "schema": { + "$ref": "#/definitions/WorkspaceListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces": { + "get": { + "tags": [ + "Workspaces" + ], + "x-ms-examples": { + "WorkspacesGet": { + "$ref": "./examples/WorkspacesListByResourceGroup.json" + } + }, + "operationId": "Workspaces_ListByResourceGroup", + "description": "Gets workspaces in a resource group.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK response definition.", + "schema": { + "$ref": "#/definitions/WorkspaceListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}": { + "put": { + "tags": [ + "Workspaces" + ], + "x-ms-examples": { + "WorkspacesCreate": { + "$ref": "./examples/WorkspacesCreate.json" + } + }, + "operationId": "Workspaces_CreateOrUpdate", + "description": "Create or update a workspace.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Workspace" + }, + "description": "The parameters required to create or update a workspace." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK response definition.", + "schema": { + "$ref": "#/definitions/Workspace" + } + }, + "201": { + "description": "Created response definition.", + "schema": { + "$ref": "#/definitions/Workspace" + } + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "Workspaces" + ], + "x-ms-examples": { + "WorkspacesDelete": { + "$ref": "./examples/WorkspacesDelete.json" + } + }, + "operationId": "Workspaces_Delete", + "description": "Deletes a workspace resource. To recover the workspace, create it again with the same name, in the same subscription, resource group and location. The name is kept for 14 days and cannot be used for another workspace. To remove the workspace completely and release the name, use the force flag.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "name": "force", + "in": "query", + "required": false, + "type": "boolean", + "description": "Deletes the workspace without the recovery option. A workspace that was deleted with this flag cannot be recovered." + } + ], + "responses": { + "200": { + "description": "OK response definition." + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "NoContent response definition." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "Workspaces" + ], + "x-ms-examples": { + "WorkspaceGet": { + "$ref": "./examples/WorkspacesGet.json" + } + }, + "operationId": "Workspaces_Get", + "description": "Gets a workspace instance.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK response definition.", + "schema": { + "$ref": "#/definitions/Workspace" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + }, + "patch": { + "tags": [ + "Workspaces" + ], + "x-ms-examples": { + "WorkspacesPatch": { + "$ref": "./examples/WorkspacesUpdate.json" + } + }, + "operationId": "Workspaces_Update", + "description": "Updates a workspace.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../common/v1/types.json#/parameters/WorkspaceNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/WorkspacePatch" + }, + "description": "The parameters required to patch a workspace." + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "The existing workspace was successfully updated. Check provisioningStatus to see detailed status.", + "schema": { + "$ref": "#/definitions/Workspace" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/deletedWorkspaces": { + "get": { + "tags": [ + "DeletedWorkspaces" + ], + "x-ms-examples": { + "WorkspacesSubscriptionList": { + "$ref": "./examples/WorkspacesSubscriptionList.json" + } + }, + "operationId": "DeletedWorkspaces_List", + "description": "Gets recently deleted workspaces in a subscription, available for recovery.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK response definition.", + "schema": { + "$ref": "#/definitions/WorkspaceListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/deletedWorkspaces": { + "get": { + "tags": [ + "DeletedWorkspaces" + ], + "x-ms-examples": { + "WorkspacesGet": { + "$ref": "./examples/WorkspacesListByResourceGroup.json" + } + }, + "operationId": "DeletedWorkspaces_ListByResourceGroup", + "description": "Gets recently deleted workspaces in a resource group, available for recovery.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK response definition.", + "schema": { + "$ref": "#/definitions/WorkspaceListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + } + }, + "definitions": { + "WorkspaceSku": { + "properties": { + "name": { + "type": "string", + "description": "The name of the SKU.", + "enum": [ + "Free", + "Standard", + "Premium", + "PerNode", + "PerGB2018", + "Standalone", + "CapacityReservation", + "LACluster" + ], + "x-ms-enum": { + "name": "WorkspaceSkuNameEnum", + "modelAsString": true + } + }, + "capacityReservationLevel": { + "type": "integer", + "format": "int32", + "description": "The capacity reservation level in GB for this workspace, when CapacityReservation sku is selected.", + "enum": [ + 100, + 200, + 300, + 400, + 500, + 1000, + 2000, + 5000 + ], + "x-ms-enum": { + "name": "CapacityReservationLevel" + } + }, + "lastSkuUpdate": { + "type": "string", + "description": "The last time when the sku was updated.", + "readOnly": true + } + }, + "required": [ + "name" + ], + "description": "The SKU (tier) of a workspace." + }, + "WorkspaceCapping": { + "description": "The daily volume cap for ingestion.", + "properties": { + "dailyQuotaGb": { + "type": "number", + "format": "double", + "description": "The workspace daily quota for ingestion." + }, + "quotaNextResetTime": { + "type": "string", + "description": "The time when the quota will be rest.", + "readOnly": true + }, + "dataIngestionStatus": { + "type": "string", + "readOnly": true, + "description": "The status of data ingestion for this workspace.", + "enum": [ + "RespectQuota", + "ForceOn", + "ForceOff", + "OverQuota", + "SubscriptionSuspended", + "ApproachingQuota" + ], + "x-ms-enum": { + "name": "DataIngestionStatus", + "modelAsString": true, + "values": [ + { + "value": "RespectQuota", + "description": "Ingestion enabled following daily cap quota reset, or subscription enablement." + }, + { + "value": "ForceOn", + "description": "Ingestion started following service setting change." + }, + { + "value": "ForceOff", + "description": "Ingestion stopped following service setting change." + }, + { + "value": "OverQuota", + "description": "Reached daily cap quota, ingestion stopped." + }, + { + "value": "SubscriptionSuspended", + "description": "Ingestion stopped following suspended subscription." + }, + { + "value": "ApproachingQuota", + "description": "80% of daily cap quota reached." + } + ] + } + } + } + }, + "WorkspaceProperties": { + "properties": { + "provisioningState": { + "type": "string", + "description": "The provisioning state of the workspace.", + "readOnly": true, + "enum": [ + "Creating", + "Succeeded", + "Failed", + "Canceled", + "Deleting", + "ProvisioningAccount", + "Updating" + ], + "x-ms-enum": { + "name": "WorkspaceEntityStatus", + "modelAsString": true + } + }, + "customerId": { + "type": "string", + "description": "This is a read-only property. Represents the ID associated with the workspace.", + "readOnly": true + }, + "sku": { + "$ref": "#/definitions/WorkspaceSku", + "description": "The SKU of the workspace." + }, + "retentionInDays": { + "type": "integer", + "format": "int32", + "x-nullable": true, + "description": "The workspace data retention in days. Allowed values are per pricing plan. See pricing tiers documentation for details." + }, + "workspaceCapping": { + "$ref": "#/definitions/WorkspaceCapping", + "description": "The daily volume cap for ingestion." + }, + "createdDate": { + "type": "string", + "description": "Workspace creation date.", + "readOnly": true + }, + "modifiedDate": { + "type": "string", + "description": "Workspace modification date.", + "readOnly": true + }, + "publicNetworkAccessForIngestion": { + "description": "The network access type for accessing Log Analytics ingestion.", + "$ref": "#/definitions/PublicNetworkAccessType" + }, + "publicNetworkAccessForQuery": { + "description": "The network access type for accessing Log Analytics query.", + "$ref": "#/definitions/PublicNetworkAccessType" + }, + "forceCmkForQuery": { + "type": "boolean", + "description": "Indicates whether customer managed storage is mandatory for query management." + }, + "privateLinkScopedResources": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/PrivateLinkScopedResource" + }, + "x-ms-identifiers": [ + "resourceId" + ], + "description": "List of linked private link scope resources." + }, + "features": { + "$ref": "#/definitions/WorkspaceFeatures", + "description": "Workspace features." + }, + "defaultDataCollectionRuleResourceId": { + "type": "string", + "description": "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}." + } + }, + "description": "Workspace properties." + }, + "WorkspaceFeatures": { + "properties": { + "enableDataExport": { + "type": "boolean", + "x-nullable": true, + "description": "Flag that indicate if data should be exported." + }, + "immediatePurgeDataOn30Days": { + "type": "boolean", + "x-nullable": true, + "description": "Flag that describes if we want to remove the data after 30 days." + }, + "enableLogAccessUsingOnlyResourcePermissions": { + "type": "boolean", + "x-nullable": true, + "description": "Flag that indicate which permission to use - resource or workspace or both." + }, + "clusterResourceId": { + "type": "string", + "x-nullable": true, + "description": "Dedicated LA cluster resourceId that is linked to the workspaces." + }, + "disableLocalAuth": { + "type": "boolean", + "x-nullable": true, + "description": "Disable Non-AAD based Auth." + } + }, + "additionalProperties": true, + "description": "Workspace features." + }, + "PrivateLinkScopedResource": { + "properties": { + "resourceId": { + "type": "string", + "description": "The full resource Id of the private link scope resource." + }, + "scopeId": { + "type": "string", + "description": "The private link scope unique Identifier." + } + }, + "description": "The private link scope resource reference." + }, + "Workspace": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/WorkspaceProperties", + "description": "Workspace properties." + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", + "readOnly": true + }, + "eTag": { + "type": "string", + "description": "The ETag of the workspace." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" + } + ], + "description": "The top level Workspace resource container." + }, + "WorkspacePatch": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/WorkspaceProperties", + "description": "Workspace properties." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-ms-mutability": [ + "read", + "create", + "update" + ], + "description": "Resource tags. Optional." + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/AzureEntityResource" + } + ], + "description": "The top level Workspace resource container." + }, + "WorkspaceListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Workspace" + }, + "description": "A list of workspaces." + } + }, + "description": "The list workspaces operation response." + }, + "PublicNetworkAccessType": { + "type": "string", + "description": "The network access type for operating on the Log Analytics Workspace. By default it is Enabled", + "default": "Enabled", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "PublicNetworkAccessType", + "modelAsString": true, + "values": [ + { + "value": "Enabled", + "description": "Enables connectivity to Log Analytics through public DNS." + }, + { + "value": "Disabled", + "description": "Disables public connectivity to Log Analytics through public DNS." + } + ] + } + } + }, + "parameters": {} +} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-02-01/examples/OperationsListByTenant.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-02-01/examples/OperationsListByTenant.json new file mode 100644 index 000000000000..c780062dfa07 --- /dev/null +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-02-01/examples/OperationsListByTenant.json @@ -0,0 +1,327 @@ +{ + "parameters": { + "api-version": "2022-02-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.OperationalInsights/workspaces/write", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Workspace", + "operation": "Create Workspace", + "description": "Creates a new workspace or links to an existing workspace by providing the customer id from the existing workspace." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/read", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Workspace", + "operation": "Get Workspace", + "description": "Gets an existing workspace" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/delete", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Workspace", + "operation": "Delete Workspace", + "description": "Deletes a workspace. If the workspace was linked to an existing workspace at creation time then the workspace it was linked to is not deleted." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/generateregistrationcertificate/action", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Registration Certificate", + "operation": "Generates Registration Certificate for Workspace.", + "description": "Generates Registration Certificate for the workspace. This Certificate is used to connect Microsoft System Center Operation Manager to the workspace." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/storageinsightconfigs/write", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Storage Insight Configuration", + "operation": "Create Storage Configuration", + "description": "Creates a new storage configuration. These configurations are used to pull data from a location in an existing storage account." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/storageinsightconfigs/read", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Storage Insight Configuration", + "operation": "Get Storage Configuration", + "description": "Gets a storage configuration." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/storageinsightconfigs/delete", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Storage Insight Configuration", + "operation": "Delete Storage Configuration", + "description": "Deletes a storage configuration. This will stop Microsoft Operational Insights from reading data from the storage account." + } + }, + { + "name": "Microsoft.OperationalInsights/register/action", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Register", + "operation": "Register a subscription to a resource provider.", + "description": "Register a subscription to a resource provider." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/sharedKeys/action", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Shared Keys", + "operation": "List Workspace Shared Keys", + "description": "Retrieves the shared keys for the workspace. These keys are used to connect Microsoft Operational Insights agents to the workspace." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/sharedKeys/read", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Shared Keys", + "operation": "List Workspace Shared Keys", + "description": "Retrieves the shared keys for the workspace. These keys are used to connect Microsoft Operational Insights agents to the workspace." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/listKeys/action", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "List Keys", + "operation": "List Workspace Keys", + "description": "Retrieves the list keys for the workspace. These keys are used to connect Microsoft Operational Insights agents to the workspace." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/listKeys/read", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "List Keys", + "operation": "List Workspace Keys", + "description": "Retrieves the list keys for the workspace. These keys are used to connect Microsoft Operational Insights agents to the workspace." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/managementGroups/read", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Management Group", + "operation": "Get Management Groups for Workspace", + "description": "Gets the names and metadata for System Center Operations Manager management groups connected to this workspace." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/usages/read", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Usage Metric", + "operation": "Get Usage Data for Workspace", + "description": "Gets usage data for a workspace including the amount of data read by the workspace." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/search/action", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Search", + "operation": "Search Workspace Data", + "description": "Executes a search query" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/schema/read", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Search Schema", + "operation": "Get Search Schema", + "description": "Gets the search schema for the workspace. Search schema includes the exposed fields and their types." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/datasources/read", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Data Source", + "operation": "Get datasources under a workspace.", + "description": "Get datasources under a workspace." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/datasources/write", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Data Source", + "operation": "Create/Update datasources under a workspace.", + "description": "Create/Update datasources under a workspace." + } + }, + {}, + {}, + {}, + {}, + { + "name": "Microsoft.OperationalInsights/workspaces/notificationSettings/read", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Notification Settings", + "operation": "Get Notification Settings", + "description": "Get the user's notification settings for the workspace." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/notificationSettings/write", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Notification Settings", + "operation": "Put Notification Settings", + "description": "Set the user's notification settings for the workspace." + } + }, + {}, + {}, + {}, + { + "name": "Microsoft.OperationalInsights/workspaces/configurationScopes/delete", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Configuration Scope", + "operation": "Delete Configuration Scope", + "description": "Delete Configuration Scope" + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/linkedServices/read", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Linked Services", + "operation": "Get linked services under given workspace.", + "description": "Get linked services under given workspace." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/linkedServices/write", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Linked Services", + "operation": "Create/Update linked services under given workspace.", + "description": "Create/Update linked services under given workspace." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/linkedServices/delete", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Linked Services", + "operation": "Delete linked services under given workspace.", + "description": "Delete linked services under given workspace." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/intelligencepacks/read", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Intelligence Packs", + "operation": "List Intelligence Packs", + "description": "Lists all intelligence packs that are visible for a given worksapce and also lists whether the pack is enabled or disabled for that workspace." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/intelligencepacks/enable/action", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Intelligence Packs", + "operation": "Enable Intelligence Pack", + "description": "Enables an intelligence pack for a given workspace." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/intelligencepacks/disable/action", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Intelligence Packs", + "operation": "Disable Intelligence Pack", + "description": "Disables an intelligence pack for a given workspace." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/analytics/query/action", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "analytics", + "operation": "Search using new engine.", + "description": "Search using new engine." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/analytics/query/schema/read", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "analytics", + "operation": "Get search schema V2.", + "description": "Get search schema V2." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/api/query/action", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "analytics", + "operation": "Search using new engine.", + "description": "Search using new engine." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/api/query/schema/read", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "analytics", + "operation": "Get search schema V2.", + "description": "Get search schema V2." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/purge/action", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "analytics", + "operation": "Delete specified data from workspace", + "description": "Delete specified data from workspace" + } + }, + { + "name": "Microsoft.OperationalInsights/linkTargets/read", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Unlinked Account", + "operation": "List Unlinked Accounts", + "description": "Lists existing accounts that are not associated with an Azure subscription. To link this Azure subscription to a workspace, use a customer id returned by this operation in the customer id property of the Create Workspace operation." + } + }, + { + "name": "Microsoft.OperationalInsights/workspaces/metricDefinitions/read", + "display": { + "provider": "Microsoft Operational Insights", + "resource": "Metric Definitions", + "operation": "Metric Definition operation", + "description": "Get Metric Definitions under workspace" + } + } + ], + "nextLink": "" + } + } + } +} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-02-01/examples/TablesDelete.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-02-01/examples/TablesDelete.json new file mode 100644 index 000000000000..d6864d660c04 --- /dev/null +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-02-01/examples/TablesDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "resourceGroupName": "oiautorest6685", + "workspaceName": "oiautorest6685", + "api-version": "2022-02-01", + "subscriptionId": "00000000-0000-0000-0000-00000000000", + "tableName": "table1_CL" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-02-01/examples/TablesGet.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-02-01/examples/TablesGet.json new file mode 100644 index 000000000000..14abcadfdd60 --- /dev/null +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-02-01/examples/TablesGet.json @@ -0,0 +1,119 @@ +{ + "parameters": { + "resourceGroupName": "oiautorest6685", + "workspaceName": "oiautorest6685", + "api-version": "2022-02-01", + "subscriptionId": "00000000-0000-0000-0000-00000000000", + "tableName": "table1_SRCH" + }, + "responses": { + "200": { + "body": { + "systemData": { + "createdBy": "00000000-0000-0000-0000-00000000000", + "createdAt": "2020-02-03T04:05:06Z" + }, + "properties": { + "resultStatistics": { + "progress": 75.0, + "ingestedRecords": 5 + }, + "schema": { + "name": "table1_SRCH", + "tableSubType": "DataCollectionRuleBased", + "tableType": "SearchResults", + "displayName": null, + "description": null, + "columns": [], + "standardColumns": [ + { + "isHidden": false, + "name": "TenantId", + "type": "guid", + "dataTypeHint": null, + "displayName": null, + "description": null, + "isDefaultDisplay": false + }, + { + "isHidden": false, + "name": "SourceSystem", + "type": "string", + "dataTypeHint": null, + "displayName": null, + "description": null, + "isDefaultDisplay": false + }, + { + "isHidden": false, + "name": "MG", + "type": "guid", + "dataTypeHint": null, + "displayName": null, + "description": null, + "isDefaultDisplay": false + }, + { + "isHidden": false, + "name": "ManagementGroupName", + "type": "string", + "dataTypeHint": null, + "displayName": null, + "description": null, + "isDefaultDisplay": false + }, + { + "isHidden": false, + "name": "TimeGenerated", + "type": "dateTime", + "dataTypeHint": null, + "displayName": null, + "description": null, + "isDefaultDisplay": false + }, + { + "isHidden": false, + "name": "Computer", + "type": "string", + "dataTypeHint": null, + "displayName": null, + "description": null, + "isDefaultDisplay": false + }, + { + "isHidden": false, + "name": "RawData", + "type": "string", + "dataTypeHint": null, + "displayName": null, + "description": null, + "isDefaultDisplay": false + } + ], + "categories": null, + "labels": null, + "source": null, + "solutions": [ + "LogManagement" + ], + "searchResults": { + "query": "Heartbeat | where SourceSystem != '' | project SourceSystem", + "description": "This table was created using a Search Job with the following query: 'Heartbeat | where SourceSystem != '' | project SourceSystem'.", + "limit": 1000, + "startSearchTime": "2020-02-03T04:05:06Z", + "endSearchTime": "2020-02-02T04:05:06Z", + "sourceTable": "Heartbeat" + } + }, + "provisioningState": "InProgress", + "retentionInDays": 50, + "totalRetentionInDays": 50, + "archiveRetentionInDays": 0, + "plan": "Analytics" + }, + "id": "/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/oiautorest6685/providers/Microsoft.OperationalInsights/workspaces/oiautorest6685/tables/table1_SRCH", + "name": "table1_SRCH" + } + } + } +} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-02-01/examples/TablesList.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-02-01/examples/TablesList.json new file mode 100644 index 000000000000..31d9a8498c79 --- /dev/null +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-02-01/examples/TablesList.json @@ -0,0 +1,250 @@ +{ + "parameters": { + "resourceGroupName": "oiautorest6685", + "workspaceName": "oiautorest6685", + "api-version": "2022-02-01", + "subscriptionId": "00000000-0000-0000-0000-00000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "schema": { + "name": "AzureNetworkFlow", + "tableSubType": "Any", + "tableType": "Microsoft", + "displayName": null, + "description": null, + "columns": null, + "standardColumns": [ + { + "isHidden": true, + "name": "TenantId", + "type": "guid", + "dataTypeHint": null, + "displayName": null, + "description": null, + "isDefaultDisplay": false + }, + { + "isHidden": false, + "name": "SourceSystem", + "type": "string", + "dataTypeHint": null, + "displayName": null, + "description": null, + "isDefaultDisplay": false + }, + { + "isHidden": false, + "name": "TimeGenerated", + "type": "dateTime", + "dataTypeHint": null, + "displayName": null, + "description": null, + "isDefaultDisplay": false + }, + { + "isHidden": false, + "name": "AgentID", + "type": "string", + "dataTypeHint": null, + "displayName": null, + "description": null, + "isDefaultDisplay": false + }, + { + "isHidden": false, + "name": "SourceIP", + "type": "string", + "dataTypeHint": null, + "displayName": null, + "description": null, + "isDefaultDisplay": false + }, + { + "isHidden": false, + "name": "Protocol", + "type": "string", + "dataTypeHint": null, + "displayName": null, + "description": null, + "isDefaultDisplay": false + }, + { + "isHidden": false, + "name": "SourcePort", + "type": "int", + "dataTypeHint": null, + "displayName": null, + "description": null, + "isDefaultDisplay": false + }, + { + "isHidden": false, + "name": "DestinationPort", + "type": "int", + "dataTypeHint": null, + "displayName": null, + "description": null, + "isDefaultDisplay": false + }, + { + "isHidden": false, + "name": "TcpFlags", + "type": "int", + "dataTypeHint": null, + "displayName": null, + "description": null, + "isDefaultDisplay": false + }, + { + "isHidden": false, + "name": "Packets", + "type": "int", + "dataTypeHint": null, + "displayName": null, + "description": null, + "isDefaultDisplay": false + }, + { + "isHidden": false, + "name": "Bytes", + "type": "int", + "dataTypeHint": null, + "displayName": null, + "description": null, + "isDefaultDisplay": false + }, + { + "isHidden": false, + "name": "BytesOut", + "type": "int", + "dataTypeHint": null, + "displayName": null, + "description": null, + "isDefaultDisplay": false + }, + { + "isHidden": false, + "name": "DurationInMs", + "type": "int", + "dataTypeHint": null, + "displayName": null, + "description": null, + "isDefaultDisplay": false + }, + { + "isHidden": false, + "name": "RstCount", + "type": "int", + "dataTypeHint": null, + "displayName": null, + "description": null, + "isDefaultDisplay": false + }, + { + "isHidden": false, + "name": "MaxSampleRtt", + "type": "int", + "dataTypeHint": null, + "displayName": null, + "description": null, + "isDefaultDisplay": false + } + ], + "categories": null, + "labels": null, + "source": null, + "solutions": [ + "LogManagement" + ] + }, + "provisioningState": "Succeeded", + "retentionInDays": 45, + "totalRetentionInDays": 70, + "archiveRetentionInDays": 25, + "plan": "Analytics" + }, + "name": "AzureNetworkFlow", + "id": "/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/oiautorest6685/providers/Microsoft.OperationalInsights/workspaces/oiautorest6685/tables/AzureNetworkFlow" + }, + { + "properties": { + "schema": { + "name": "SurfaceHubDns", + "tableSubType": "Any", + "tableType": "Microsoft", + "displayName": null, + "description": null, + "columns": null, + "standardColumns": [ + { + "isHidden": true, + "name": "TenantId", + "type": "guid", + "dataTypeHint": null, + "displayName": null, + "description": null, + "isDefaultDisplay": false + }, + { + "isHidden": false, + "name": "SourceSystem", + "type": "string", + "dataTypeHint": null, + "displayName": null, + "description": null, + "isDefaultDisplay": false + }, + { + "isHidden": false, + "name": "TimeGenerated", + "type": "dateTime", + "dataTypeHint": null, + "displayName": null, + "description": null, + "isDefaultDisplay": false + }, + { + "isHidden": false, + "name": "QueryName", + "type": "string", + "dataTypeHint": null, + "displayName": null, + "description": null, + "isDefaultDisplay": false + }, + { + "isHidden": false, + "name": "ComputerName", + "type": "string", + "dataTypeHint": null, + "displayName": null, + "description": null, + "isDefaultDisplay": false + } + ], + "categories": null, + "labels": null, + "source": null, + "solutions": [ + "LogManagement" + ] + }, + "provisioningState": "Succeeded", + "retentionInDays": 30, + "totalRetentionInDays": 30, + "archiveRetentionInDays": 0, + "plan": "Analytics" + }, + "name": "SurfaceHubDns", + "id": "/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/oiautorest6685/providers/Microsoft.OperationalInsights/workspaces/oiautorest6685/tables/SurfaceHubDns" + } + ] + } + } + } +} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-02-01/examples/TablesMigrate.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-02-01/examples/TablesMigrate.json new file mode 100644 index 000000000000..e7b8660bb0e3 --- /dev/null +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-02-01/examples/TablesMigrate.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "resourceGroupName": "oiautorest6685", + "workspaceName": "oiautorest6685", + "api-version": "2022-02-01", + "subscriptionId": "00000000-0000-0000-0000-00000000000", + "tableName": "table1_CL" + }, + "responses": { + "200": {} + } +} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-02-01/examples/TablesUpsert.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-02-01/examples/TablesUpsert.json new file mode 100644 index 000000000000..be4fd2fe09a5 --- /dev/null +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-02-01/examples/TablesUpsert.json @@ -0,0 +1,148 @@ +{ + "parameters": { + "resourceGroupName": "oiautorest6685", + "workspaceName": "oiautorest6685", + "api-version": "2022-02-01", + "subscriptionId": "00000000-0000-0000-0000-00000000000", + "tableName": "AzureNetworkFlow", + "parameters": { + "properties": { + "schema": { + "name": "AzureNetworkFlow", + "columns": [ + { + "name": "MyNewColumn", + "type": "guid" + } + ] + }, + "retentionInDays": 45, + "totalRetentionInDays": 70 + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "schema": { + "name": "AzureNetworkFlow", + "tableSubType": "DataCollectionRuleBased", + "tableType": "Microsoft", + "columns": [ + { + "isHidden": false, + "name": "MyNewColumn", + "type": "guid", + "isDefaultDisplay": false + } + ], + "standardColumns": [ + { + "isHidden": true, + "name": "TenantId", + "type": "guid", + "isDefaultDisplay": false + }, + { + "isHidden": false, + "name": "SourceSystem", + "type": "string", + "isDefaultDisplay": false + }, + { + "isHidden": false, + "name": "TimeGenerated", + "type": "dateTime", + "isDefaultDisplay": false + }, + { + "isHidden": false, + "name": "AgentID", + "type": "string", + "isDefaultDisplay": false + }, + { + "isHidden": false, + "name": "SourceIP", + "type": "string", + "isDefaultDisplay": false + }, + { + "isHidden": false, + "name": "Protocol", + "type": "string", + "isDefaultDisplay": false + }, + { + "isHidden": false, + "name": "SourcePort", + "type": "int", + "isDefaultDisplay": false + }, + { + "isHidden": false, + "name": "DestinationPort", + "type": "int", + "isDefaultDisplay": false + }, + { + "isHidden": false, + "name": "TcpFlags", + "type": "int", + "isDefaultDisplay": false + }, + { + "isHidden": false, + "name": "Packets", + "type": "int", + "isDefaultDisplay": false + }, + { + "isHidden": false, + "name": "Bytes", + "type": "int", + "isDefaultDisplay": false + }, + { + "isHidden": false, + "name": "BytesOut", + "type": "int", + "isDefaultDisplay": false + }, + { + "isHidden": false, + "name": "DurationInMs", + "type": "int", + "isDefaultDisplay": false + }, + { + "isHidden": false, + "name": "RstCount", + "type": "int", + "isDefaultDisplay": false + }, + { + "isHidden": false, + "name": "MaxSampleRtt", + "type": "int", + "isDefaultDisplay": false + } + ], + "solutions": [ + "LogManagement" + ] + }, + "provisioningState": "Succeeded", + "retentionInDays": 45, + "totalRetentionInDays": 70, + "archiveRetentionInDays": 25, + "plan": "Analytics" + }, + "id": "/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/oiautorest6685/providers/Microsoft.OperationalInsights/workspaces/oiautorest6685/tables/AzureNetworkFlow", + "name": "AzureNetworkFlow" + } + }, + "202": {} + } +} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-02-01/examples/WorkspacesCreate.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-02-01/examples/WorkspacesCreate.json new file mode 100644 index 000000000000..965f87fa5a3e --- /dev/null +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-02-01/examples/WorkspacesCreate.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "resourceGroupName": "oiautorest6685", + "workspaceName": "oiautorest6685", + "parameters": { + "properties": { + "sku": { + "name": "PerGB2018" + }, + "retentionInDays": 30 + }, + "location": "australiasoutheast", + "tags": { + "tag1": "val1" + } + }, + "api-version": "2022-02-01", + "subscriptionId": "00000000-0000-0000-0000-00000000000" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/oiautorest6685/providers/microsoft.operationalinsights/workspaces/aztest2170", + "name": "AzTest2170", + "type": "Microsoft.OperationalInsights/workspaces", + "location": "australiasoutheast", + "tags": { + "tag1": "val1" + }, + "properties": { + "customerId": "bc089d7b-485c-4aff-a71e-c00f362d8d2f", + "provisioningState": "Creating", + "sku": { + "name": "PerGB2018" + }, + "retentionInDays": 30, + "publicNetworkAccessForQuery": "Enabled", + "publicNetworkAccessForIngestion": "Enabled" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/oiautorest6685/providers/microsoft.operationalinsights/workspaces/aztest2170", + "name": "AzTest2170", + "type": "Microsoft.OperationalInsights/workspaces", + "location": "australiasoutheast", + "tags": { + "tag1": "val1" + }, + "properties": { + "customerId": "bc089d7b-485c-4aff-a71e-c00f362d8d2f", + "provisioningState": "Creating", + "sku": { + "name": "PerGB2018" + }, + "retentionInDays": 30, + "publicNetworkAccessForQuery": "Enabled", + "publicNetworkAccessForIngestion": "Enabled" + } + } + }, + "202": {} + } +} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-02-01/examples/WorkspacesDelete.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-02-01/examples/WorkspacesDelete.json new file mode 100644 index 000000000000..d7a5b68aee5d --- /dev/null +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-02-01/examples/WorkspacesDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "resourceGroupName": "oiautorest6685", + "workspaceName": "oiautorest6685", + "api-version": "2022-02-01", + "subscriptionId": "00000000-0000-0000-0000-00000000000" + }, + "responses": { + "200": {}, + "204": {}, + "202": {} + } +} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-02-01/examples/WorkspacesGet.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-02-01/examples/WorkspacesGet.json new file mode 100644 index 000000000000..62db7b333df7 --- /dev/null +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-02-01/examples/WorkspacesGet.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "resourceGroupName": "oiautorest6685", + "workspaceName": "oiautorest6685", + "api-version": "2022-02-01", + "subscriptionId": "00000000-0000-0000-0000-00000000000" + }, + "responses": { + "200": { + "body": [ + { + "properties": { + "customerId": "5b02755b-5bf4-430c-9487-45502a2a7e62", + "provisioningState": "Succeeded", + "sku": { + "name": "free" + }, + "retentionInDays": 30, + "publicNetworkAccessForQuery": "Enabled", + "publicNetworkAccessForIngestion": "Enabled" + }, + "id": "/subscriptions/594038b5-1093-476e-a366-482775671c11/resourcegroups/calbot-rg/providers/microsoft.operationalinsights/workspaces/testresourcelock", + "name": "TestResourceLock", + "type": "Microsoft.OperationalInsights/workspaces", + "location": "eastus" + }, + { + "properties": { + "customerId": "4884a2fd-b08f-4aa6-bf16-5757df1093fe", + "provisioningState": "Succeeded", + "sku": { + "name": "free" + }, + "retentionInDays": 30, + "publicNetworkAccessForQuery": "Enabled", + "publicNetworkAccessForIngestion": "Enabled" + }, + "id": "/subscriptions/594038b5-1093-476e-a366-482775671c11/resourcegroups/mms-eus/providers/microsoft.operationalinsights/workspaces/southukws", + "name": "SouthUKWS", + "type": "Microsoft.OperationalInsights/workspaces", + "location": "East US" + } + ] + } + } +} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-02-01/examples/WorkspacesListByResourceGroup.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-02-01/examples/WorkspacesListByResourceGroup.json new file mode 100644 index 000000000000..5a807173ee70 --- /dev/null +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-02-01/examples/WorkspacesListByResourceGroup.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "resourceGroupName": "oiautorest6685", + "api-version": "2022-02-01", + "subscriptionId": "00000000-0000-0000-0000-00000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "customerId": "bc089d7b-485c-4aff-a71e-c00f362d8d2f", + "provisioningState": "Succeeded", + "sku": { + "name": "PerGB2018" + }, + "retentionInDays": 30, + "publicNetworkAccessForQuery": "Enabled", + "publicNetworkAccessForIngestion": "Enabled" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/oiautorest6685/providers/microsoft.operationalinsights/workspaces/aztest2170", + "name": "AzTest2170", + "type": "Microsoft.OperationalInsights/workspaces", + "location": "australiasoutheast", + "tags": { + "tag1": "val1" + } + } + ] + } + } + } +} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-02-01/examples/WorkspacesSubscriptionList.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-02-01/examples/WorkspacesSubscriptionList.json new file mode 100644 index 000000000000..dd53d85c10a6 --- /dev/null +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-02-01/examples/WorkspacesSubscriptionList.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "api-version": "2022-02-01", + "subscriptionId": "00000000-0000-0000-0000-00000000000" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "customerId": "bc089d7b-485c-4aff-a71e-c00f362d8d2f", + "provisioningState": "Succeeded", + "sku": { + "name": "PerGB2018" + }, + "retentionInDays": 30, + "publicNetworkAccessForQuery": "Enabled", + "publicNetworkAccessForIngestion": "Enabled" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/oiautorest6685/providers/microsoft.operationalinsights/workspaces/aztest2170", + "name": "AzTest2170", + "type": "Microsoft.OperationalInsights/workspaces", + "location": "australiasoutheast", + "tags": { + "tag1": "val1" + } + } + ] + } + } + } +} diff --git a/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-02-01/examples/WorkspacesUpdate.json b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-02-01/examples/WorkspacesUpdate.json new file mode 100644 index 000000000000..891565bb8882 --- /dev/null +++ b/specification/operationalinsights/resource-manager/Microsoft.OperationalInsights/stable/2022-02-01/examples/WorkspacesUpdate.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "resourceGroupName": "oiautorest6685", + "workspaceName": "oiautorest6685", + "parameters": { + "properties": { + "sku": { + "name": "PerGB2018" + }, + "retentionInDays": 30, + "workspaceCapping": { + "dailyQuotaGb": -1 + } + } + }, + "api-version": "2022-02-01", + "subscriptionId": "00000000-0000-0000-0000-00000000000" + }, + "responses": { + "200": { + "body": { + "properties": { + "sku": { + "name": "PerGB2018" + }, + "retentionInDays": 30, + "publicNetworkAccessForQuery": "Enabled", + "publicNetworkAccessForIngestion": "Enabled", + "workspaceCapping": { + "dailyQuotaGb": -1, + "quotaNextResetTime": "Mon, 16 Nov 2020 15:00:00 GMT", + "dataIngestionStatus": "RespectQuota" + } + }, + "location": "australiasoutheast", + "tags": { + "tag1": "val1" + } + } + } + } +} diff --git a/specification/operationalinsights/resource-manager/readme.md b/specification/operationalinsights/resource-manager/readme.md index f82d3db1e3e3..c0134b396b02 100644 --- a/specification/operationalinsights/resource-manager/readme.md +++ b/specification/operationalinsights/resource-manager/readme.md @@ -4,10 +4,10 @@ This is the AutoRest configuration file for OperationalInsights. - - --- + ## Getting Started + To build the SDK for OperationalInsights, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: > `autorest` @@ -15,29 +15,40 @@ To build the SDK for OperationalInsights, simply [Install AutoRest](https://aka. To see additional help and options, run: > `autorest --help` + --- ## Configuration - - ### Basic Information + These are the global settings for the OperationalInsights API. -```yaml !$(python) || !$(track2) +``` yaml !$(python) || !$(track2) title: OperationalInsightsManagementClient ``` -```yaml $(python) && $(track2) + +``` yaml $(python) && $(track2) title: LogAnalyticsManagementClient ``` ``` yaml description: Operational Insights Client openapi-type: arm -tag: package-2021-12-01-preview +tag: package-2022-02 ``` +### Tag: package-2022-02 + +These settings apply only when `--tag=package-2022-02` is specified on the command line. + +```yaml $(tag) == 'package-2022-02' +input-file: + - Microsoft.OperationalInsights/stable/2022-02-01/Operations.json + - Microsoft.OperationalInsights/stable/2022-02-01/Tables.json + - Microsoft.OperationalInsights/stable/2022-02-01/Workspaces.json +``` ### Tag: package-2015-11-preview These settings apply only when `--tag=package-2015-11-preview` is specified on the command line. @@ -164,6 +175,7 @@ input-file: ``` ### Tag: package-2020-10-only + These settings apply only when `--tag=package-2020-10-only` is specified on the command line. ``` yaml $(tag) == 'package-2020-10-only' @@ -229,9 +241,10 @@ input-file: - Microsoft.OperationalInsights/stable/2021-06-01/Clusters.json - Microsoft.OperationalInsights/stable/2021-06-01/Workspaces.json ``` + --- -# Code Generation +# Code Generation ## Swagger to SDK @@ -253,13 +266,12 @@ swagger-to-sdk: - repo: azure-powershell ``` - ## C# These settings apply only when `--csharp` is specified on the command line. Please also specify `--csharp-sdks-folder=`. -```yaml $(csharp) +``` yaml $(csharp) csharp: # last generated using AutoRest.1.0.0-Nightly20170126 azure-arm: true @@ -282,7 +294,6 @@ See configuration in [readme.go.md](./readme.go.md) See configuration in [readme.java.md](./readme.java.md) - ## Suppression ``` yaml @@ -291,6 +302,3 @@ directive: suppress: R3006 # BodyTopLevelProperties/R3006/RPCViolation reason: properties etag defined as eTag in model ``` - - -