---
title: "Returns MeshRetry entity"
method: GET
path: "/v1/mesh/control-planes/{cpId}/api/meshes/{mesh}/meshretries/{name}"
tags: ["MeshRetry"]
---

# Returns MeshRetry entity

`GET /v1/mesh/control-planes/{cpId}/api/meshes/{mesh}/meshretries/{name}`

## Path parameters

- `mesh` string, required
- `name` string, required

## Response `200`

Successful response

- MeshRetryItem — MeshRetry configures automatic retry behavior for failed requests to improve service reliability. It supports configurable retry conditions, limits, timeouts, and backoff strategies for HTTP, gRPC, and TCP traffic, helping services recover from transient failures.
  - `type` 'MeshRetry', required — the type of the resource
  - `mesh` string — Mesh is the name of the Kuma mesh this resource belongs to. It may be omitted for cluster-scoped resources.
  - `kri` string — A unique identifier for this resource instance used by internal tooling and integrations. Typically derived from resource attributes and may be used for cross-references or indexing
  - `name` string, required — Name of the Kuma resource
  - `labels` object — The labels to help identity resources
  - `spec` object, required — Spec is the specification of the Kuma MeshRetry resource.
    - `targetRef` object — TargetRef is a reference to the resource the policy takes an effect on. The resource could be either a real store object or virtual resource defined inplace.
      - `kind` 'Mesh' | 'MeshSubset' | 'MeshGateway' | 'MeshService' | 'MeshExternalService' | 'MeshMultiZoneService' | 'MeshServiceSubset' | 'MeshHTTPRoute' | 'Dataplane', required — Kind of the referenced resource
      - `labels` object — Labels are used to select group of MeshServices that match labels. Either Labels or Name and Namespace can be used.
      - `mesh` string — Mesh is reserved for future use to identify cross mesh resources.
      - `name` string — Name of the referenced resource. Can only be used with kinds: `MeshService`, `MeshServiceSubset` and `MeshGatewayRoute`
      - `namespace` string — Namespace specifies the namespace of target resource. If empty only resources in policy namespace will be targeted.
      - `proxyTypes` string[] — ProxyTypes specifies the data plane types that are subject to the policy. When not specified, all data plane types are targeted by the policy.
      - `sectionName` string — SectionName is used to target specific section of resource. For example, you can target port from MeshService.ports[] by its name. Only traffic to this port will be affected.
      - `tags` object — Tags used to select a subset of proxies by tags. Can only be used with kinds `MeshSubset` and `MeshServiceSubset`
    - `to` object[] — To list makes a match between the consumed services and corresponding configurations
      - `default` object — Default is a configuration specific to the group of destinations referenced in 'targetRef'
        - `grpc` object — GRPC defines a configuration of retries for GRPC traffic
          - `backOff` object — BackOff is a configuration of durations which will be used in an exponential backoff strategy between retries.
            - `baseInterval` string — BaseInterval is an amount of time which should be taken between retries. Must be greater than zero. Values less than 1 ms are rounded up to 1 ms. If not specified then the default value is "25ms".
            - `maxInterval` string — MaxInterval is a maximal amount of time which will be taken between retries. Default is 10 times the "BaseInterval".
          - `numRetries` integer — NumRetries is the number of attempts that will be made on failed (and retriable) requests. If not set, the default value is 1.
          - `perTryTimeout` string — PerTryTimeout is the maximum amount of time each retry attempt can take before it times out. If not set, the global request timeout for the route will be used. Setting this value to 0 will disable the per-try timeout.
          - `rateLimitedBackOff` object — RateLimitedBackOff is a configuration of backoff which will be used when the upstream returns one of the headers configured.
            - `maxInterval` string — MaxInterval is a maximal amount of time which will be taken between retries. If not specified then the default value is "300s".
            - `resetHeaders` object[] — ResetHeaders specifies the list of headers (like Retry-After or X-RateLimit-Reset) to match against the response. Headers are tried in order, and matched case-insensitive. The first header to be parsed successfully is used. If no headers match the default exponential BackOff is used instead.
              - …
          - `retryOn` string[] — RetryOn is a list of conditions which will cause a retry.
        - `http` object — HTTP defines a configuration of retries for HTTP traffic
          - `backOff` object — BackOff is a configuration of durations which will be used in exponential backoff strategy between retries.
            - `baseInterval` string — BaseInterval is an amount of time which should be taken between retries. Must be greater than zero. Values less than 1 ms are rounded up to 1 ms. If not specified then the default value is "25ms".
            - `maxInterval` string — MaxInterval is a maximal amount of time which will be taken between retries. Default is 10 times the "BaseInterval".
          - `hostSelection` object[] — HostSelection is a list of predicates that dictate how hosts should be selected when requests are retried.
            - `predicate` 'OmitPreviousHosts' | 'OmitHostsWithTags' | 'OmitPreviousPriorities', required — Type is requested predicate mode.
            - `tags` object — Tags is a map of metadata to match against for selecting the omitted hosts. Required if Type is OmitHostsWithTags
            - `updateFrequency` integer — UpdateFrequency is how often the priority load should be updated based on previously attempted priorities. Used for OmitPreviousPriorities.
          - `hostSelectionMaxAttempts` integer — HostSelectionMaxAttempts is the maximum number of times host selection will be reattempted before giving up, at which point the host that was last selected will be routed to. If unspecified, this will default to retrying once.
          - `numRetries` integer — NumRetries is the number of attempts that will be made on failed (and retriable) requests. If not set, the default value is 1.
          - `perTryTimeout` string — PerTryTimeout is the amount of time after which retry attempt should time out. If left unspecified, the global route timeout for the request will be used. Consequently, when using a 5xx based retry policy, a request that times out will not be retried as the total timeout budget would have been exhausted. Setting this timeout to 0 will disable it.
          - `rateLimitedBackOff` object — RateLimitedBackOff is a configuration of backoff which will be used when the upstream returns one of the headers configured.
            - `maxInterval` string — MaxInterval is a maximal amount of time which will be taken between retries. If not specified then the default value is "300s".
            - `resetHeaders` object[] — ResetHeaders specifies the list of headers (like Retry-After or X-RateLimit-Reset) to match against the response. Headers are tried in order, and matched case-insensitive. The first header to be parsed successfully is used. If no headers match the default exponential BackOff is used instead.
              - …
          - `retriableRequestHeaders` object[] — RetriableRequestHeaders is an HTTP headers which must be present in the request for retries to be attempted.
            - `name` string, required — Name is the name of the HTTP Header to be matched. Name MUST be lower case as they will be handled with case insensitivity (See https://tools.ietf.org/html/rfc7230#section-3.2).
            - `type` 'Exact' | 'Present' | 'RegularExpression' | 'Absent' | 'Prefix' — Type specifies how to match against the value of the header.
            - `value` string — Value is the value of HTTP Header to be matched.
          - `retriableResponseHeaders` object[] — RetriableResponseHeaders is an HTTP response headers that trigger a retry if present in the response. A retry will be triggered if any of the header matches the upstream response headers.
            - `name` string, required — Name is the name of the HTTP Header to be matched. Name MUST be lower case as they will be handled with case insensitivity (See https://tools.ietf.org/html/rfc7230#section-3.2).
            - `type` 'Exact' | 'Present' | 'RegularExpression' | 'Absent' | 'Prefix' — Type specifies how to match against the value of the header.
            - `value` string — Value is the value of HTTP Header to be matched.
          - `retryOn` string[] — RetryOn is a list of conditions which will cause a retry. Available values are: [5XX, GatewayError, Reset, Retriable4xx, ConnectFailure, EnvoyRatelimited, RefusedStream, Http3PostConnectFailure, HttpMethodConnect, HttpMethodDelete, HttpMethodGet, HttpMethodHead, HttpMethodOptions, HttpMethodPatch, HttpMethodPost, HttpMethodPut, HttpMethodTrace]. Also, any HTTP status code (500, 503, etc.).
        - `tcp` object — TCP defines a configuration of retries for TCP traffic
          - `maxConnectAttempt` integer — MaxConnectAttempt is a maximal amount of TCP connection attempts which will be made before giving up
      - `targetRef` object, required — TargetRef is a reference to the resource that represents a group of destinations.
        - `kind` 'Mesh' | 'MeshSubset' | 'MeshGateway' | 'MeshService' | 'MeshExternalService' | 'MeshMultiZoneService' | 'MeshServiceSubset' | 'MeshHTTPRoute' | 'Dataplane', required — Kind of the referenced resource
        - `labels` object — Labels are used to select group of MeshServices that match labels. Either Labels or Name and Namespace can be used.
        - `mesh` string — Mesh is reserved for future use to identify cross mesh resources.
        - `name` string — Name of the referenced resource. Can only be used with kinds: `MeshService`, `MeshServiceSubset` and `MeshGatewayRoute`
        - `namespace` string — Namespace specifies the namespace of target resource. If empty only resources in policy namespace will be targeted.
        - `proxyTypes` string[] — ProxyTypes specifies the data plane types that are subject to the policy. When not specified, all data plane types are targeted by the policy.
        - `sectionName` string — SectionName is used to target specific section of resource. For example, you can target port from MeshService.ports[] by its name. Only traffic to this port will be affected.
        - `tags` object — Tags used to select a subset of proxies by tags. Can only be used with kinds `MeshSubset` and `MeshServiceSubset`
  - `creationTime` string, date-time — Time at which the resource was created
  - `modificationTime` string, date-time — Time at which the resource was updated

## Other responses

- `404` — Not Found

---

[API](https://skmtc.net/kong/apis/konnect-api-beta.md) · [All operations](https://skmtc.net/kong/apis/konnect-api-beta/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kong/konnect-api-beta/versions/73b05fbfd2ef/schema)
