---
title: "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks"
method: GET
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks"
---

# GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks

`GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks`

## Request

- Base URL: `https://management.azure.com`
- URL: `https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/queryPacks`
- Auth: OAuth 2
  - Implicit: `https://login.microsoftonline.com/common/oauth2/authorize`
  - Scopes: `user_impersonation`

Gets a list of Log Analytics QueryPacks within a resource group.

## Parameters

- `../../../../../../common-types/resource-management/v5/types.json#/components/parameters/ApiVersionParameter` (unresolved $ref)
- `../../../../../../common-types/resource-management/v5/types.json#/components/parameters/SubscriptionIdParameter` (unresolved $ref)
- `../../../../../../common-types/resource-management/v5/types.json#/components/parameters/ResourceGroupNameParameter` (unresolved $ref)

## Response `200`

Azure operation completed successfully.

- LogAnalyticsQueryPackListResult: The response of a LogAnalyticsQueryPack list operation.
  - `value` LogAnalyticsQueryPack[], required: The LogAnalyticsQueryPack items on this page (unresolved $ref)
  - `nextLink` string, uri: The link to the next page of items

## Other responses

- `default`: An unexpected error response.

---

[API](https://skmtc.dev/azure/apis/azure-log-analytics-network-security-perimeter-apis.md) - [All operations](https://skmtc.dev/azure/apis/azure-log-analytics-network-security-perimeter-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/azure/apis/azure-log-analytics-network-security-perimeter-apis/revisions/f7ecefbd3eee?raw)
