---
id: policy-list
title: "List policies"
description: "List policies filtered by NRN."
sidebar_label: "List policies"
hide_title: true
hide_table_of_contents: true
api: eJzdWG1vGzcS/isDoh8SQJYVx74rFsgHN+310uv5DMfGFXACY0TOatlwSYYvilVh/3sx3JW0sgQ4B7R3wH1R4t3h8Jln5plZci0URRm0T9pZUYmfdUzgndFSU4Ram0SBFMxXcHVzNRUT4TwFZON3SlSiWK4qo2MSE5FwEUV1L67LU/FxIiLJHHRaiep+LeaEgcJlTo2o7j92HyfCY8CWEoVYDDQj+JwprMREWGxJVMIGKyYiyoZaFNVapJXnxzEFbReim4hAn7MOpESVQqbJk3huG2Lk4GpIDUGg6HKQBC+0lSYrbRcgG21UILt9GV/Cl4YClRV9hIDeG02RGaBHbL1hEC4s0OrfCh1vXlUopcs2vTmrGHv0KOnNeVVWyt7mvIrSeXpzITj6QNE7GylyXGezGf9ziH5LOHzBCDFLSTHW2TAU6Wwim3jhaJvTXyOvXh+y5ua/kuRM7Ui7Fx4XTGXBk02KnDcfeNuke2yDxTN+XF1H4odGtzodehne77xom2hBQUxEq61ucyuq2bH8xYQhcaa80zZB7QIURCXYKXxPNTJuSA5moGuwLoEPbqkVqb2EzboNuKMg8LEHcTY7CmN4Dza3cwpcUQNhvHGglIMFTwUbTWG8Ao1xX0jBEk0m0BHOZrM9YGezWdd1uwzs4GEIyGrQidr4XAa0Yt0UwRT1lAJRmmM4klWtjtKwH/glZKs/M2pFNulaUygJ2EljL5CLv/z1267HcKDVQ9dbNY6cv7i6uXoJ0ZPU9YqT/odJ8fW+FLl39D3mOaCcSrbcNJEjcYu3YeWTg384u4DroX3yDtHkxddQcXfz80kdNFllVmM6FAW9JAV1cO2YBMYzhR/JcnMgBZiTazFpicaswFmQgXp97MGUBebJJ2cXJ34MM2HK8euokDkEsgn6NUdIsSyie4Ey6SUVF4YSKa7AHZLhbbdXo0fq+ylRP73/1xX0b0FRrS3XCAPYuYFsFQX40mjZQGp0fFo5cBcpwj+dXbjvv4MycCCubMLHP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TL7mUknwarTroq+xlW5M//nArJgL3q+VJdRTvm+OnXY18r9e9xa37RLbrxAZ34r9F97Hrut8BRP1fcQ==
sidebar_class_name: "get api-method"
info_path: docs/api/approval
custom_edit_url: null
---

import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import ParamsDetails from "@theme/ParamsDetails";
import RequestSchema from "@theme/RequestSchema";
import StatusCodes from "@theme/StatusCodes";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";
import Heading from "@theme/Heading";

<Heading
  as={"h1"}
  className={"openapi__heading"}
  children={"List policies"}
>
</Heading>

<MethodEndpoint
  method={"get"}
  path={"/approval/policy"}
  context={"endpoint"}
>
  
</MethodEndpoint>



List policies filtered by NRN.

<Heading
  id={"request"}
  as={"h2"}
  className={"openapi-tabs__heading"}
  children={"Request"}
>
</Heading>

<ParamsDetails
  parameters={[{"in":"query","name":"nrn","schema":{"type":"string"},"required":true,"description":"The NRN of the resource (including children resources) where the policy applies.","example":"organization=1:account=2:namespace=4:application=4:scope=5"}]}
>
  
</ParamsDetails>

<RequestSchema
  title={"Body"}
  body={undefined}
>
  
</RequestSchema>

<StatusCodes
  id={undefined}
  label={undefined}
  responses={{"200":{"description":"The operation was successful.","content":{"application/json":{"schema":{"type":"object","required":["paging","results"],"properties":{"paging":{"type":"object","required":["offset","limit"],"properties":{"offset":{"type":"integer","minimum":0,"description":"The starting point for pagination. Defaults to 0 if not provided.","example":0},"limit":{"type":"integer","maximum":200,"description":"The maximum number of results to return per page. The maximum allowed value is 200.","example":200}}},"results":{"type":"array","items":{"type":"object","required":["id","nrn","name","conditions"],"properties":{"id":{"type":"integer","description":"A unique identifier for the policy.","example":5678},"nrn":{"type":"string","description":"A resource identifier (NRN) specifying where the policy applies.","example":"organization=1:account=2:namespace=3:application=4"},"name":{"type":"string","description":"The name of the policy.","example":"Crypto Kong Policies"},"slug":{"type":"string","description":"A URL-friendly identifier derived from the policy name. Generated automatically on creation.","example":"crypto-kong-policies"},"status":{"type":"string","description":"The current status of the policy.","enum":["active","deleted"],"example":"active"},"conditions":{"type":"object","description":"A JSON object defining the conditions under which this policy applies. Uses MongoDB query syntax.","example":{"scope.requested_spec.memory_in_gb":{"$lte":4}}},"selector":{"type":"object","description":"A JSON object that acts as a pre-filter. If the selector does not match the request context, the policy is skipped entirely and its conditions are not evaluated. Useful when multiple policies are attached to the same action and each should apply only to a specific subset of requests.\n","example":{"service.spec.id":{"$eq":2}}}},"title":"policy"}}},"title":"policyListResponse"}}}},"4XX":{"description":"Client error responses due to invalid input or missing parameters.","content":{"application/json":{"schema":{"type":"object","required":["statusCode","error","message"],"properties":{"statusCode":{"type":"integer","description":"HTTP status code representing the specific client error (e.g., 400, 401, 403, 404).","example":400},"code":{"type":"string","description":"A machine-readable error code that categorizes the server failure.","example":"bad_request"},"error":{"type":"string","description":"A brief, human-readable description of the error type (e.g., \"Bad Request\", \"Unauthorized\").","example":"Bad Request"},"message":{"type":"string","description":"Additional details about the error.","example":"The request was malformed or contained invalid parameters."}}}}}},"5XX":{"description":"Server error responses indicating an issue on the API side.","content":{"application/json":{"schema":{"type":"object","required":["statusCode","error","message"],"properties":{"statusCode":{"type":"integer","description":"HTTP status code representing the specific server error (e.g., 500, 502, 503).","example":500},"code":{"type":"string","description":"A machine-readable error code that categorizes the server failure.","example":"internal_server_error"},"error":{"type":"string","description":"A brief, human-readable description of the error type (e.g., \"Internal Server Error\", \"Service Unavailable\").","example":"Internal Server Error"},"message":{"type":"string","description":"Additional details about the error.","example":"An unexpected error occurred. Please try again later."}}}}}}}}
>
  
</StatusCodes>


      