Skip to main content

schema

Creates, updates, deletes, gets or lists a schema resource.

Overview

Nameschema
TypeResource
Idazure.log_analytics.schema

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
metadataobjectThe metadata from search results.
valuearrayThe array of result values.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, workspace_name, subscription_idGets the schema for a given workspace.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
workspace_namestringThe name of the workspace. Required.

SELECT examples

Gets the schema for a given workspace.

SELECT
metadata,
value
FROM azure.log_analytics.schema
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workspace_name = '{{ workspace_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;