---
title: "GET /2020-05-31/distributionsByKeyGroupId/{KeyGroupId}"
method: GET
path: "/2020-05-31/distributionsByKeyGroupId/{KeyGroupId}"
---

# GET /2020-05-31/distributionsByKeyGroupId/{KeyGroupId}

`GET /2020-05-31/distributionsByKeyGroupId/{KeyGroupId}`

Gets a list of distribution IDs for distributions that have a cache behavior that references the specified key group.

You can optionally specify the maximum number of items to receive in the response. If the total number of items in the list exceeds the maximum that you specify, or the default maximum, the response is paginated. To get the next page of items, send a subsequent request that specifies the `NextMarker` value from the current response as the `Marker` value in the subsequent request.

## Path parameters

- `KeyGroupId` string, required

## Query parameters

- `Marker` string
- `MaxItems` string

## Response `200`

Success

## Other responses

- `480` — NoSuchResource
- `481` — InvalidArgument

---

[API](https://skmtc.net/aws/apis/cloudfront.md) · [All operations](https://skmtc.net/aws/apis/cloudfront/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/cloudfront/versions/fd674fc97471/schema)
