---
title: "Returns a list of MeshOPA in the mesh."
method: GET
path: "/v3/mesh/control-planes/{cpId}/meshes/{mesh}/meshopas"
tags: ["MeshOPA"]
---

# Returns a list of MeshOPA in the mesh.

`GET /v3/mesh/control-planes/{cpId}/meshes/{mesh}/meshopas`

## Request

- Base URL: `https://global.api.konghq.com`
- URL: `https://global.api.konghq.com/v3/mesh/control-planes/{cpId}/meshes/{mesh}/meshopas`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer

## Path parameters

- `cpId` string, uuid, required
- `mesh` string, required

## Query parameters

- `offset` integer
- `size` integer
- `filter` object
  - `key` string
  - `value` string

## Response `200`

List

- object
  - `items` MeshOPAItem[], required
    - `type` 'MeshOPA', 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 MeshOPA resource.
      - `default` object
        - `agentConfig` object: AgentConfig defines bootstrap OPA agent configuration.
          - `envVar` object
            - `name` string, required
          - `file` object
            - `path` string, required
          - `insecureInline` object
            - `value` string, required
          - `secretRef` object
            - `kind` 'Secret', required
            - `name` string, required
          - `type` 'File' | 'Secret' | 'EnvVar' | 'InsecureInline', required
        - `appendPolicies` object[]: Policies define OPA policies that will be applied on OPA Agent.
          - `ignoreDecision` boolean: If true, then policy won't be taken into account when making a decision.
          - `rego` object, required: OPA Policy written in Rego.
            - `envVar` object
              - …
            - `file` object
              - …
            - `insecureInline` object
              - …
            - `secretRef` object
              - …
            - `type` 'File' | 'Secret' | 'EnvVar' | 'InsecureInline', required
        - `authConfig` object: AuthConfig are configurations specific to the filter.
          - `onAgentFailure` 'Allow' | 'Deny': OnAgentFailure either 'allow' or 'deny' (default to deny) whether to allow requests when the authorization agent failed.
          - `requestBody` object: RequestBody configuration to apply on the request body sent to the authorization agent (if absent, the body is not sent).
            - `maxSize` integer: MaxSize defines the maximum payload size sent to authorization agent. If the payload is larger it will be truncated and there will be a header `x-envoy-auth-partial-body: true`. If it is set to 0 no body will be sent to the agent.
            - `sendRawBody` boolean: SendRawBody enable sending raw body instead of the body encoded into UTF-8
          - `statusOnError` integer: StatusOnError is the http status to return when there's a connection failure between the dataplane and the authorization agent
          - `timeout` string: Timeout for the single gRPC request from Envoy to OPA Agent.
      - `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' | 'Dataplane', required: Kind of the referenced resource
        - `labels` object: Labels are used to select referenced real resources and to carry legacy service identity when a common TargetRef must still target old service-tag based paths.
        - `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.
    - `creationTime` string, date-time: Time at which the resource was created
    - `modificationTime` string, date-time: Time at which the resource was updated
  - `total` number, required: The total number of entities
  - `next` string, nullable, required: URL to the next page, or null when this is the last page

## Changes

- **2026-12-03** `9c8d300657bd`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kong/apis/konnect-api-beta/changes/v3/mesh/control-planes/:cpId/meshes/:mesh/meshopas/get.md)

---

[API](https://skmtc.dev/kong/apis/konnect-api-beta.md) - [All operations](https://skmtc.dev/kong/apis/konnect-api-beta/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/konnect-api-beta/revisions/9c8d300657bd?raw)
