Getting startedGuidesReferenceChangelog
Apoxy:// Docs / Reference / Backend

Backend

API reference for backends (clrk.apoxy.dev/v1alpha1)

API Group: clrk.apoxy.dev/v1alpha1

Operations

List Backend

GET/apis/clrk.apoxy.dev/v1alpha1/backends

List Backend

Response

  • 200: OK

List Backend

GET/apis/clrk.apoxy.dev/v1alpha1/namespaces/{namespace}/backends

List Backend

Response

  • 200: OK

Create Backend

POST/apis/clrk.apoxy.dev/v1alpha1/namespaces/{namespace}/backends

Create a Backend

Request Body

Spec fields (BackendSpec):

FieldTypeDescription
bodyMutationBackendBodyMutationBodyMutation configures request-body rewrites applied at RequestBody end-of-stream when this backend is selected.
inferencePoolRefLocalObjectReferenceInferencePoolRef references a Gateway API Inference Extension InferencePool in the same namespace. Required when Type=InferencePool. Accepted but not yet served by the data plane.
modelRewritesModelRewrite[]ModelRewrites remap the request model ID before it reaches the upstream; the first entry whose From glob matches wins.
schemaBackendSchemaSchema declares the wire schema the upstream speaks. (required)
typestringType selects the destination kind. (required)
upstreamBackendUpstreamUpstream is the external host:port destination. Required when Type=Upstream.

Response

  • 200: OK
  • 201: Created
  • 202: Accepted

Delete All Backend

DELETE/apis/clrk.apoxy.dev/v1alpha1/namespaces/{namespace}/backends

Delete collection of Backend

Response

  • 200: OK

Get Backend

GET/apis/clrk.apoxy.dev/v1alpha1/namespaces/{namespace}/backends/{name}

Get the specified Backend

Response

  • 200: OK

Replace Backend

PUT/apis/clrk.apoxy.dev/v1alpha1/namespaces/{namespace}/backends/{name}

Replace the specified Backend

Request Body

Spec fields (BackendSpec):

FieldTypeDescription
bodyMutationBackendBodyMutationBodyMutation configures request-body rewrites applied at RequestBody end-of-stream when this backend is selected.
inferencePoolRefLocalObjectReferenceInferencePoolRef references a Gateway API Inference Extension InferencePool in the same namespace. Required when Type=InferencePool. Accepted but not yet served by the data plane.
modelRewritesModelRewrite[]ModelRewrites remap the request model ID before it reaches the upstream; the first entry whose From glob matches wins.
schemaBackendSchemaSchema declares the wire schema the upstream speaks. (required)
typestringType selects the destination kind. (required)
upstreamBackendUpstreamUpstream is the external host:port destination. Required when Type=Upstream.

Response

  • 200: OK
  • 201: Created

Update Backend

PATCH/apis/clrk.apoxy.dev/v1alpha1/namespaces/{namespace}/backends/{name}

Partially update the specified Backend

Response

  • 200: OK
  • 201: Created

Delete Backend

DELETE/apis/clrk.apoxy.dev/v1alpha1/namespaces/{namespace}/backends/{name}

Delete a Backend

Response

  • 200: OK
  • 202: Accepted

Schema Reference

BackendBodyMutation

FieldTypeDescription
ensureStreamUsagebooleanEnsureStreamUsage forces stream_options.include_usage=true on OpenAI-shaped streaming requests so streamed responses always emit terminal token usage. No-op for non-OpenAI schemas.

ModelRewrite

FieldTypeDescription
fromstringFrom is a glob (path.Match shape) over the request's model ID. (required)
tostringTo is the literal model ID substituted on the wire. (required)

BackendSchema

FieldTypeDescription
namestringName is the wire schema the upstream speaks. (required)

BackendUpstream

FieldTypeDescription
hoststringHost is the upstream DNS name (or IP literal) the egress proxy dials. SNI and certificate SAN validation are derived from it. (required)
portinteger (int32)Port is the upstream TCP port. Defaults to 443 (the egress data plane is TLS-terminating MITM, so backends are HTTPS).