---
title: "Retrieve list of all local redirect policies"
method: GET
path: "/lrp"
tags: ["service"]
---

# Retrieve list of all local redirect policies

`GET /lrp`

## Response `200`

Success

- LRPSpec[]
  - `uid` string — Unique identification
  - `name` string — LRP service name
  - `namespace` string — LRP service namespace
  - `frontend-type` string — LRP frontend type
  - `lrp-type` string — LRP config type
  - `service-id` string — matching k8s service namespace and name
  - `frontend-mappings` FrontendMapping[] — mapping of frontends to pod backends
    - `frontend-address` FrontendAddress — Layer 4 address. The protocol is currently ignored, all services will behave as if protocol any is specified. To restrict to a particular protocol, use policy.
      - `ip` string — Layer 3 address
      - `protocol` 'tcp' | 'udp' | 'any' — Layer 4 protocol
      - `scope` 'external' | 'internal' — Load balancing scope for frontend address
      - `port` integer — Layer 4 port number
    - `backends` LRPBackend[] — Pod backends of an LRP
      - `pod-id` string — Namespace and name of the backend pod
      - `backend-address` BackendAddress — Service backend address
        - `ip` string, required — Layer 3 address
        - `protocol` string — Layer 4 protocol (TCP, UDP, etc)
        - `port` integer — Layer 4 port number
        - `nodeName` string — Optional name of the node on which this backend runs
        - `state` 'active' | 'terminating' | 'terminating-not-serving' | 'quarantined' | 'maintenance' — State of the backend for load-balancing service traffic
        - `preferred` boolean — Indicator if this backend is preferred in the context of clustermesh service affinity. The value is set based on related annotation of global service. Applicable for active state only.
        - `weight` integer, nullable — Backend weight
        - `zone` string — Optional name of the zone in which this backend runs

---

[API](https://skmtc.net/cilium/apis/cilium-api.md) · [All operations](https://skmtc.net/cilium/apis/cilium-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cilium/cilium-api/revisions/351336b27221/schema)
