Questions tagged [google-compute-api]

30 questions
5
votes
0 answers

Google Cloud Platform compute error rate graph at 100% percent

My Google Forms add-on has a Google Cloud Platform (GCP) project attached to it, with various APIs enabled. The GCP APIs and Services dashboard has a graph for traffic and errors. Both the traffic and errors graphs show a line for "compute" and…
4
votes
2 answers

Google cloud compute instance update

I have a website deployed using docker image inside google compute instance. I'm unable to update the google cloud instance with a new image. Updating the compute instance with new docker image and running the container changes nothing. Here are the…
3
votes
1 answer

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 have a label attached that typically starts with…
Ari
  • 5,301
  • 8
  • 46
  • 120
3
votes
1 answer

Required 'Alpha Access' permission for 'Compute API' while adding additional disk on a VM instance

After adding additional disk on a VM instance, I got a "Required 'Alpha Access' permission for 'Compute API'" error when clicking save. Does anybody know what causes this error and how to solve this issue?
Julia Chang
  • 181
  • 1
  • 8
3
votes
1 answer

Is there a way to restart pre-emptible Google Cloud VM instances (Compute Engine) on an hourly basis if it has stopped?

I have some science jobs to run where the instance is has a mounted network drive to a server that is always. Since the cost of always on VMs cost double, I wanted to run pre-emptible VMs but restart them hourly if they have stopped. I want the jobs…
Sun
  • 2,595
  • 1
  • 26
  • 43
2
votes
2 answers

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 reservation configuration instance…
2
votes
1 answer

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 the GCP docs in Creating a Workflow with…
2
votes
3 answers

I want to get Operating System of the GCP VM instance

I want to get Operating System of the GCP VM instance. Currently I see only the image from which the instance was created. Is there a way of getting that? I see there is OS inventory Management which require some metadata to be set on the VM…
1
vote
2 answers

I am not able to access compute engine API with gcloud?

I have an instance running with access scope 'Set Access for each API', and explicitly allowing Compute Engine API with Read-Write access as showing in this below image. API access list So I logged inside the instance via SSH, and I tried to run…
1
vote
1 answer

How to filter google rest api json response for snapshot using creationtimestamp field?

I am retrieving compute engine snapshots from google projects using rest api in postman. I want to retrieve snapshots that were created after a certain time stamp value using the filter, If I pass the "=" as operator it works like the below…
0
votes
0 answers

Google API Instance method: addResourcePolicies - Invalid value for field 'resourcePolicies[0]'

I want to add a Google Cloud compute instance to an existed schedule, I found the rest API in https://cloud.google.com/compute/docs/reference/rest/v1/instances/addResourcePolicies, and on the Request body section mentioned how to add instance like…
0
votes
0 answers

Regex to select latest Public OS Image with Google Cloud CLI and Terraform Provider

Problem: Google Cloud CLI and Terraform Provider for Google Cloud do not provide clear enough documentation on usage of Regular Expressions, and inconsistency when executing identical expressions extracted from HTTP traces of successful regular…
0
votes
1 answer

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…
Amomynous
  • 95
  • 1
  • 2
  • 7
0
votes
1 answer

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 ConnectionError. Is there any limitation of the GCP…
0
votes
1 answer

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. However, I noticed that sometimes GCE allows the…
1
2