Skip to main content

Gateway route management

This guide outlines route management operations for published API Gateway endpoints.

Route management lifecycle

  1. Deploy Route: Create and publish an endpoint pointing to a workload target.
  2. Apply Security Policies: Configure open, JWT, or API key authentication modes.
  3. Configure Edge Restrictions: Attach IP allowlists and rate limit rules.
  4. Attach Custom Domains: Map custom hostnames with automated TLS management.
  5. Monitor & Maintain: Rotate API keys, unpublish/republish endpoints, or update policies.

Command reference

OperationCLI CommandAPI Endpoint
List Endpointsplatformctl gateway endpoint listGET /v1/projects/{project}/gateway/endpoints
Get Endpoint Detailsplatformctl gateway endpoint get <name>GET /v1/projects/{project}/gateway/endpoints/{name}
Update Authenticationplatformctl gateway endpoint update <name> --auth <mode>PATCH /v1/projects/{project}/gateway/endpoints/{name}
Update IP Allowlistplatformctl gateway endpoint update <name> --allow-cidr <cidr>PATCH /v1/projects/{project}/gateway/endpoints/{name}
Update Rate Limitplatformctl gateway endpoint update <name> --rate-limit <limit>PATCH /v1/projects/{project}/gateway/endpoints/{name}
Publish Endpointplatformctl gateway endpoint publish <name>POST /v1/projects/{project}/gateway/endpoints/{name}/publish
Unpublish Endpointplatformctl gateway endpoint unpublish <name>POST /v1/projects/{project}/gateway/endpoints/{name}/unpublish
Delete Endpointplatformctl gateway endpoint delete <name>DELETE /v1/projects/{project}/gateway/endpoints/{name}

Route lifecycle states

  • unpublished: Endpoint created; public URL offline; target workload unaffected.
  • programming: Edge router applying configuration and provisioning certificates (~seconds).
  • ready: Endpoint active and serving live HTTPS traffic.
  • pending_verification: Custom domain CNAME verification in progress.
  • failed: Configuration error; check technical details in Console or API.

Best practices

  • Decouple Policy from Code: Apply edge security, IP restrictions, and rate limits at the Gateway level.
  • Rotate API Keys: Periodically rotate apikey credentials using overlapping validity windows to avoid client downtime.
  • Use Custom Domains: Assign dedicated subdomains to production endpoints for branded API URLs.