---
title: "GET /subscriptions/{subscriptionId}/providers/Microsoft.Insights/scheduledQueryRules"
method: GET
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/scheduledQueryRules"
tags: ["scheduledQueryRules"]
---

# GET /subscriptions/{subscriptionId}/providers/Microsoft.Insights/scheduledQueryRules

`GET /subscriptions/{subscriptionId}/providers/Microsoft.Insights/scheduledQueryRules`

List the Log Search rules within a subscription group.

## Query parameters

- `$filter` string

## Parameters

- `../../../../../common-types/resource-management/v2/types.json#/components/parameters/ApiVersionParameter` — unresolved $ref
- `../../../../../common-types/resource-management/v2/types.json#/components/parameters/SubscriptionIdParameter` — unresolved $ref

## Response `200`

Successful request for a list of alert rules

- LogSearchRuleResourceCollection — Represents a collection of Log Search rule resources.
  - `value` LogSearchRuleResource[] — The values for the Log Search Rule resources.
    - `id` string — Azure resource Id
    - `name` string — Azure resource name
    - `type` string — Azure resource type
    - `location` string, required — Resource location
    - `tags` object — Resource tags
    - `kind` string — Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
    - `etag` string — The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.

## Other responses

- `default` — Error response describing why the operation failed.

## Changes

- **2021-07-05** (2018-04-16) `abb3e959cad6` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/azure/apis/microsoft-insights-api/changes/subscriptions/:subscriptionId/providers/Microsoft.Insights/scheduledQueryRules/get.md)

---

[API](https://skmtc.dev/azure/apis/microsoft-insights-api.md) · [All operations](https://skmtc.dev/azure/apis/microsoft-insights-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/microsoft-insights-api/revisions/46c99d537bea/schema)
