Stay organized with collections
Save and categorize content based on your preferences.
Use a custom domain with API Gateway
A custom domain for your gateway can be implemented by configuring HTTP(S) Load Balancing for API GatewayPREVIEW. Once the HTTP(S) load balancer for your gateway is set up, follow the steps below to update your custom domain's DNS records to point to the new load balancer service.
These steps are also required when using an HTTP(S) load balancer with a Google-managed certificate (which requires a domain). Allocating and using a static IP address is recommended when used with DNS. The specific instructions for this step depend on your DNS provider.
To send traffic to the load balancer, the DNS record of your custom domain (for example, my-app-domain) must point to the IP address(es) of the load balancer.
To find the IP address of your global forwarding rule, use this command:
gcloud compute forwarding-rules list
Update your domain's DNS A or AAAA record to point
to the load balancer's IP address so that traffic sent to the existing custom domain URL is routed through the load balancer instead. It may take as little as several seconds or as long as several hours for DNS to propagate this change to the DNS server.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-05 UTC."],[[["Configuring a custom domain for API Gateway involves setting up HTTP(S) Load Balancing for API Gateway."],["Updating your custom domain's DNS records to point to the load balancer service is required after setting up the HTTP(S) load balancer."],["To direct traffic to the load balancer, the DNS record of the custom domain must point to the load balancer's IP address(es)."],["Updating the domain's DNS A or AAAA record to the load balancer's IP address routes traffic through the load balancer, with DNS propagation taking varying amounts of time."],["Utilizing a static IP address with DNS when using an HTTP(S) Load Balancer is recommended."]]],[]]