31 questions
0 votes
1 answer
153 views
curl error message "Object of class stdClass could not be converted to string" when using google computeRoute [closed]
I am using a curl request for my backend php class to access google's computeRoute. when I run a curl request with a string it works (as below). However dynamically generate the values with an array ...
0 votes
1 answer
459 views
GCP Committed Usage Discount(CUD) Utilization REST API
I have a commitment created in GCP cloud for a reservation. The commitment includes a VM e2-micro and a single virtual CPU with 1024MB memory. I am trying to get a utilization of this resource till ...
0 votes
1 answer
113 views
Whitelisting of IP in GCP using cloud function not working
I am writing a cloud function which gets trigger from slack with an IP and then we whitelist the IP in GCP firewall. because GCP firewall dont appeand so we have to get the IP and then appear a new IP ...
2 votes
2 answers
377 views
Google compute commited use/resevation doesnt use my existing instance
I have created instance with same configuration as mentioned in the Commmited use discount/reservation seciton, yet when i goto Reservations, it shows it is currently using none. reservationslist ...
0 votes
1 answer
75 views
Use google compute engine API to start instance with external IP
I'm trying to use Apps Script to interact with google compute engine and generate an instance. I've tested out a payload in the "TRY IT" (on the right side) of the google page (https://cloud....
0 votes
1 answer
201 views
Can I use the standard http.get library to access an API served on a GCP compute instance using the internal IP?
I have a GCP Workflows accessing an API served on a GCP Compute Instance using the public IP and it is working fine. Now I want to use the same Workflows but accessing by private IP and I get a ...
2 votes
1 answer
833 views
Authenticate to Container Registry when launching container on GCE via cloud workflows and compute engine API
I am trying to follow for the most part this guide to deploy a Google Workflow to launch a container optimized VM on compute engine, run a long running task, and then clean up the VM. I am also using ...
0 votes
1 answer
86 views
Checking programmatically when creating an instance from machine image will become possible
My framework uses Python API for GCE to create instances on the fly as needed. All the instances are based on single machine image. There is a limit on the rate of the instance-creation operation. ...
0 votes
1 answer
2k views
How can I get virtual machines specifications from Google cloud?
I would like to know if there is a way to collect the technical specifications of a virtual machine from Google Cloud (CPU, frequency, memory, storage) ? I am using the billing API (https://...
3 votes
1 answer
1k views
List instances that do not have a specific label in GCP using python
Is it possible to filter out instances on a wildcard or regex? I essentially just want GCE instances, not GKE or instances provisioned by other services. I've found that GCP service created instances ...
1 vote
1 answer
2k views
GCP Compute Engine Python API proper way to create clients
What is the current "standard" way to create a gcp compute client in python? I have seen both: import googleapiclient.discovery service = googleapiclient.discovery.build( 'container',...
0 votes
1 answer
730 views
Which client library to use to interact with Google Cloud Compute
I am working on a project to interact with Google Cloud Compute. For that I found 2 ways to interact with Google Cloud using Python (Can use other languages too); Google API clients(Rest orchestration)...
0 votes
1 answer
219 views
How do I specify only running instances in Google's Python API client?
I am building a list of gcloud instances using the Python API. These are the commands that pull the info from GCP on the servers: project_id = 'company1' zone = 'us-east1-b' compute = googleapiclient....
0 votes
1 answer
145 views
Access google storage from compute instance with no external IP [closed]
I need to read and write to a google storage from my vm with no public IP. It has a disk with a custom image with everything I need: python etc. I create an instance with a script like this one. In ...
0 votes
1 answer
977 views
GKE REST/Node API call to get number of nodes in a pool?
How can I get the current size of a GKE node pool using the REST (or Node) API? I'm managing my own worker pool using my Express app running on my cluster, and can set the size of the pool and track ...