You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: gateway/gateway-controller/api/management-openapi.yaml
+59-2Lines changed: 59 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -4194,6 +4194,8 @@ components:
4194
4194
description: List of API-level policies applied to all operations unless overridden
4195
4195
items:
4196
4196
$ref: "#/components/schemas/Policy"
4197
+
resilience:
4198
+
$ref: "#/components/schemas/Resilience"
4197
4199
operations:
4198
4200
type: array
4199
4201
description: List of HTTP operations/routes
@@ -4223,7 +4225,8 @@ components:
4223
4225
example: my-upstream-1
4224
4226
basePath:
4225
4227
type: string
4226
-
description: Base path prefix for all endpoints in this upstream (e.g., /api/v2). All requests to this upstream will have this path prepended.
4228
+
description: Base path prefix for all endpoints in this upstream (e.g., /api/v2). All requests to this upstream will have this path prepended. Must start with '/' and must not end with '/'; omit for root.
description: Weight for load balancing (optional, default 100)
4249
+
description: Relative weight for load balancing across multiple upstream targets. Reserved for future multi-target load balancing; not applied yet (only the first target is currently used).
4247
4250
minimum: 0
4248
4251
maximum: 100
4249
4252
example: 80
@@ -4258,6 +4261,25 @@ components:
4258
4261
pattern: '^\d+(\.\d+)?(ms|s|m|h)$'
4259
4262
example: 5s
4260
4263
4264
+
Resilience:
4265
+
type: object
4266
+
description: >
4267
+
Backend/route timeout configuration. Maps to Envoy RouteAction timeouts.
4268
+
Can be set at the API level (applies to all routes) and/or the operation level
4269
+
(applies to that operation's route). When set at both levels, the operation-level
4270
+
value takes precedence. When unset, the gateway's global route timeout defaults apply.
4271
+
properties:
4272
+
timeout:
4273
+
type: string
4274
+
description: Maximum time for the entire route (request to upstream response). "0s" disables the timeout.
4275
+
pattern: '^\d+(\.\d+)?(ms|s|m|h)$'
4276
+
example: 15s
4277
+
idleTimeout:
4278
+
type: string
4279
+
description: Per-route stream idle timeout (overrides the listener stream idle timeout for this route). "0s" disables the timeout.
4280
+
pattern: '^\d+(\.\d+)?(ms|s|m|h)$'
4281
+
example: 0s
4282
+
4261
4283
Upstream:
4262
4284
type: object
4263
4285
oneOf:
@@ -4313,6 +4335,8 @@ components:
4313
4335
description: List of policies applied only to this operation (overrides or adds to API-level policies)
4314
4336
items:
4315
4337
$ref: "#/components/schemas/Policy"
4338
+
resilience:
4339
+
$ref: "#/components/schemas/Resilience"
4316
4340
4317
4341
Policy:
4318
4342
type: object
@@ -5322,6 +5346,11 @@ components:
5322
5346
minLength: 1
5323
5347
maxLength: 253
5324
5348
example: "mcp1.example.com"
5349
+
upstreamDefinitions:
5350
+
type: array
5351
+
description: List of reusable upstream definitions with optional timeout configurations. Referenced by upstream.ref.
5352
+
items:
5353
+
$ref: "#/components/schemas/UpstreamDefinition"
5325
5354
upstream:
5326
5355
description: The backend MCP server url and auth configurations
5327
5356
allOf:
@@ -5350,6 +5379,15 @@ components:
5350
5379
enum: [deployed, undeployed]
5351
5380
default: deployed
5352
5381
example: deployed
5382
+
resilience:
5383
+
$ref: '#/components/schemas/Resilience'
5384
+
description: >
5385
+
API-level backend/route timeout configuration. Applies to the traffic-forwarding
5386
+
routes generated for this MCP proxy (GET/POST/DELETE on the MCP resource path).
5387
+
Supported at the API level only. Because MCP transports are long-lived streams,
5388
+
the route timeout defaults to disabled ("0s") for MCP unless a timeout is set here
5389
+
(unlike REST/LLM, which fall back to the gateway's global route timeout); the idle
5390
+
timeout remains the liveness guard.
5353
5391
5354
5392
MCPTool:
5355
5393
type: object
@@ -5790,6 +5828,11 @@ components:
5790
5828
type: string
5791
5829
description: Template name to use for this LLM Provider
5792
5830
example: openai
5831
+
upstreamDefinitions:
5832
+
type: array
5833
+
description: List of reusable upstream definitions with optional timeout configurations. Referenced by upstream.ref.
5834
+
items:
5835
+
$ref: "#/components/schemas/UpstreamDefinition"
5793
5836
upstream:
5794
5837
allOf:
5795
5838
- $ref: "#/components/schemas/Upstream"
@@ -5818,6 +5861,13 @@ components:
5818
5861
enum: [deployed, undeployed]
5819
5862
default: deployed
5820
5863
example: deployed
5864
+
resilience:
5865
+
$ref: '#/components/schemas/Resilience'
5866
+
description: >
5867
+
API-level backend/route timeout configuration. Applies to all routes generated
5868
+
for this LLM Provider (the routes that forward traffic upstream). Supported at the
5869
+
API level only - LLM routes are synthesized by the gateway, so there is no
5870
+
operation-level override.
5821
5871
5822
5872
UpstreamAuth:
5823
5873
type: object
@@ -6108,6 +6158,13 @@ components:
6108
6158
enum: [deployed, undeployed]
6109
6159
default: deployed
6110
6160
example: deployed
6161
+
resilience:
6162
+
$ref: '#/components/schemas/Resilience'
6163
+
description: >
6164
+
API-level backend/route timeout configuration. Applies to all routes generated
6165
+
for this LLM Proxy (the routes that forward traffic upstream). Supported at the
6166
+
API level only - LLM routes are synthesized by the gateway, so there is no
0 commit comments