Questions tagged [google-cloud-api-gateway]

API Gateway enables you to provide secure access to your backend services through a well-defined REST API that is consistent across all of your services, regardless of the service implementation.

With API Gateway, you can create, secure, and monitor APIs for Google Cloud serverless back ends, including Cloud Functions, Cloud Run, and App Engine. Built on Envoy, API Gateway gives you high performance, scalability, and the freedom to focus on building great apps.

Documentation page for API Gateway.

129 questions
0
votes
0 answers

Add a custom resource type to google cloud

We want to onboard our service to GCP and want customers to be able interact with our service via google cloud console. Essentially, we would like external users to be able to perform CRUD on our resource type(backed by our API service). What we are…
0
votes
0 answers

Google cloud run endpoint (extensible) service proxy api gateway firebase token

Super basic (video) but the title is nearly my comment to Top 3 ways to run your containers on Google Cloud User Authentication (content) in 2020 about api gateway from endpoints Maybe a focal point for an answer could be the app engine role for…
0
votes
1 answer

GCP API Gateway is confused about JWT by adding an external load-balancer in front

I had a running setup where a backend Cloud Run service was fronted by API Gateway. The security definition was straightforward: flow: "implicit" type: "oauth2" x-google-jwks_uri: "https://www.googleapis.com/oauth2/v3/certs" x-google-issuer:…
0
votes
1 answer

Routing traffic to two different backends in Cloud API Gateway using prefixes

I'm trying to migrate from using a Loadbalancer to Cloud API Gateway to reduce costs. My current loadbalancer routes all traffic to two backends, anything starting with /api/ goes to one cloud run backend (a rest API with many endpoints in it), and…
Dave
  • 1,645
  • 2
  • 23
  • 39
0
votes
1 answer

How do you use GCP's NodeJS library to deploy new API Gateway OpenAPI Specs?

The problem I'm trying to solve, is this: I want to be able to deploy a new API Gateway configuration-file, that is the OpenAPI 2.0 (Swagger) specification, which API Gateway uses to set up the endpoints. I want to do this through code and not the…
0
votes
0 answers

How to get parameters from API Gateway in Cloud Functions

I have a API Gateway that calls a Cloud Function.. I want to create a config file to 3 routes: ..myurl/user ..myurl/client ..myurl/order My problem is that I would like to use the same Cloud Function wrote in Python to deal with each scenario…
0
votes
0 answers

IndexError: list index out of range error in sys argv

I'm trying to upload a file to google cloud using the below Python code and it throws the list index out of range error. Can someone help me resolve this issue please ? import sys from sys import argv from google.cloud import storage def…
Lakshmi_N
  • 1
  • 1
  • 4
0
votes
1 answer

Why does my API Gateway endpoint work in a browser but not in CURL?

I have an API endpoint set up in google cloud platform configured to work with a google cloud function and API Gateway, secured behind an API key. I am attempting to test this and incorporate it into my app, but I'm getting a really weird issue that…
0
votes
1 answer

How do I add backend rule to the API service config file?

Trying to create an API for the first time in GCP and getting the following error ERROR: (gcloud.api-gateway.api-configs.create) API Config's backend has no rules. If using gRPC, be sure to specify the 'rules[]' under the 'Backend' field. See…
Ganesh
  • 1
  • 1
0
votes
1 answer

Cloud API Gateway doesn't allow with CORS

I have Cloud Gateway API that connects to Cloud Function. It worked great with an API key that I generated, but then when I restricted the key to enable access for my specific domain only - example.com, I started to get CORS errors on the client. (…
0
votes
0 answers

API Gateway straight through connection

We have multiple APIs with many endpoints in each one and these APIs are protected using oAuth so a token is required to access any of the APIs. We will eventually break these large APIs into microservices but for now I need to try and add a Cloud…
Anto
  • 419
  • 2
  • 9
  • 19
0
votes
2 answers

GCP API Gateway route returns Google Sign-In page instead of expected response

While following the documentation for setting up GCP's API Gateway, I run into an issue that when I make a call to the endpoint, like so: curl --request POST 'https://my-dev-project-XXX.wl.gateway.dev/helloWorld?key=XXX' it returns an HTML page to…
0
votes
0 answers

Is token valication needed if Firebase client requests through GCP API Gateway?

I know it is necessary if it is through AWS API gateway. Since firebase are from google, and from this article, it seems unnecessary. I am tossing up between keeping everything within Google or routing via AWS. Thank you.
0
votes
1 answer

Python SDK equivalent of the rest api endpoint apigateway.locations.get?

I am trying to find the python sdk equivalent of the rest api endpoint apigateway.locations.get. Here is the URL for the rest api documentation. I couldn't find any documentation on how to achieve the same using their python SDK. Can someone point…
0
votes
2 answers

Does gcp api gateway validate request body against OpenAPI spec before calling x-google-backend?

Google doesn't appear to be validating my request body schema or even that the request has a body when I use postman. Am I missing something? To me it's implied that google validates this sort of thing before calling the x-google-backend, but it…
1 2 3
8 9