Compute Engine API

Creates and runs virtual machines on Google Cloud Platform.

Service: compute.googleapis.com

We recommend that you call this service using Google-provided client libraries. If your application needs to call this service using your own libraries, you should use the following information when making 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 may 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 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 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
addResourcePolicies POST /compute/v1/projects/{project}/zones/{zone}/disks/{resourceId}/addResourcePolicies
Adds existing resource policies to a disk.
aggregatedList GET /compute/v1/projects/{project}/aggregated/disks
Retrieves an aggregated list of persistent disks.
createSnapshot POST /compute/v1/projects/{project}/zones/{zone}/disks/{resourceId}/createSnapshot
Creates a snapshot of a specified persistent disk.
delete DELETE /compute/v1/projects/{project}/zones/{zone}/disks/{resourceId}
Deletes the specified persistent disk.
get GET /compute/v1/projects/{project}/zones/{zone}/disks/{resourceId}
Returns a specified persistent disk.
getIamPolicy GET /compute/v1/projects/{project}/zones/{zone}/disks/{resourceId}/getIamPolicy
Gets the access control policy for a resource.
insert POST /compute/v1/projects/{project}/zones/{zone}/disks
Creates a persistent disk in the specified project using the data in the request.
list GET /compute/v1/projects/{project}/zones/{zone}/disks
Retrieves a list of persistent disks contained within the specified zone.
removeResourcePolicies POST /compute/v1/projects/{project}/zones/{zone}/disks/{resourceId}/removeResourcePolicies
Removes resource policies from a disk.
resize POST /compute/v1/projects/{project}/zones/{zone}/disks/{resourceId}/resize
Resizes the specified persistent disk.
setIamPolicy POST /compute/v1/projects/{project}/zones/{zone}/disks/{resourceId}/setIamPolicy
Sets the access control policy on the specified resource.
setLabels POST /compute/v1/projects/{project}/zones/{zone}/disks/{resourceId}/setLabels
Sets the labels on a disk.
testIamPermissions POST /compute/v1/projects/{project}/zones/{zone}/disks/{resourceId}/testIamPermissions
Returns permissions that a caller has on the specified resource.

REST Resource: v1.externalVpnGateways

Methods
delete DELETE /compute/v1/projects/{project}/global/externalVpnGateways/{resourceId}
Deletes the specified externalVpnGateway.
get GET /compute/v1/projects/{project}/global/externalVpnGateways/{resourceId}
Returns the specified externalVpnGateway.
insert POST /compute/v1/projects/{project}/global/externalVpnGateways
Creates a ExternalVpnGateway in the specified project using the data included in the request.
list GET /compute/v1/projects/{project}/global/externalVpnGateways
Retrieves the list of ExternalVpnGateway available to the specified project.
setLabels POST /compute/v1/projects/{project}/global/externalVpnGateways/{resourceId}/setLabels
Sets the labels on an ExternalVpnGateway.
testIamPermissions POST /compute/v1/projects/{project}/global/externalVpnGateways/{resourceId}/testIamPermissions
Returns permissions that a caller has on the specified resource.

REST Resource: v1.firewalls

Methods
delete DELETE /compute/v1/projects/{project}/global/firewalls/{resourceId}
Deletes the specified firewall.
get GET /compute/v1/projects/{project}/global/firewalls/{resourceId}
Returns the specified firewall.
insert POST /compute/v1/projects/{project}/global/firewalls
Creates a firewall rule in the specified project using the data included in the request.
list GET /compute/v1/projects/{project}/global/firewalls
Retrieves the list of firewall rules available to the specified project.
patch PATCH /compute/v1/projects/{project}/global/firewalls/{resourceId}
Updates the specified firewall rule with the data included in the request.
update PUT /compute/v1/projects/{project}/global/firewalls/{resourceId}
Updates the specified firewall rule with the data included in the request.

REST Resource: v1.forwardingRules

Methods
aggregatedList GET /compute/v1/projects/{project}/aggregated/forwardingRules
Retrieves an aggregated list of forwarding rules.
delete DELETE /compute/v1/projects/{project}/regions/{region}/forwardingRules/{resourceId}
Deletes the specified ForwardingRule resource.
get GET /compute/v1/projects/{project}/regions/{region}/forwardingRules/{resourceId}
Returns the specified ForwardingRule resource.
insert POST /compute/v1/projects/{project}/regions/{region}/forwardingRules
Creates a ForwardingRule resource in the specified project and region using the data included in the request.
list GET /compute/v1/projects/{project}/regions/{region}/forwardingRules
Retrieves a list of ForwardingRule resources available to the specified project and region.
setTarget POST /compute/v1/projects/{project}/regions/{region}/forwardingRules/{resourceId}/setTarget
Changes target URL for forwarding rule.

REST Resource: v1.globalAddresses

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

REST Resource: v1.globalForwardingRules

Methods
delete DELETE /compute/v1/projects/{project}/global/forwardingRules/{resourceId}
Deletes the specified GlobalForwardingRule resource.
get GET /compute/v1/projects/{project}/global/forwardingRules/{resourceId}
Returns the specified GlobalForwardingRule resource.
insert POST /compute/v1/projects/{project}/global/forwardingRules
Creates a GlobalForwardingRule resource in the specified project using the data included in the request.
list GET /compute/v1/projects/{project}/global/forwardingRules
Retrieves a list of GlobalForwardingRule resources available to the specified project.
setTarget POST /compute/v1/projects/{project}/global/forwardingRules/{resourceId}/setTarget
Changes target URL for the GlobalForwardingRule resource.

REST Resource: v1.globalOperations

Methods
aggregatedList GET /compute/v1/projects/{project}/aggregated/operations
Retrieves an aggregated list of all operations.
delete DELETE /compute/v1/projects/{project}/global/operations/{resourceId}
Deletes the specified Operations resource.
get GET /compute/v1/projects/{project}/global/operations/{resourceId}
Retrieves the specified Operations resource.
list GET /compute/v1/projects/{project}/global/operations
Retrieves a list of Operation resources contained within the specified project.

REST Resource: v1.healthChecks

Methods
aggregatedList GET /compute/v1/projects/{project}/aggregated/healthChecks
Retrieves the list of all HealthCheck resources, regional and global, available to the specified project.
delete DELETE /compute/v1/projects/{project}/global/healthChecks/{resourceId}
Deletes the specified HealthCheck resource.
get GET /compute/v1/projects/{project}/global/healthChecks/{resourceId}
Returns the specified HealthCheck resource.
insert POST /compute/v1/projects/{project}/global/healthChecks
Creates a HealthCheck resource in the specified project using the data included in the request.
list GET /compute/v1/projects/{project}/global/healthChecks
Retrieves the list of HealthCheck resources available to the specified project.
patch PATCH /compute/v1/projects/{project}/global/healthChecks/{resourceId}
Updates a HealthCheck resource in the specified project using the data included in the request.
update PUT /compute/v1/projects/{project}/global/healthChecks/{resourceId}
Updates a HealthCheck resource in the specified project using the data included in the request.

REST Resource: v1.httpHealthChecks

Methods
delete DELETE /compute/v1/projects/{project}/global/httpHealthChecks/{resourceId}
Deletes the specified HttpHealthCheck resource.
get GET /compute/v1/projects/{project}/global/httpHealthChecks/{resourceId}
Returns the specified HttpHealthCheck resource.
insert POST /compute/v1/projects/{project}/global/httpHealthChecks
Creates a HttpHealthCheck resource in the specified project using the data included in the request.
list GET /compute/v1/projects/{project}/global/httpHealthChecks
Retrieves the list of HttpHealthCheck resources available to the specified project.
patch PATCH /compute/v1/projects/{project}/global/httpHealthChecks/{resourceId}
Updates a HttpHealthCheck resource in the specified project using the data included in the request.
update PUT /compute/v1/projects/{project}/global/httpHealthChecks/{resourceId}
Updates a HttpHealthCheck resource in the specified project using the data included in the request.

REST Resource: v1.httpsHealthChecks

Methods
delete DELETE /compute/v1/projects/{project}/global/httpsHealthChecks/{resourceId}
Deletes the specified HttpsHealthCheck resource.
get GET /compute/v1/projects/{project}/global/httpsHealthChecks/{resourceId}
Returns the specified HttpsHealthCheck resource.
insert POST /compute/v1/projects/{project}/global/httpsHealthChecks
Creates a HttpsHealthCheck resource in the specified project using the data included in the request.
list GET /compute/v1/projects/{project}/global/httpsHealthChecks
Retrieves the list of HttpsHealthCheck resources available to the specified project.
patch PATCH /compute/v1/projects/{project}/global/httpsHealthChecks/{resourceId}
Updates a HttpsHealthCheck resource in the specified project using the data included in the request.
update PUT /compute/v1/projects/{project}/global/httpsHealthChecks/{resourceId}
Updates a HttpsHealthCheck resource in the specified project using the data included in the request.

REST Resource: v1.images

Methods
delete DELETE /compute/v1/projects/{project}/global/images/{resourceId}
Deletes the specified image.
deprecate POST /compute/v1/projects/{project}/global/images/{resourceId}/deprecate
Sets the deprecation status of an image.
get GET /compute/v1/projects/{project}/global/images/{resourceId}
Returns the specified image.
getFromFamily GET /compute/v1/projects/{project}/global/images/family/{resourceId}
Returns the latest image that is part of an image family and is not deprecated.
getIamPolicy GET /compute/v1/projects/{project}/global/images/{resourceId}/getIamPolicy
Gets the access control policy for a resource.
insert POST /compute/v1/projects/{project}/global/images
Creates an image in the specified project using the data included in the request.
list GET /compute/v1/projects/{project}/global/images
Retrieves the list of custom images available to the specified project.
setIamPolicy POST /compute/v1/projects/{project}/global/images/{resourceId}/setIamPolicy
Sets the access control policy on the specified resource.
setLabels POST /compute/v1/projects/{project}/global/images/{resourceId}/setLabels
Sets the labels on an image.
testIamPermissions POST /compute/v1/projects/{project}/global/images/{resourceId}/testIamPermissions
Returns permissions that a caller has on the specified resource.

REST Resource: v1.instanceGroupManagers

Methods
abandonInstances POST /compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{resourceId}/abandonInstances
Flags the specified instances to be removed from the managed instance group.
aggregatedList GET /compute/v1/projects/{project}/aggregated/instanceGroupManagers
Retrieves the list of managed instance groups and groups them by zone.
delete DELETE /compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{resourceId}
Deletes the specified managed instance group and all of the instances in that group.
deleteInstances POST /compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{resourceId}/deleteInstances
Flags the specified instances in the managed instance group for immediate deletion.
get GET /compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{resourceId}
Returns all of the details about the specified managed instance group.
insert POST /compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers
Creates a managed instance group using the information that you specify in the request.
list GET /compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers
Retrieves a list of managed instance groups that are contained within the specified project and zone.
listManagedInstances POST /compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{resourceId}/listManagedInstances
Lists all of the instances in the managed instance group.
patch PATCH /compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{resourceId}
Updates a managed instance group using the information that you specify in the request.
recreateInstances POST /compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{resourceId}/recreateInstances
Flags the specified instances in the managed instance group to be immediately recreated.
resize POST /compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{resourceId}/resize
Resizes the managed instance group.
setInstanceTemplate POST /compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{resourceId}/setInstanceTemplate
Specifies the instance template to use when creating new instances in this group.
setTargetPools POST /compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{resourceId}/setTargetPools
Modifies the target pools to which all instances in this managed instance group are assigned.

REST Resource: v1.instanceGroups

Methods
addInstances POST /compute/v1/projects/{project}/zones/{zone}/instanceGroups/{resourceId}/addInstances
Adds a list of instances to the specified instance group.
aggregatedList GET /compute/v1/projects/{project}/aggregated/instanceGroups
Retrieves the list of instance groups and sorts them by zone.
delete DELETE /compute/v1/projects/{project}/zones/{zone}/instanceGroups/{resourceId}
Deletes the specified instance group.
get GET /compute/v1/projects/{project}/zones/{zone}/instanceGroups/{resourceId}
Returns the specified instance group.
insert POST /compute/v1/projects/{project}/zones/{zone}/instanceGroups
Creates an instance group in the specified project using the parameters that are included in the request.
list GET /compute/v1/projects/{project}/zones/{zone}/instanceGroups
Retrieves the list of instance groups that are located in the specified project and zone.
listInstances POST /compute/v1/projects/{project}/zones/{zone}/instanceGroups/{resourceId}/listInstances
Lists the instances in the specified instance group.
removeInstances POST /compute/v1/projects/{project}/zones/{zone}/instanceGroups/{resourceId}/removeInstances
Removes one or more instances from the specified instance group, but does not delete those instances.
setNamedPorts POST /compute/v1/projects/{project}/zones/{zone}/instanceGroups/{resourceId}/setNamedPorts
Sets the named ports for the specified instance group.

REST Resource: v1.instanceTemplates

Methods
delete DELETE /compute/v1/projects/{project}/global/instanceTemplates/{resourceId}
Deletes the specified instance template.
get GET /compute/v1/projects/{project}/global/instanceTemplates/{resourceId}
Returns the specified instance template.
getIamPolicy GET /compute/v1/projects/{project}/global/instanceTemplates/{resourceId}/getIamPolicy
Gets the access control policy for a resource.
insert POST /compute/v1/projects/{project}/global/instanceTemplates
Creates an instance template in the specified project using the data that is included in the request.
list GET /compute/v1/projects/{project}/global/instanceTemplates
Retrieves a list of instance templates that are contained within the specified project.
setIamPolicy POST /compute/v1/projects/{project}/global/instanceTemplates/{resourceId}/setIamPolicy
Sets the access control policy on the specified resource.
testIamPermissions POST /compute/v1/projects/{project}/global/instanceTemplates/{resourceId}/testIamPermissions
Returns permissions that a caller has on the specified resource.

REST Resource: v1.instances

Methods
addAccessConfig POST /compute/v1/projects/{project}/zones/{zone}/instances/{resourceId}/addAccessConfig
Adds an access config to an instance's network interface.
aggregatedList GET /compute/v1/projects/{project}/aggregated/instances
Retrieves aggregated list of all of the instances in your project across all regions and zones.
attachDisk POST /compute/v1/projects/{project}/zones/{zone}/instances/{resourceId}/attachDisk
Attaches an existing Disk resource to an instance.
delete DELETE /compute/v1/projects/{project}/zones/{zone}/instances/{resourceId}
Deletes the specified Instance resource.
deleteAccessConfig POST /compute/v1/projects/{project}/zones/{zone}/instances/{resourceId}/deleteAccessConfig
Deletes an access config from an instance's network interface.
detachDisk POST /compute/v1/projects/{project}/zones/{zone}/instances/{resourceId}/detachDisk
Detaches a disk from an instance.
get GET /compute/v1/projects/{project}/zones/{zone}/instances/{resourceId}
Returns the specified Instance resource.
getGuestAttributes GET /compute/v1/projects/{project}/zones/{zone}/instances/{resourceId}/getGuestAttributes
Returns the specified guest attributes entry.
getIamPolicy GET /compute/v1/projects/{project}/zones/{zone}/instances/{resourceId}/getIamPolicy
Gets the access control policy for a resource.
getSerialPortOutput GET /compute/v1/projects/{project}/zones/{zone}/instances/{resourceId}/serialPort
Returns the last 1 MB of serial port output from the specified instance.
getShieldedInstanceIdentity GET /compute/v1/projects/{project}/zones/{zone}/instances/{resourceId}/getShieldedInstanceIdentity
Returns the Shielded Instance Identity of an instance
insert POST /compute/v1/projects/{project}/zones/{zone}/instances
Creates an instance resource in the specified project using the data included in the request.
list GET /compute/v1/projects/{project}/zones/{zone}/instances
Retrieves the list of instances contained within the specified zone.
listReferrers GET /compute/v1/projects/{project}/zones/{zone}/instances/{resourceId}/referrers
Retrieves the list of referrers to instances contained within the specified zone.
reset POST /compute/v1/projects/{project}/zones/{zone}/instances/{resourceId}/reset
Performs a reset on the instance.
setDeletionProtection POST /compute/v1/projects/{project}/zones/{zone}/instances/{resourceId}/setDeletionProtection
Sets deletion protection on the instance.
setDiskAutoDelete POST /compute/v1/projects/{project}/zones/{zone}/instances/{resourceId}/setDiskAutoDelete
Sets the auto-delete flag for a disk attached to an instance.
setIamPolicy POST /compute/v1/projects/{project}/zones/{zone}/instances/{resourceId}/setIamPolicy
Sets the access control policy on the specified resource.
setLabels POST /compute/v1/projects/{project}/zones/{zone}/instances/{resourceId}/setLabels
Sets labels on an instance.
setMachineResources POST /compute/v1/projects/{project}/zones/{zone}/instances/{resourceId}/setMachineResources
Changes the number and/or type of accelerator for a stopped instance to the values specified in the request.
setMachineType POST /compute/v1/projects/{project}/zones/{zone}/instances/{resourceId}/setMachineType
Changes the machine type for a stopped instance to the machine type specified in the request.
setMetadata POST /compute/v1/projects/{project}/zones/{zone}/instances/{resourceId}/setMetadata
Sets metadata for the specified instance to the data included in the request.
setMinCpuPlatform POST /compute/v1/projects/{project}/zones/{zone}/instances/{resourceId}/setMinCpuPlatform
Changes the minimum CPU platform that this instance should use.
setScheduling POST /compute/v1/projects/{project}/zones/{zone}/instances/{resourceId}/setScheduling
Sets an instance's scheduling options.
setServiceAccount POST /compute/v1/projects/{project}/zones/{zone}/instances/{resourceId}/setServiceAccount
Sets the service account on the instance.
setShieldedInstanceIntegrityPolicy PATCH /compute/v1/projects/{project}/zones/{zone}/instances/{resourceId}/setShieldedInstanceIntegrityPolicy
Sets the Shielded Instance integrity policy for an instance.
setTags POST /compute/v1/projects/{project}/zones/{zone}/instances/{resourceId}/setTags
Sets network tags for the specified instance to the data included in the request.
simulateMaintenanceEvent POST /compute/v1/projects/{project}/zones/{zone}/instances/{resourceId}/simulateMaintenanceEvent
Simulates a maintenance event on the instance.
start POST /compute/v1/projects/{project}/zones/{zone}/instances/{resourceId}/start

Starts an instance that was stopped using the instances().stop method.

startWithEncryptionKey POST /compute/v1/projects/{project}/zones/{zone}/instances/{resourceId}/startWithEncryptionKey

Starts an instance that was stopped using the instances().stop method.

stop POST /compute/v1/projects/{project}/zones/{zone}/instances/{resourceId}/stop
Stops a running instance, shutting it down cleanly, and allows you to restart the instance at a later time.
testIamPermissions POST /compute/v1/projects/{project}/zones/{zone}/instances/{resourceId}/testIamPermissions
Returns permissions that a caller has on the specified resource.
updateAccessConfig POST /compute/v1/projects/{project}/zones/{zone}/instances/{resourceId}/updateAccessConfig
Updates the specified access config from an instance's network interface with the data included in the request.
updateDisplayDevice PATCH /compute/v1/projects/{project}/zones/{zone}/instances/{resourceId}/updateDisplayDevice
Updates the Display config for a VM instance.
updateNetworkInterface PATCH /compute/v1/projects/{project}/zones/{zone}/instances/{resourceId}/updateNetworkInterface
Updates an instance's network interface.
updateShieldedInstanceConfig PATCH /compute/v1/projects/{project}/zones/{zone}/instances/{resourceId}/updateShieldedInstanceConfig
Updates the Shielded Instance config for an instance.

REST Resource: v1.interconnectAttachments

Methods
aggregatedList GET /compute/v1/projects/{project}/aggregated/interconnectAttachments
Retrieves an aggregated list of interconnect attachments.
delete DELETE /compute/v1/projects/{project}/regions/{region}/interconnectAttachments/{resourceId}
Deletes the specified interconnect attachment.
get GET /compute/v1/projects/{project}/regions/{region}/interconnectAttachments/{resourceId}
Returns the specified interconnect attachment.
insert POST /compute/v1/projects/{project}/regions/{region}/interconnectAttachments
Creates an InterconnectAttachment in the specified project using the data included in the request.
list GET /compute/v1/projects/{project}/regions/{region}/interconnectAttachments
Retrieves the list of interconnect attachments contained within the specified region.
patch PATCH /compute/v1/projects/{project}/regions/{region}/interconnectAttachments/{resourceId}
Updates the specified interconnect attachment with the data included in the request.

REST Resource: v1.interconnectLocations

Methods
get GET /compute/v1/projects/{project}/global/interconnectLocations/{resourceId}
Returns the details for the specified interconnect location.
list GET /compute/v1/projects/{project}/global/interconnectLocations
Retrieves the list of interconnect locations available to the specified project.

REST Resource: v1.interconnects

Methods
delete DELETE /compute/v1/projects/{project}/global/interconnects/{resourceId}
Deletes the specified interconnect.
get GET /compute/v1/projects/{project}/global/interconnects/{resourceId}
Returns the specified interconnect.
getDiagnostics GET /compute/v1/projects/{project}/global/interconnects/{resourceId}/getDiagnostics
Returns the interconnectDiagnostics for the specified interconnect.
insert POST /compute/v1/projects/{project}/global/interconnects
Creates a Interconnect in the specified project using the data included in the request.
list GET /compute/v1/projects/{project}/global/interconnects
Retrieves the list of interconnect available to the specified project.
patch PATCH /compute/v1/projects/{project}/global/interconnects/{resourceId}
Updates the specified interconnect with the data included in the request.

REST Resource: v1.licenseCodes

Methods
get GET /compute/v1/projects/{project}/global/licenseCodes/{resourceId}
Return a specified license code.
testIamPermissions POST /compute/v1/projects/{project}/global/licenseCodes/{resourceId}/testIamPermissions
Returns permissions that a caller has on the specified resource.

REST Resource: v1.licenses

Methods
delete DELETE /compute/v1/projects/{project}/global/licenses/{resourceId}
Deletes the specified license.
get GET /compute/v1/projects/{project}/global/licenses/{resourceId}
Returns the specified License resource.
getIamPolicy GET /compute/v1/projects/{project}/global/licenses/{resourceId}/getIamPolicy
Gets the access control policy for a resource.
insert POST /compute/v1/projects/{project}/global/licenses
Create a License resource in the specified project.
list GET /compute/v1/projects/{project}/global/licenses
Retrieves the list of licenses available in the specified project.
setIamPolicy POST /compute/v1/projects/{project}/global/licenses/{resourceId}/setIamPolicy
Sets the access control policy on the specified resource.
testIamPermissions POST /compute/v1/projects/{project}/global/licenses/{resourceId}/testIamPermissions
Returns permissions that a caller has on the specified resource.

REST Resource: v1.machineTypes

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

REST Resource: v1.networkEndpointGroups

Methods
aggregatedList GET /compute/v1/projects/{project}/aggregated/networkEndpointGroups
Retrieves the list of network endpoint groups and sorts them by zone.
attachNetworkEndpoints POST /compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups/{resourceId}/attachNetworkEndpoints
Attach a list of network endpoints to the specified network endpoint group.
delete DELETE /compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups/{resourceId}
Deletes the specified network endpoint group.
detachNetworkEndpoints POST /compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups/{resourceId}/detachNetworkEndpoints
Detach a list of network endpoints from the specified network endpoint group.
get GET /compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups/{resourceId}
Returns the specified network endpoint group.
insert POST /compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups
Creates a network endpoint group in the specified project using the parameters that are included in the request.
list GET /compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups
Retrieves the list of network endpoint groups that are located in the specified project and zone.
listNetworkEndpoints POST /compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups/{resourceId}/listNetworkEndpoints
Lists the network endpoints in the specified network endpoint group.
testIamPermissions POST /compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups/{resourceId}/testIamPermissions
Returns permissions that a caller has on the specified resource.

REST Resource: v1.networks

Methods
addPeering POST /compute/v1/projects/{project}/global/networks/{resourceId}/addPeering
Adds a peering to the specified network.
delete DELETE /compute/v1/projects/{project}/global/networks/{resourceId}
Deletes the specified network.
get GET /compute/v1/projects/{project}/global/networks/{resourceId}
Returns the specified network.
insert POST /compute/v1/projects/{project}/global/networks
Creates a network in the specified project using the data included in the request.
list GET /compute/v1/projects/{project}/global/networks
Retrieves the list of networks available to the specified project.
patch PATCH /compute/v1/projects/{project}/global/networks/{resourceId}
Patches the specified network with the data included in the request.
removePeering POST /compute/v1/projects/{project}/global/networks/{resourceId}/removePeering
Removes a peering from the specified network.
switchToCustomMode POST /compute/v1/projects/{project}/global/networks/{resourceId}/switchToCustomMode
Switches the network mode from auto subnet mode to custom subnet mode.
updatePeering PATCH /compute/v1/projects/{project}/global/networks/{resourceId}/updatePeering
Updates the specified network peering with the data included in the request Only the following fields can be modified: NetworkPeering.export_custom_routes, and NetworkPeering.import_custom_routes

REST Resource: v1.nodeGroups

Methods
addNodes POST /compute/v1/projects/{project}/zones/{zone}/nodeGroups/{resourceId}/addNodes
Adds specified number of nodes to the node group.
aggregatedList GET /compute/v1/projects/{project}/aggregated/nodeGroups
Retrieves an aggregated list of node groups.
delete DELETE /compute/v1/projects/{project}/zones/{zone}/nodeGroups/{resourceId}
Deletes the specified NodeGroup resource.
deleteNodes POST /compute/v1/projects/{project}/zones/{zone}/nodeGroups/{resourceId}/deleteNodes
Deletes specified nodes from the node group.
get GET /compute/v1/projects/{project}/zones/{zone}/nodeGroups/{resourceId}
Returns the specified NodeGroup.
getIamPolicy GET /compute/v1/projects/{project}/zones/{zone}/nodeGroups/{resourceId}/getIamPolicy
Gets the access control policy for a resource.
insert POST /compute/v1/projects/{project}/zones/{zone}/nodeGroups
Creates a NodeGroup resource in the specified project using the data included in the request.
list GET /compute/v1/projects/{project}/zones/{zone}/nodeGroups
Retrieves a list of node groups available to the specified project.
listNodes POST /compute/v1/projects/{project}/zones/{zone}/nodeGroups/{resourceId}/listNodes
Lists nodes in the node group.
setIamPolicy POST /compute/v1/projects/{project}/zones/{zone}/nodeGroups/{resourceId}/setIamPolicy
Sets the access control policy on the specified resource.
setNodeTemplate POST /compute/v1/projects/{project}/zones/{zone}/nodeGroups/{resourceId}/setNodeTemplate
Updates the node template of the node group.
testIamPermissions POST /compute/v1/projects/{project}/zones/{zone}/nodeGroups/{resourceId}/testIamPermissions
Returns permissions that a caller has on the specified resource.

REST Resource: v1.nodeTemplates

Methods
aggregatedList GET /compute/v1/projects/{project}/aggregated/nodeTemplates
Retrieves an aggregated list of node templates.
delete DELETE /compute/v1/projects/{project}/regions/{region}/nodeTemplates/{resourceId}
Deletes the specified NodeTemplate resource.
get GET /compute/v1/projects/{project}/regions/{region}/nodeTemplates/{resourceId}
Returns the specified node template.
getIamPolicy GET /compute/v1/projects/{project}/regions/{region}/nodeTemplates/{resourceId}/getIamPolicy
Gets the access control policy for a resource.
insert POST /compute/v1/projects/{project}/regions/{region}/nodeTemplates
Creates a NodeTemplate resource in the specified project using the data included in the request.
list GET /compute/v1/projects/{project}/regions/{region}/nodeTemplates
Retrieves a list of node templates available to the specified project.
setIamPolicy POST /compute/v1/projects/{project}/regions/{region}/nodeTemplates/{resourceId}/setIamPolicy
Sets the access control policy on the specified resource.
testIamPermissions POST /compute/v1/projects/{project}/regions/{region}/nodeTemplates/{resourceId}/testIamPermissions
Returns permissions that a caller has on the specified resource.

REST Resource: v1.nodeTypes

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

REST Resource: v1.projects

Methods
disableXpnHost POST /compute/v1/projects/{project}/disableXpnHost
Disable this project as a shared VPC host project.
disableXpnResource POST /compute/v1/projects/{project}/disableXpnResource
Disable a service resource (also known as service project) associated with this host project.
enableXpnHost POST /compute/v1/projects/{project}/enableXpnHost
Enable this project as a shared VPC host project.
enableXpnResource POST /compute/v1/projects/{project}/enableXpnResource
Enable service resource (a.k.a service project) for a host project, so that subnets in the host project can be used by instances in the service project.
get GET /compute/v1/projects/{project}
Returns the specified Project resource.
getXpnHost GET /compute/v1/projects/{project}/getXpnHost
Gets the shared VPC host project that this project links to.
getXpnResources GET /compute/v1/projects/{project}/getXpnResources
Gets service resources (a.k.a service project) associated with this host project.
listXpnHosts POST /compute/v1/projects/{project}/listXpnHosts
Lists all shared VPC host projects visible to the user in an organization.
moveDisk POST /compute/v1/projects/{project}/moveDisk
Moves a persistent disk from one zone to another.
moveInstance POST /compute/v1/projects/{project}/moveInstance
Moves an instance and its attached persistent disks from one zone to another.
setCommonInstanceMetadata POST /compute/v1/projects/{project}/setCommonInstanceMetadata
Sets metadata common to all instances within the specified project using the data included in the request.
setDefaultNetworkTier POST /compute/v1/projects/{project}/setDefaultNetworkTier
Sets the default network tier of the project.
setUsageExportBucket POST /compute/v1/projects/{project}/setUsageExportBucket
Enables the usage export feature and sets the usage export bucket where reports are stored.

REST Resource: v1.regionAutoscalers

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

REST Resource: v1.regionBackendServices

Methods
delete DELETE /compute/v1/projects/{project}/regions/{region}/backendServices/{resourceId}
Deletes the specified regional BackendService resource.
get GET /compute/v1/projects/{project}/regions/{region}/backendServices/{resourceId}
Returns the specified regional BackendService resource.
getHealth POST /compute/v1/projects/{project}/regions/{region}/backendServices/{resourceId}/getHealth
Gets the most recent health check results for this regional BackendService.
insert POST /compute/v1/projects/{project}/regions/{region}/backendServices
Creates a regional BackendService resource in the specified project using the data included in the request.
list GET /compute/v1/projects/{project}/regions/{region}/backendServices
Retrieves the list of regional BackendService resources available to the specified project in the given region.
patch PATCH /compute/v1/projects/{project}/regions/{region}/backendServices/{resourceId}
Updates the specified regional BackendService resource with the data included in the request.
update PUT /compute/v1/projects/{project}/regions/{region}/backendServices/{resourceId}
Updates the specified regional BackendService resource with the data included in the request.

REST Resource: v1.regionCommitments

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

REST Resource: v1.regionDiskTypes

Methods
get GET /compute/v1/projects/{project}/regions/{region}/diskTypes/{resourceId}
Returns the specified regional disk type.
list GET /compute/v1/projects/{project}/regions/{region}/diskTypes
Retrieves a list of regional disk types available to the specified project.

REST Resource: v1.regionDisks

Methods
addResourcePolicies POST /compute/v1/projects/{project}/regions/{region}/disks/{resourceId}/addResourcePolicies
Adds existing resource policies to a regional disk.
createSnapshot POST /compute/v1/projects/{project}/regions/{region}/disks/{resourceId}/createSnapshot
Creates a snapshot of this regional disk.
delete DELETE /compute/v1/projects/{project}/regions/{region}/disks/{resourceId}
Deletes the specified regional persistent disk.
get GET /compute/v1/projects/{project}/regions/{region}/disks/{resourceId}
Returns a specified regional persistent disk.
insert POST /compute/v1/projects/{project}/regions/{region}/disks
Creates a persistent regional disk in the specified project using the data included in the request.
list GET /compute/v1/projects/{project}/regions/{region}/disks
Retrieves the list of persistent disks contained within the specified region.
removeResourcePolicies POST /compute/v1/projects/{project}/regions/{region}/disks/{resourceId}/removeResourcePolicies
Removes resource policies from a regional disk.
resize POST /compute/v1/projects/{project}/regions/{region}/disks/{resourceId}/resize
Resizes the specified regional persistent disk.
setLabels POST /compute/v1/projects/{project}/regions/{region}/disks/{resourceId}/setLabels
Sets the labels on the target regional disk.
testIamPermissions POST /compute/v1/projects/{project}/regions/{region}/disks/{resourceId}/testIamPermissions
Returns permissions that a caller has on the specified resource.

REST Resource: v1.regionHealthChecks

Methods
delete DELETE /compute/v1/projects/{project}/regions/{region}/healthChecks/{resourceId}
Deletes the specified HealthCheck resource.
get GET /compute/v1/projects/{project}/regions/{region}/healthChecks/{resourceId}
Returns the specified HealthCheck resource.
insert POST /compute/v1/projects/{project}/regions/{region}/healthChecks
Creates a HealthCheck resource in the specified project using the data included in the request.
list GET /compute/v1/projects/{project}/regions/{region}/healthChecks
Retrieves the list of HealthCheck resources available to the specified project.
patch PATCH /compute/v1/projects/{project}/regions/{region}/healthChecks/{resourceId}
Updates a HealthCheck resource in the specified project using the data included in the request.
update PUT /compute/v1/projects/{project}/regions/{region}/healthChecks/{resourceId}
Updates a HealthCheck resource in the specified project using the data included in the request.

REST Resource: v1.regionInstanceGroupManagers

Methods
abandonInstances POST /compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{resourceId}/abandonInstances
Flags the specified instances to be immediately removed from the managed instance group.
delete DELETE /compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{resourceId}
Deletes the specified managed instance group and all of the instances in that group.
deleteInstances POST /compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{resourceId}/deleteInstances
Flags the specified instances in the managed instance group to be immediately deleted.
get GET /compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{resourceId}
Returns all of the details about the specified managed instance group.
insert POST /compute/v1/projects/{project}/regions/{region}/instanceGroupManagers
Creates a managed instance group using the information that you specify in the request.
list GET /compute/v1/projects/{project}/regions/{region}/instanceGroupManagers
Retrieves the list of managed instance groups that are contained within the specified region.
listManagedInstances POST /compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{resourceId}/listManagedInstances
Lists the instances in the managed instance group and instances that are scheduled to be created.
patch PATCH /compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{resourceId}
Updates a managed instance group using the information that you specify in the request.
recreateInstances POST /compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{resourceId}/recreateInstances
Flags the specified instances in the managed instance group to be immediately recreated.
resize POST /compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{resourceId}/resize
Changes the intended size of the managed instance group.
setInstanceTemplate POST /compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{resourceId}/setInstanceTemplate
Sets the instance template to use when creating new instances or recreating instances in this group.
setTargetPools POST /compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{resourceId}/setTargetPools
Modifies the target pools to which all new instances in this group are assigned.

REST Resource: v1.regionInstanceGroups

Methods
get GET /compute/v1/projects/{project}/regions/{region}/instanceGroups/{resourceId}
Returns the specified instance group resource.
list GET /compute/v1/projects/{project}/regions/{region}/instanceGroups
Retrieves the list of instance group resources contained within the specified region.
listInstances POST /compute/v1/projects/{project}/regions/{region}/instanceGroups/{resourceId}/listInstances
Lists the instances in the specified instance group and displays information about the named ports.
setNamedPorts POST /compute/v1/projects/{project}/regions/{region}/instanceGroups/{resourceId}/setNamedPorts
Sets the named ports for the specified regional instance group.

REST Resource: v1.regionOperations

Methods
delete DELETE /compute/v1/projects/{project}/regions/{region}/operations/{resourceId}
Deletes the specified region-specific Operations resource.
get GET /compute/v1/projects/{project}/regions/{region}/operations/{resourceId}
Retrieves the specified region-specific Operations resource.
list GET /compute/v1/projects/{project}/regions/{region}/operations
Retrieves a list of Operation resources contained within the specified region.

REST Resource: v1.regionSslCertificates

Methods
delete DELETE /compute/v1/projects/{project}/regions/{region}/sslCertificates/{resourceId}
Deletes the specified SslCertificate resource in the region.
get GET /compute/v1/projects/{project}/regions/{region}/sslCertificates/{resourceId}
Returns the specified SslCertificate resource in the specified region.
insert POST /compute/v1/projects/{project}/regions/{region}/sslCertificates
Creates a SslCertificate resource in the specified project and region using the data included in the request
list GET /compute/v1/projects/{project}/regions/{region}/sslCertificates
Retrieves the list of SslCertificate resources available to the specified project in the specified region.

REST Resource: v1.regionTargetHttpProxies

Methods
delete DELETE /compute/v1/projects/{project}/regions/{region}/targetHttpProxies/{resourceId}
Deletes the specified TargetHttpProxy resource.
get GET /compute/v1/projects/{project}/regions/{region}/targetHttpProxies/{resourceId}
Returns the specified TargetHttpProxy resource in the specified region.
insert POST /compute/v1/projects/{project}/regions/{region}/targetHttpProxies
Creates a TargetHttpProxy resource in the specified project and region using the data included in the request.
list GET /compute/v1/projects/{project}/regions/{region}/targetHttpProxies
Retrieves the list of TargetHttpProxy resources available to the specified project in the specified region.
setUrlMap POST /compute/v1/projects/{project}/regions/{region}/targetHttpProxies/{resourceId}/setUrlMap
Changes the URL map for TargetHttpProxy.

REST Resource: v1.regionTargetHttpsProxies

Methods
delete DELETE /compute/v1/projects/{project}/regions/{region}/targetHttpsProxies/{resourceId}
Deletes the specified TargetHttpsProxy resource.
get GET /compute/v1/projects/{project}/regions/{region}/targetHttpsProxies/{resourceId}
Returns the specified TargetHttpsProxy resource in the specified region.
insert POST /compute/v1/projects/{project}/regions/{region}/targetHttpsProxies
Creates a TargetHttpsProxy resource in the specified project and region using the data included in the request.
list GET /compute/v1/projects/{project}/regions/{region}/targetHttpsProxies
Retrieves the list of TargetHttpsProxy resources available to the specified project in the specified region.

REST Resource: v1.regionUrlMaps

Methods
delete DELETE /compute/v1/projects/{project}/regions/{region}/urlMaps/{resourceId}
Deletes the specified UrlMap resource.
get GET /compute/v1/projects/{project}/regions/{region}/urlMaps/{resourceId}
Returns the specified UrlMap resource.
insert POST /compute/v1/projects/{project}/regions/{region}/urlMaps
Creates a UrlMap resource in the specified project using the data included in the request.
list GET /compute/v1/projects/{project}/regions/{region}/urlMaps
Retrieves the list of UrlMap resources available to the specified project in the specified region.
patch PATCH /compute/v1/projects/{project}/regions/{region}/urlMaps/{resourceId}
Patches the specified UrlMap resource with the data included in the request.
update PUT /compute/v1/projects/{project}/regions/{region}/urlMaps/{resourceId}
Updates the specified UrlMap resource with the data included in the request.
validate POST /compute/v1/projects/{project}/regions/{region}/urlMaps/{resourceId}/validate
Runs static validation for the UrlMap.

REST Resource: v1.regions

Methods
get GET /compute/v1/projects/{project}/regions/{resourceId}
Returns the specified Region resource.
list GET /compute/v1/projects/{project}/regions
Retrieves the list of region resources available to the specified project.

REST Resource: v1.reservations

Methods
aggregatedList GET /compute/v1/projects/{project}/aggregated/reservations
Retrieves an aggregated list of reservations.
delete DELETE /compute/v1/projects/{project}/zones/{zone}/reservations/{resourceId}
Deletes the specified reservation.
get GET /compute/v1/projects/{project}/zones/{zone}/reservations/{resourceId}
Retrieves information about the specified reservation.
getIamPolicy GET /compute/v1/projects/{project}/zones/{zone}/reservations/{resourceId}/getIamPolicy
Gets the access control policy for a resource.
insert POST /compute/v1/projects/{project}/zones/{zone}/reservations
Creates a new reservation.
list GET /compute/v1/projects/{project}/zones/{zone}/reservations
A list of all the reservations that have been configured for the specified project in specified zone.
resize POST /compute/v1/projects/{project}/zones/{zone}/reservations/{resourceId}/resize
Resizes the reservation (applicable to standalone reservations only).
setIamPolicy POST /compute/v1/projects/{project}/zones/{zone}/reservations/{resourceId}/setIamPolicy
Sets the access control policy on the specified resource.
testIamPermissions POST /compute/v1/projects/{project}/zones/{zone}/reservations/{resourceId}/testIamPermissions
Returns permissions that a caller has on the specified resource.

REST Resource: v1.resourcePolicies

Methods
aggregatedList GET /compute/v1/projects/{project}/aggregated/resourcePolicies
Retrieves an aggregated list of resource policies.
delete DELETE /compute/v1/projects/{project}/regions/{region}/resourcePolicies/{resourceId}
Deletes the specified resource policy.
get GET /compute/v1/projects/{project}/regions/{region}/resourcePolicies/{resourceId}
Retrieves all information of the specified resource policy.
getIamPolicy GET /compute/v1/projects/{project}/regions/{region}/resourcePolicies/{resourceId}/getIamPolicy
Gets the access control policy for a resource.
insert POST /compute/v1/projects/{project}/regions/{region}/resourcePolicies
Creates a new resource policy.
list GET /compute/v1/projects/{project}/regions/{region}/resourcePolicies
A list all the resource policies that have been configured for the specified project in specified region.
setIamPolicy POST /compute/v1/projects/{project}/regions/{region}/resourcePolicies/{resourceId}/setIamPolicy
Sets the access control policy on the specified resource.
testIamPermissions POST /compute/v1/projects/{project}/regions/{region}/resourcePolicies/{resourceId}/testIamPermissions
Returns permissions that a caller has on the specified resource.

REST Resource: v1.routers

Methods
aggregatedList GET /compute/v1/projects/{project}/aggregated/routers
Retrieves an aggregated list of routers.
delete DELETE /compute/v1/projects/{project}/regions/{region}/routers/{resourceId}
Deletes the specified Router resource.
get GET /compute/v1/projects/{project}/regions/{region}/routers/{resourceId}
Returns the specified Router resource.
getNatMappingInfo GET /compute/v1/projects/{project}/regions/{region}/routers/{resourceId}/getNatMappingInfo
Retrieves runtime Nat mapping information of VM endpoints.
getRouterStatus GET /compute/v1/projects/{project}/regions/{region}/routers/{resourceId}/getRouterStatus
Retrieves runtime information of the specified router.
insert POST /compute/v1/projects/{project}/regions/{region}/routers
Creates a Router resource in the specified project and region using the data included in the request.
list GET /compute/v1/projects/{project}/regions/{region}/routers
Retrieves a list of Router resources available to the specified project.
patch PATCH /compute/v1/projects/{project}/regions/{region}/routers/{resourceId}
Patches the specified Router resource with the data included in the request.
preview POST /compute/v1/projects/{project}/regions/{region}/routers/{resourceId}/preview
Preview fields auto-generated during router create and update operations.
update PUT /compute/v1/projects/{project}/regions/{region}/routers/{resourceId}
Updates the specified Router resource with the data included in the request.

REST Resource: v1.routes

Methods
delete DELETE /compute/v1/projects/{project}/global/routes/{resourceId}
Deletes the specified Route resource.
get GET /compute/v1/projects/{project}/global/routes/{resourceId}
Returns the specified Route resource.
insert POST /compute/v1/projects/{project}/global/routes
Creates a Route resource in the specified project using the data included in the request.
list GET /compute/v1/projects/{project}/global/routes
Retrieves the list of Route resources available to the specified project.

REST Resource: v1.securityPolicies

Methods
addRule POST /compute/v1/projects/{project}/global/securityPolicies/{resourceId}/addRule
Inserts a rule into a security policy.
delete DELETE /compute/v1/projects/{project}/global/securityPolicies/{resourceId}
Deletes the specified policy.
get GET /compute/v1/projects/{project}/global/securityPolicies/{resourceId}
List all of the ordered rules present in a single specified policy.
getRule GET /compute/v1/projects/{project}/global/securityPolicies/{resourceId}/getRule
Gets a rule at the specified priority.
insert POST /compute/v1/projects/{project}/global/securityPolicies
Creates a new policy in the specified project using the data included in the request.
list GET /compute/v1/projects/{project}/global/securityPolicies
List all the policies that have been configured for the specified project.
patch PATCH /compute/v1/projects/{project}/global/securityPolicies/{resourceId}
Patches the specified policy with the data included in the request.
patchRule POST /compute/v1/projects/{project}/global/securityPolicies/{resourceId}/patchRule
Patches a rule at the specified priority.
removeRule POST /compute/v1/projects/{project}/global/securityPolicies/{resourceId}/removeRule
Deletes a rule at the specified priority.

REST Resource: v1.snapshots

Methods
delete DELETE /compute/v1/projects/{project}/global/snapshots/{resourceId}
Deletes the specified Snapshot resource.
get GET /compute/v1/projects/{project}/global/snapshots/{resourceId}
Returns the specified Snapshot resource.
getIamPolicy GET /compute/v1/projects/{project}/global/snapshots/{resourceId}/getIamPolicy
Gets the access control policy for a resource.
list GET /compute/v1/projects/{project}/global/snapshots
Retrieves the list of Snapshot resources contained within the specified project.
setIamPolicy POST /compute/v1/projects/{project}/global/snapshots/{resourceId}/setIamPolicy
Sets the access control policy on the specified resource.
setLabels POST /compute/v1/projects/{project}/global/snapshots/{resourceId}/setLabels
Sets the labels on a snapshot.
testIamPermissions POST /compute/v1/projects/{project}/global/snapshots/{resourceId}/testIamPermissions
Returns permissions that a caller has on the specified resource.

REST Resource: v1.sslCertificates

Methods
aggregatedList GET /compute/v1/projects/{project}/aggregated/sslCertificates
Retrieves the list of all SslCertificate resources, regional and global, available to the specified project.
delete DELETE /compute/v1/projects/{project}/global/sslCertificates/{resourceId}
Deletes the specified SslCertificate resource.
get GET /compute/v1/projects/{project}/global/sslCertificates/{resourceId}
Returns the specified SslCertificate resource.
insert POST /compute/v1/projects/{project}/global/sslCertificates
Creates a SslCertificate resource in the specified project using the data included in the request.
list GET /compute/v1/projects/{project}/global/sslCertificates
Retrieves the list of SslCertificate resources available to the specified project.

REST Resource: v1.sslPolicies

Methods
delete DELETE /compute/v1/projects/{project}/global/sslPolicies/{resourceId}
Deletes the specified SSL policy.
get GET /compute/v1/projects/{project}/global/sslPolicies/{resourceId}
Lists all of the ordered rules present in a single specified policy.
insert POST /compute/v1/projects/{project}/global/sslPolicies
Returns the specified SSL policy resource.
list GET /compute/v1/projects/{project}/global/sslPolicies
Lists all the SSL policies that have been configured for the specified project.
listAvailableFeatures GET /compute/v1/projects/{project}/global/sslPolicies/listAvailableFeatures
Lists all features that can be specified in the SSL policy when using custom profile.
patch PATCH /compute/v1/projects/{project}/global/sslPolicies/{resourceId}
Patches the specified SSL policy with the data included in the request.

REST Resource: v1.subnetworks

Methods
aggregatedList GET /compute/v1/projects/{project}/aggregated/subnetworks
Retrieves an aggregated list of subnetworks.
delete DELETE /compute/v1/projects/{project}/regions/{region}/subnetworks/{resourceId}
Deletes the specified subnetwork.
expandIpCidrRange POST /compute/v1/projects/{project}/regions/{region}/subnetworks/{resourceId}/expandIpCidrRange
Expands the IP CIDR range of the subnetwork to a specified value.
get GET /compute/v1/projects/{project}/regions/{region}/subnetworks/{resourceId}
Returns the specified subnetwork.
getIamPolicy GET /compute/v1/projects/{project}/regions/{region}/subnetworks/{resourceId}/getIamPolicy
Gets the access control policy for a resource.
insert POST /compute/v1/projects/{project}/regions/{region}/subnetworks
Creates a subnetwork in the specified project using the data included in the request.
list GET /compute/v1/projects/{project}/regions/{region}/subnetworks
Retrieves a list of subnetworks available to the specified project.
listUsable GET /compute/v1/projects/{project}/aggregated/subnetworks/listUsable
Retrieves an aggregated list of all usable subnetworks in the project.
patch PATCH /compute/v1/projects/{project}/regions/{region}/subnetworks/{resourceId}
Patches the specified subnetwork with the data included in the request.
setIamPolicy POST /compute/v1/projects/{project}/regions/{region}/subnetworks/{resourceId}/setIamPolicy
Sets the access control policy on the specified resource.
setPrivateIpGoogleAccess POST /compute/v1/projects/{project}/regions/{region}/subnetworks/{resourceId}/setPrivateIpGoogleAccess
Set whether VMs in this subnet can access Google services without assigning external IP addresses through Private Google Access.
testIamPermissions POST /compute/v1/projects/{project}/regions/{region}/subnetworks/{resourceId}/testIamPermissions
Returns permissions that a caller has on the specified resource.

REST Resource: v1.targetHttpProxies

Methods
aggregatedList GET /compute/v1/projects/{project}/aggregated/targetHttpProxies
Retrieves the list of all TargetHttpProxy resources, regional and global, available to the specified project.
delete DELETE /compute/v1/projects/{project}/global/targetHttpProxies/{resourceId}
Deletes the specified TargetHttpProxy resource.
get GET /compute/v1/projects/{project}/global/targetHttpProxies/{resourceId}
Returns the specified TargetHttpProxy resource.
insert POST /compute/v1/projects/{project}/global/targetHttpProxies
Creates a TargetHttpProxy resource in the specified project using the data included in the request.
list GET /compute/v1/projects/{project}/global/targetHttpProxies
Retrieves the list of TargetHttpProxy resources available to the specified project.
setUrlMap POST /compute/v1/projects/{project}/targetHttpProxies/{resourceId}/setUrlMap
Changes the URL map for TargetHttpProxy.

REST Resource: v1.targetHttpsProxies

Methods
aggregatedList GET /compute/v1/projects/{project}/aggregated/targetHttpsProxies
Retrieves the list of all TargetHttpsProxy resources, regional and global, available to the specified project.
delete DELETE /compute/v1/projects/{project}/global/targetHttpsProxies/{resourceId}
Deletes the specified TargetHttpsProxy resource.
get GET /compute/v1/projects/{project}/global/targetHttpsProxies/{resourceId}
Returns the specified TargetHttpsProxy resource.
insert POST /compute/v1/projects/{project}/global/targetHttpsProxies
Creates a TargetHttpsProxy resource in the specified project using the data included in the request.
list GET /compute/v1/projects/{project}/global/targetHttpsProxies
Retrieves the list of TargetHttpsProxy resources available to the specified project.
setQuicOverride POST /compute/v1/projects/{project}/global/targetHttpsProxies/{resourceId}/setQuicOverride
Sets the QUIC override policy for TargetHttpsProxy.
setSslCertificates POST /compute/v1/projects/{project}/regions/{region}/targetHttpsProxies/{resourceId}/setSslCertificates
Replaces SslCertificates for TargetHttpsProxy.
setSslPolicy POST /compute/v1/projects/{project}/global/targetHttpsProxies/{resourceId}/setSslPolicy
Sets the SSL policy for TargetHttpsProxy.
setUrlMap POST /compute/v1/projects/{project}/regions/{region}/targetHttpsProxies/{resourceId}/setUrlMap
Changes the URL map for TargetHttpsProxy.

REST Resource: v1.targetInstances

Methods
aggregatedList GET /compute/v1/projects/{project}/aggregated/targetInstances
Retrieves an aggregated list of target instances.
delete DELETE /compute/v1/projects/{project}/zones/{zone}/targetInstances/{resourceId}
Deletes the specified TargetInstance resource.
get GET /compute/v1/projects/{project}/zones/{zone}/targetInstances/{resourceId}
Returns the specified TargetInstance resource.
insert POST /compute/v1/projects/{project}/zones/{zone}/targetInstances
Creates a TargetInstance resource in the specified project and zone using the data included in the request.
list GET /compute/v1/projects/{project}/zones/{zone}/targetInstances
Retrieves a list of TargetInstance resources available to the specified project and zone.

REST Resource: v1.targetPools

Methods
addHealthCheck POST /compute/v1/projects/{project}/regions/{region}/targetPools/{resourceId}/addHealthCheck
Adds health check URLs to a target pool.
addInstance POST /compute/v1/projects/{project}/regions/{region}/targetPools/{resourceId}/addInstance
Adds an instance to a target pool.
aggregatedList GET /compute/v1/projects/{project}/aggregated/targetPools
Retrieves an aggregated list of target pools.
delete DELETE /compute/v1/projects/{project}/regions/{region}/targetPools/{resourceId}
Deletes the specified target pool.
get GET /compute/v1/projects/{project}/regions/{region}/targetPools/{resourceId}
Returns the specified target pool.
getHealth POST /compute/v1/projects/{project}/regions/{region}/targetPools/{resourceId}/getHealth
Gets the most recent health check results for each IP for the instance that is referenced by the given target pool.
insert POST /compute/v1/projects/{project}/regions/{region}/targetPools
Creates a target pool in the specified project and region using the data included in the request.
list GET /compute/v1/projects/{project}/regions/{region}/targetPools
Retrieves a list of target pools available to the specified project and region.
removeHealthCheck POST /compute/v1/projects/{project}/regions/{region}/targetPools/{resourceId}/removeHealthCheck
Removes health check URL from a target pool.
removeInstance POST /compute/v1/projects/{project}/regions/{region}/targetPools/{resourceId}/removeInstance
Removes instance URL from a target pool.
setBackup POST /compute/v1/projects/{project}/regions/{region}/targetPools/{resourceId}/setBackup
Changes a backup target pool's configurations.

REST Resource: v1.targetSslProxies

Methods
delete DELETE /compute/v1/projects/{project}/global/targetSslProxies/{resourceId}
Deletes the specified TargetSslProxy resource.
get GET /compute/v1/projects/{project}/global/targetSslProxies/{resourceId}
Returns the specified TargetSslProxy resource.
insert POST /compute/v1/projects/{project}/global/targetSslProxies
Creates a TargetSslProxy resource in the specified project using the data included in the request.
list GET /compute/v1/projects/{project}/global/targetSslProxies
Retrieves the list of TargetSslProxy resources available to the specified project.
setBackendService POST /compute/v1/projects/{project}/global/targetSslProxies/{resourceId}/setBackendService
Changes the BackendService for TargetSslProxy.
setProxyHeader POST /compute/v1/projects/{project}/global/targetSslProxies/{resourceId}/setProxyHeader
Changes the ProxyHeaderType for TargetSslProxy.
setSslCertificates POST /compute/v1/projects/{project}/global/targetSslProxies/{resourceId}/setSslCertificates
Changes SslCertificates for TargetSslProxy.
setSslPolicy POST /compute/v1/projects/{project}/global/targetSslProxies/{resourceId}/setSslPolicy
Sets the SSL policy for TargetSslProxy.

REST Resource: v1.targetTcpProxies

Methods
delete DELETE /compute/v1/projects/{project}/global/targetTcpProxies/{resourceId}
Deletes the specified TargetTcpProxy resource.
get GET /compute/v1/projects/{project}/global/targetTcpProxies/{resourceId}
Returns the specified TargetTcpProxy resource.
insert POST /compute/v1/projects/{project}/global/targetTcpProxies
Creates a TargetTcpProxy resource in the specified project using the data included in the request.
list GET /compute/v1/projects/{project}/global/targetTcpProxies
Retrieves the list of TargetTcpProxy resources available to the specified project.
setBackendService POST /compute/v1/projects/{project}/global/targetTcpProxies/{resourceId}/setBackendService
Changes the BackendService for TargetTcpProxy.
setProxyHeader POST /compute/v1/projects/{project}/global/targetTcpProxies/{resourceId}/setProxyHeader
Changes the ProxyHeaderType for TargetTcpProxy.

REST Resource: v1.targetVpnGateways

Methods
aggregatedList GET /compute/v1/projects/{project}/aggregated/targetVpnGateways
Retrieves an aggregated list of target VPN gateways.
delete DELETE /compute/v1/projects/{project}/regions/{region}/targetVpnGateways/{resourceId}
Deletes the specified target VPN gateway.
get GET /compute/v1/projects/{project}/regions/{region}/targetVpnGateways/{resourceId}
Returns the specified target VPN gateway.
insert POST /compute/v1/projects/{project}/regions/{region}/targetVpnGateways
Creates a target VPN gateway in the specified project and region using the data included in the request.
list GET /compute/v1/projects/{project}/regions/{region}/targetVpnGateways
Retrieves a list of target VPN gateways available to the specified project and region.

REST Resource: v1.urlMaps

Methods
aggregatedList GET /compute/v1/projects/{project}/aggregated/urlMaps
Retrieves the list of all UrlMap resources, regional and global, available to the specified project.
delete DELETE /compute/v1/projects/{project}/global/urlMaps/{resourceId}
Deletes the specified UrlMap resource.
get GET /compute/v1/projects/{project}/global/urlMaps/{resourceId}
Returns the specified UrlMap resource.
insert POST /compute/v1/projects/{project}/global/urlMaps
Creates a UrlMap resource in the specified project using the data included in the request.
invalidateCache POST /compute/v1/projects/{project}/global/urlMaps/{resourceId}/invalidateCache
Initiates a cache invalidation operation, invalidating the specified path, scoped to the specified UrlMap.
list GET /compute/v1/projects/{project}/global/urlMaps
Retrieves the list of UrlMap resources available to the specified project.
patch PATCH /compute/v1/projects/{project}/global/urlMaps/{resourceId}
Patches the specified UrlMap resource with the data included in the request.
update PUT /compute/v1/projects/{project}/global/urlMaps/{resourceId}
Updates the specified UrlMap resource with the data included in the request.
validate POST /compute/v1/projects/{project}/global/urlMaps/{resourceId}/validate
Runs static validation for the UrlMap.

REST Resource: v1.vpnGateways

Methods
aggregatedList GET /compute/v1/projects/{project}/aggregated/vpnGateways
Retrieves an aggregated list of VPN gateways.
delete DELETE /compute/v1/projects/{project}/regions/{region}/vpnGateways/{resourceId}
Deletes the specified VPN gateway.
get GET /compute/v1/projects/{project}/regions/{region}/vpnGateways/{resourceId}
Returns the specified VPN gateway.
getStatus GET /compute/v1/projects/{project}/regions/{region}/vpnGateways/{resourceId}/getStatus
Returns the status for the specified VPN gateway.
insert POST /compute/v1/projects/{project}/regions/{region}/vpnGateways
Creates a VPN gateway in the specified project and region using the data included in the request.
list GET /compute/v1/projects/{project}/regions/{region}/vpnGateways
Retrieves a list of VPN gateways available to the specified project and region.
setLabels POST /compute/v1/projects/{project}/regions/{region}/vpnGateways/{resourceId}/setLabels
Sets the labels on a VpnGateway.
testIamPermissions POST /compute/v1/projects/{project}/regions/{region}/vpnGateways/{resourceId}/testIamPermissions
Returns permissions that a caller has on the specified resource.

REST Resource: v1.vpnTunnels

Methods
aggregatedList GET /compute/v1/projects/{project}/aggregated/vpnTunnels
Retrieves an aggregated list of VPN tunnels.
delete DELETE /compute/v1/projects/{project}/regions/{region}/vpnTunnels/{resourceId}
Deletes the specified VpnTunnel resource.
get GET /compute/v1/projects/{project}/regions/{region}/vpnTunnels/{resourceId}
Returns the specified VpnTunnel resource.
insert POST /compute/v1/projects/{project}/regions/{region}/vpnTunnels
Creates a VpnTunnel resource in the specified project and region using the data included in the request.
list GET /compute/v1/projects/{project}/regions/{region}/vpnTunnels
Retrieves a list of VpnTunnel resources contained in the specified project and region.

REST Resource: v1.zoneOperations

Methods
delete DELETE /compute/v1/projects/{project}/zones/{zone}/operations/{resourceId}
Deletes the specified zone-specific Operations resource.
get GET /compute/v1/projects/{project}/zones/{zone}/operations/{resourceId}
Retrieves the specified zone-specific Operations resource.
list GET /compute/v1/projects/{project}/zones/{zone}/operations
Retrieves a list of Operation resources contained within the specified zone.

REST Resource: v1.zones

Methods
get GET /compute/v1/projects/{project}/zones/{resourceId}
Returns the specified Zone resource.
list GET /compute/v1/projects/{project}/zones
Retrieves the list of Zone resources available to the specified project.
Was this page helpful? Let us know how we did:

Send feedback about...

Compute Engine Documentation