AI Gateway Custom Policies
List AI Gateway Custom Policies
Changed onReturns a list of custom policies registered for the AI Gateway.
get/v1/ai-gateways/{gatewayId}/custom-policies
Request
- Base URLhttps://global.api.konghq.com
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
- or HTTP bearer
Path parameters
gatewayId, string uuid required
Contains a unique identifier used for this resource.
Example:5f9fd312-a987-4628-b4c5-bb4f4fddd5f7
The unique ID of the AI Gateway.
Query parameters
page[size], integer
Example:10
The maximum number of items to include per page. The last page of a collection may include fewer items.
page[after], string
Example:ewogICJpZCI6ICJoZWxsbyB3b3JsZCIKfQ
Request the next page of data, starting with the item after this parameter.
Response
A successful response listing AI Gateway Custom Policies.
object required
data, AIGateway Custom Policy[] required
meta, Cursor Meta required
Pagination metadata.
Example response
{
"data": [
{
"name": "my-installed-custom-policy",
"display_name": "Custom Policy - Installed plugin",
"schema": "<lua_schema>",
"labels": {
"category": "finance"
},
"managed_by": {
"owner": "terraform"
},
"id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
"created_at": "2022-11-04T20:10:06.927Z",
"updated_at": "2022-11-04T20:10:06.927Z"
}
],
"meta": {
"page": {
"size": 10
}
}
}Changes
- info
the
typeresponse property const valueinstalledwas added for the status - info
the
typeresponse property const valuestreamingwas added for the status - info
removed the
installedenum value from thedata/items/oneOf[#/components/schemas/AIGatewayCustomPolicyInstalled]/typeresponse property for the response status
1 more change in this revision
- info