Compute Engine API

Creates and runs virtual machines on Google Cloud Platform.

Service: compute.googleapis.com

To call this service, we recommend that you use the Google-provided client libraries. If your application needs to use your own libraries to call this service, use the following information when you make the API requests.

Discovery document

A Discovery Document is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery document:

Service endpoint

A service endpoint is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:

  • https://compute.googleapis.com

REST Resource: v1.acceleratorTypes

Methods
aggregatedList GET /compute/v1/projects/{project}/aggregated/acceleratorTypes
Retrieves an aggregated list of accelerator types.
get GET /compute/v1/projects/{project}/zones/{zone}/acceleratorTypes/{resourceId}
Returns the specified accelerator type.
list GET /compute/v1/projects/{project}/zones/{zone}/acceleratorTypes
Retrieves a list of accelerator types that are available to the specified project.

REST Resource: v1.addresses

Methods
aggregatedList GET /compute/v1/projects/{project}/aggregated/addresses
Retrieves an aggregated list of addresses.
delete DELETE /compute/v1/projects/{project}/regions/{region}/addresses/{resourceId}
Deletes the specified address resource.
get GET /compute/v1/projects/{project}/regions/{region}/addresses/{resourceId}
Returns the specified address resource.
insert POST /compute/v1/projects/{project}/regions/{region}/addresses
Creates an address resource in the specified project by using the data included in the request.
list GET /compute/v1/projects/{project}/regions/{region}/addresses
Retrieves a list of addresses contained within the specified region.

REST Resource: v1.autoscalers

Methods
aggregatedList GET /compute/v1/projects/{project}/aggregated/autoscalers
Retrieves an aggregated list of autoscalers.
delete DELETE /compute/v1/projects/{project}/zones/{zone}/autoscalers/{resourceId}
Deletes the specified autoscaler.
get GET /compute/v1/projects/{project}/zones/{zone}/autoscalers/{resourceId}
Returns the specified autoscaler resource.
insert POST /compute/v1/projects/{project}/zones/{zone}/autoscalers
Creates an autoscaler in the specified project using the data included in the request.
list GET /compute/v1/projects/{project}/zones/{zone}/autoscalers
Retrieves a list of autoscalers contained within the specified zone.
patch PATCH /compute/v1/projects/{project}/zones/{zone}/autoscalers
Updates an autoscaler in the specified project using the data included in the request.
update PUT /compute/v1/projects/{project}/zones/{zone}/autoscalers
Updates an autoscaler in the specified project using the data included in the request.

REST Resource: v1.backendBuckets

Methods
addSignedUrlKey POST /compute/v1/projects/{project}/global/backendBuckets/{resourceId}/addSignedUrlKey
Adds a key for validating requests with signed URLs for this backend bucket.
delete DELETE /compute/v1/projects/{project}/global/backendBuckets/{resourceId}
Deletes the specified BackendBucket resource.
deleteSignedUrlKey POST /compute/v1/projects/{project}/global/backendBuckets/{resourceId}/deleteSignedUrlKey
Deletes a key for validating requests with signed URLs for this backend bucket.
get GET /compute/v1/projects/{project}/global/backendBuckets/{resourceId}
Returns the specified BackendBucket resource.
insert POST /compute/v1/projects/{project}/global/backendBuckets
Creates a BackendBucket resource in the specified project using the data included in the request.
list GET /compute/v1/projects/{project}/global/backendBuckets
Retrieves the list of BackendBucket resources available to the specified project.
patch PATCH /compute/v1/projects/{project}/global/backendBuckets/{resourceId}
Updates the specified BackendBucket resource with the data included in the request.
update PUT /compute/v1/projects/{project}/global/backendBuckets/{resourceId}
Updates the specified BackendBucket resource with the data included in the request.

REST Resource: v1.backendServices

Methods
addSignedUrlKey POST /compute/v1/projects/{project}/global/backendServices/{resourceId}/addSignedUrlKey
Adds a key for validating requests with signed URLs for this backend service.
aggregatedList GET /compute/v1/projects/{project}/aggregated/backendServices
Retrieves the list of all BackendService resources, regional and global, available to the specified project.
delete DELETE /compute/v1/projects/{project}/global/backendServices/{resourceId}
Deletes the specified BackendService resource.
deleteSignedUrlKey POST /compute/v1/projects/{project}/global/backendServices/{resourceId}/deleteSignedUrlKey
Deletes a key for validating requests with signed URLs for this backend service.
get GET /compute/v1/projects/{project}/global/backendServices/{resourceId}
Returns the specified BackendService resource.
getHealth POST /compute/v1/projects/{project}/global/backendServices/{resourceId}/getHealth
Gets the most recent health check results for this BackendService.
insert POST /compute/v1/projects/{project}/global/backendServices
Creates a BackendService resource in the specified project using the data included in the request.
list GET /compute/v1/projects/{project}/global/backendServices
Retrieves the list of BackendService resources available to the specified project.
patch PATCH /compute/v1/projects/{project}/global/backendServices/{resourceId}
Patches the specified BackendService resource with the data included in the request.
setSecurityPolicy POST /compute/v1/projects/{project}/global/backendServices/{resourceId}/setSecurityPolicy
Sets the Google Cloud Armor security policy for the specified backend service.
update PUT /compute/v1/projects/{project}/global/backendServices/{resourceId}
Updates the specified BackendService resource with the data included in the request.

REST Resource: v1.diskTypes

Methods
aggregatedList GET /compute/v1/projects/{project}/aggregated/diskTypes
Retrieves an aggregated list of disk types.
get GET /compute/v1/projects/{project}/zones/{zone}/diskTypes/{resourceId}
Returns the specified disk type.
list GET /compute/v1/projects/{project}/zones/{zone}/diskTypes
Retrieves a list of disk types available to the specified project.

REST Resource: v1.disks

Methods