Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to use google VM as a public Server

Hey, Im using google VM, I want to make get api requests to the Virtual Machine. I saw in the docs google only accepts json formatted requests and not URL requests. Is there anyway to make URL requests?

1 2 239
2 REPLIES 2

Hello @Joel_Bird,

Welcome to Google Cloud Community!

Were you referring to this document


The Compute Engine API expects API requests to be in JSON format. To make an API request, you can either make a direct HTTP request, by using tools like curl or httplib2, or you can use one of the available client libraries.

This document might also be useful for you. See Make an HTTP request

Hey, thanks for the reply, but I'm trying to handle incoming requests, not send them out