Schema - Get
Gets the schema for a given workspace.
POST https://management.azure.com/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/schema?api-version=2025-07-01
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
resource
|
path | True |
string minLength: 1maxLength: 90 |
The name of the resource group. The name is case insensitive. |
|
subscription
|
path | True |
string minLength: 1 |
The ID of the target subscription. |
|
workspace
|
path | True |
string minLength: 4maxLength: 63 pattern: ^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$ |
The name of the workspace. |
|
api-version
|
query | True |
string minLength: 1 |
The API version to use for this operation. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
OK response definition. |
Security
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
| Name | Description |
|---|---|
| user_impersonation | impersonate your user account |
Examples
WorkspacesGetSchema
Sample request
Sample response
{
"metadata": {
"schema": {
"name": "CloudOps",
"version": 2
},
"resultType": "schema",
"requestTime": 28
},
"value": [
{
"name": "TenantId",
"displayName": "TenantId",
"type": "Guid",
"indexed": true,
"stored": false,
"facet": false,
"ownerType": [
"Alert",
"AzureActivity",
"AzureAudit",
"AzureMetrics",
"ComputerGroup",
"ETWEvent",
"Event",
"ExtraHopDBLogin",
"ExtraHopDBTransaction",
"ExtraHopDNSResponse",
"ExtraHopFTPResponse",
"ExtraHopHTTPTransaction",
"ExtraHopSMTPMessage",
"ExtraHopSYNScanDetect",
"ExtraHopTCPOpen",
"Heartbeat",
"Operation",
"Perf",
"ReservedAzureCommonFields",
"ReservedCommonFields",
"ServiceFabricOperationalEvent",
"ServiceFabricReliableActorEvent",
"ServiceFabricReliableServiceEvent",
"Syslog",
"Usage",
"W3CIISLog"
]
}
]
}
Definitions
| Name | Description |
|---|---|
|
Core |
The core summary of a search. |
|
Search |
The get schema operation response. |
|
Search |
Metadata for search results. |
|
Search |
Schema metadata for search. |
|
Search |
Value object for schema results. |
|
Search |
The sort parameters for search. |
|
Search |
The sort order of the search. |
CoreSummary
The core summary of a search.
| Name | Type | Description |
|---|---|---|
| numberOfDocuments |
integer (int64) |
The number of documents of a core summary. |
| status |
string |
The status of a core summary. |
SearchGetSchemaResponse
The get schema operation response.
| Name | Type | Description |
|---|---|---|
| metadata |
The metadata from search results. |
|
| value |
The array of result values. |
SearchMetadata
Metadata for search results.
| Name | Type | Description |
|---|---|---|
| aggregatedGroupingFields |
string |
The aggregated grouping fields. |
| aggregatedValueField |
string |
The aggregated value field. |
| coreSummaries |
The core summaries. |
|
| eTag |
string |
The ETag of the search results. |
| id |
string |
The id of the search results request. |
| lastUpdated |
string (date-time) |
The time of last update. |
| max |
integer (int64) |
The max of all aggregates returned in the result set. |
| requestId |
string |
The request id of the search. |
| requestTime |
integer (int64) |
The request time. |
| resultType |
string |
The search result type. |
| schema |
The schema. |
|
| sort |
How the results are sorted. |
|
| startTime |
string (date-time) |
The start time for the search. |
| status |
string |
The status of the search results. |
| sum |
integer (int64) |
The sum of all aggregates returned in the result set. |
| top |
integer (int64) |
The number of top search results. |
| total |
integer (int64) |
The total number of search results. |
SearchMetadataSchema
Schema metadata for search.
| Name | Type | Description |
|---|---|---|
| name |
string |
The name of the metadata schema. |
| version |
integer (int32) |
The version of the metadata schema. |
SearchSchemaValue
Value object for schema results.
| Name | Type | Description |
|---|---|---|
| displayName |
string |
The display name of the schema. |
| facet |
boolean |
The boolean that indicates whether or not the field is a facet. |
| indexed |
boolean |
The boolean that indicates the field is searchable as free text. |
| name |
string |
The name of the schema. |
| ownerType |
string[] |
The array of workflows containing the field. |
| stored |
boolean |
The boolean that indicates whether or not the field is stored. |
| type |
string |
The type. |
SearchSort
The sort parameters for search.
| Name | Type | Description |
|---|---|---|
| name |
string |
The name of the field the search query is sorted on. |
| order |
The sort order of the search. |
SearchSortEnum
The sort order of the search.
| Value | Description |
|---|---|
| asc | |
| desc |