sincecutoff.com
← all changes

gcloud api-gateway gateways create adds response streaming mode

Introduced 2026-09-15 · score 0.97

HOW TO USE IT

When creating an API Gateway for streaming responses, run `gcloud api-gateway gateways create` with `--enable-streaming`; the mode is fixed at creation.

gcloud api-gateway gateways create <GATEWAY_ID> --api=<API_ID> --api-config=<CONFIG_ID> --location=<GCP_REGION> --enable-streaming

WHY THIS HELPS

Create an API Gateway that streams responses for a service using server-sent events, chunked HTTP, WebSockets, or bidirectional gRPC/HTTP2.

REQUIREMENTS AND LIMITATIONS

  • GATEWAY_ID (required): Gateway ID or fully qualified gateway identifier.
  • --location (required): Cloud location for the gateway.
  • --api-config (required): API config ID or fully qualified identifier for the config the gateway will use.
  • --api: API ID; may be specified with `--api-config`.
  • --enable-streaming: Create the gateway with streaming enabled; this setting cannot be changed after creation.
  • Prerequisite: If `--enable-streaming` is unrecognized, update the gcloud component installation with `gcloud components update`.
  • Streaming mode can only be set when the gateway is created.
  • Streaming response protocols listed are server-sent events, HTTP chunked transfer, WebSockets, and gRPC/HTTP2 bidirectional streaming.

FIRST-PARTY EVIDENCE

Check the installed version and the source before using it. Entry JSON

Report a problem with this card