AI Gateway Custom Policies

Get an AI Gateway Custom Policy

Changed on

Returns the details of a specific AI Gateway custom policy.

get/v1/ai-gateways/{gatewayId}/custom-policies/{customPolicyIdOrName}

Request

  • Base URL: https://global.api.konghq.com
  • URL: https://global.api.konghq.com/v1/ai-gateways/{gatewayId}/custom-policies/{customPolicyIdOrName}
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer
    • HTTP bearer
    • HTTP bearer

Response

A successful response returning the AI Gateway Custom Policy.

OR

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

    • info

      the response property const value installed was added for the status

    • info

      the response property const value streaming was added for the status

    • info

      removed the installed enum value from the //// response property for the response status

    • info

      removed the streaming enum value from the //// response property for the response status

    • info

      endpoint added