Skip to content

Latest commit

 

History

History

compute

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Google Compute Engine Samples

This section contains samples for Google Compute Engine.

Running the samples

  1. Your environment must be setup with authentication information. Note that Cloud Monitoring does not currently work with gcloud auth. You will need to use a service account when running locally and set the GOOGLE_APPLICATION_CREDENTIALS environment variable.

     $ export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service_account.json
    
  2. Install dependencies from requirements.txt

     $ pip install -r requirements.txt
    
  3. Depending on the sample, you may also need to create resources on the Google Developers Console. Refer to the sample description and associated documentation page.

Additional resources

For more information on Compute Engine you can visit:

https://cloud.google.com/compute

For more information on the Cloud Monitoring API Python library surface you can visit:

https://developers.google.com/resources/api-libraries/documentation/compute/v1/python/latest/

For information on the Python Client Library visit:

https://developers.google.com/api-client-library/python