---
title: "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/cacheRules"
method: GET
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/cacheRules"
tags: ["CacheRules"]
---

# GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/cacheRules

`GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/cacheRules`

Lists all cache rule resources for the specified container registry.

## Path parameters

- `registryName` string, required

## Parameters

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

## Response `200`

Azure operation completed successfully.

- CacheRulesListResult — The result of a request to list cache rules for a container registry.
  - `value` CacheRule[] — The list of cache rules. Since this list may be incomplete, the nextLink field should be used to request the next list of cache rules. — unresolved $ref
  - `nextLink` string — The URI that can be used to request the next list of cache rules.

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.net/azure/apis/containerregistry-microsoft-containerregistry-registry.md) · [All operations](https://skmtc.net/azure/apis/containerregistry-microsoft-containerregistry-registry/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/containerregistry-microsoft-containerregistry-registry/revisions/32d4ccbab0a7/schema)
