Create an AI Gateway Custom Policy
Changed onRegisters a new custom policy for the AI Gateway.
Request
- Base URL: https://global.api.konghq.com
- URL: https://global.api.konghq.com/v1/ai-gateways/{gatewayId}/custom-policies
- Auth: one of:
- HTTP bearer
- HTTP bearer
- HTTP bearer
- HTTP bearer
Request body
Example request
{
"name": "my-entity-name",
"display_name": "Custom Policy - Installed plugin",
"schema": "<lua_schema>",
"labels": {
"category": "finance"
},
"managed_by": {
"owner": "terraform"
}
}Response
Custom policy created successfully.
Example response
{
"name": "my-entity-name",
"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"
}Changes
- breaking
added to the
/response propertyoneOflist for the response status - warning
added the new
key_invalidenum value to the//////response property for the response status - warning
added the new
uniqueenum value to the//////response property for the response status
- breaking
- breaking
the
request property const valueinstalledwas added - breaking
the
request property const valuestreamingwas added - breaking
removed the enum value
installedof the request property//// - breaking
removed the enum value
streamingof the request property//// - info
the
response property const valueinstalledwas added for the status - info
the
response property const valuestreamingwas added for the status - info
removed the
installedenum value from the////response property for the response status - info
removed the
streamingenum value from the////response property for the response status
- breaking