---
title: "List all targets for a control plane"
method: GET
path: "/v2/control-planes/{controlPlaneId}/core-entities/targets"
tags: ["Targets"]
---

# List all targets for a control plane

`GET /v2/control-planes/{controlPlaneId}/core-entities/targets`

## Request

- Base URL: `https://global.api.konghq.com`
- URL: `https://global.api.konghq.com/v2/control-planes/{controlPlaneId}/core-entities/targets`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer

Returns a collection of all targets for a control plane.

## Query parameters

- `size` integer
- `offset` string
- `tags` string

## Response `200`

A paginated list response for a collection of targets.

- object
  - `data` Target[]
    - `created_at` number, nullable: Unix epoch when the resource was created.
    - `failover` boolean, nullable: Whether to use this target only as backup or not.
    - `id` string, nullable: A string representing a UUID (universally unique identifier).
    - `tags` string[], nullable: An optional set of strings associated with the Target for grouping and filtering.
    - `target` string, nullable, required: The target address (ip or hostname) and port. If the hostname resolves to an SRV record, the `port` value will be overridden by the value from the DNS record.
    - `updated_at` number, nullable: Unix epoch when the resource was last updated.
    - `upstream` object, nullable: The unique identifier or the name of the upstream for which to update the target.
      - `id` string
    - `weight` integer, nullable: The weight this target gets within the upstream loadbalancer (`0`-`65535`). If the hostname resolves to an SRV record, the `weight` value will be overridden by the value from the DNS record.
  - `next` string: URI to the next page (may be null)
  - `offset` string: Offset is used to paginate through the API. Provide this value to the next list operation to fetch the next page

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden

## Changes

- **2026-10-15** `7aab863a6daa`: 1 breaking, 2 warning
  - added `#/components/schemas/InvalidParameterMinimumTime, #/components/schemas/InvalidParameterMaximumTime` to the `invalid_parameters/items/` response property `oneOf` list for the response status `400`
  - added the new `key_invalid` enum value to the `invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/rule` response property for the response status `400`
  - added the new `unique` enum value to the `invalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/rule` response property for the response status `400`
- **2026-09-25** `68d43091b84d`: 2 warning
  - added the new `400.00` enum value to the `status` response property for the response status `400`
  - added the new `403.00` enum value to the `status` response property for the response status `403`
- **2026-09-18** `f324fb7610e4`: 2 breaking, 18 info
  - the response's body type changed from no type to `object` for status `400`
  - the response's body type changed from no type to `object` for status `403`
  - removed `#/components/schemas/BaseError, subschema #2` from the response body `allOf` list for the response status `400`
  - removed `#/components/schemas/BaseError, subschema #2` from the response body `allOf` list for the response status `401`
  - …16 more
- **2026-01-20** `7bc7400170e0`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kong/apis/konnect-api-go-sdk/changes/v2/control-planes/:controlPlaneId/core-entities/targets/get.md)

---

[API](https://skmtc.dev/kong/apis/konnect-api-go-sdk.md) · [All operations](https://skmtc.dev/kong/apis/konnect-api-go-sdk/llms.txt) · [OpenAPI document](https://skmtc.dev/kong/apis/konnect-api-go-sdk/revisions/7aab863a6daa?raw)
