Open documentation ↗Overview
Creates and runs virtual machines on Google Cloud Platform.
Compute Engine API is an analytics API from googleapis.com. Requests are authenticated with OAuth. It is served over HTTPS. Its OpenAPI description documents 694 endpoints.
At a glance
- Authentication
- OAuth
- HTTPS
- Yes
- CORS
- Unknown
- Category
- Analytics
- Base URL
https://compute.googleapis.com/compute/v1- Version
- v1
- Endpoints
- 694
- OpenAPI
- Specification ↗
- Spec updated
- 2023-04-13
Make a first request
Replace the placeholders; the documentation says exactly where credentials go.
curl -X GET "https://compute.googleapis.com/compute/v1/locations/global/firewallPolicies" \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_TOKEN"const response = await fetch("https://compute.googleapis.com/compute/v1/locations/global/firewallPolicies", {
method: "GET",
headers: {
"Accept": "application/json",
"Authorization": "Bearer YOUR_TOKEN",
},
});
const data = await response.json();
console.log(data);import requests
response = requests.request(
"GET",
"https://compute.googleapis.com/compute/v1/locations/global/firewallPolicies",
headers={
"Accept": "application/json",
"Authorization": "Bearer YOUR_TOKEN",
},
timeout=30,
)
print(response.json())Endpoints
| Method | Path | What it does |
|---|---|---|
| GET | /locations/global/firewallPolicies | Lists all the policies that have been configured for the specified folder or organization. |
| POST | /locations/global/firewallPolicies | Creates a new policy in the specified project using the data included in the request. |
| GET | /locations/global/firewallPolicies/listAssociations | Lists associations of a specified target, i.e., organization or folder. |
| GET | /locations/global/firewallPolicies/{firewallPolicy} | Returns the specified firewall policy. |
| PATCH | /locations/global/firewallPolicies/{firewallPolicy} | Patches the specified policy with the data included in the request. |
| DELETE | /locations/global/firewallPolicies/{firewallPolicy} | Deletes the specified policy. |
| POST | /locations/global/firewallPolicies/{firewallPolicy}/addAssociation | Inserts an association for the specified firewall policy. |
| POST | /locations/global/firewallPolicies/{firewallPolicy}/addRule | Inserts a rule into a firewall policy. |
| POST | /locations/global/firewallPolicies/{firewallPolicy}/cloneRules | Copies rules to the specified firewall policy. |
| GET | /locations/global/firewallPolicies/{firewallPolicy}/getAssociation | Gets an association with the specified name. |
| GET | /locations/global/firewallPolicies/{firewallPolicy}/getRule | Gets a rule of the specified priority. |
| POST | /locations/global/firewallPolicies/{firewallPolicy}/move | Moves the specified firewall policy. |
| POST | /locations/global/firewallPolicies/{firewallPolicy}/patchRule | Patches a rule of the specified priority. |
| POST | /locations/global/firewallPolicies/{firewallPolicy}/removeAssociation | Removes an association for the specified firewall policy. |
| POST | /locations/global/firewallPolicies/{firewallPolicy}/removeRule | Deletes a rule of the specified priority. |
| GET | /locations/global/firewallPolicies/{resource}/getIamPolicy | Gets the access control policy for a resource. May be empty if no such policy or resource exists. |
| POST | /locations/global/firewallPolicies/{resource}/setIamPolicy | Sets the access control policy on the specified resource. Replaces any existing policy. |
| POST | /locations/global/firewallPolicies/{resource}/testIamPermissions | Returns permissions that a caller has on the specified resource. |
| GET | /locations/global/operations | Retrieves a list of Operation resources contained within the specified organization. |
| GET | /locations/global/operations/{operation} | Retrieves the specified Operations resource. Gets a list of operations by making a `list()` request. |
| DELETE | /locations/global/operations/{operation} | Deletes the specified Operations resource. |
| GET | /projects/{project} | Returns the specified Project resource. To decrease latency for this method, you can optionally omit any unneeded information from the response by using a field |
| GET | /projects/{project}/aggregated/acceleratorTypes | Retrieves an aggregated list of accelerator types. |
| GET | /projects/{project}/aggregated/addresses | Retrieves an aggregated list of addresses. |
| GET | /projects/{project}/aggregated/autoscalers | Retrieves an aggregated list of autoscalers. |
| GET | /projects/{project}/aggregated/backendServices | Retrieves the list of all BackendService resources, regional and global, available to the specified project. |
| GET | /projects/{project}/aggregated/commitments | Retrieves an aggregated list of commitments by region. |
| GET | /projects/{project}/aggregated/diskTypes | Retrieves an aggregated list of disk types. |
| GET | /projects/{project}/aggregated/disks | Retrieves an aggregated list of persistent disks. |
| GET | /projects/{project}/aggregated/forwardingRules | Retrieves an aggregated list of forwarding rules. |
| GET | /projects/{project}/aggregated/healthChecks | Retrieves the list of all HealthCheck resources, regional and global, available to the specified project. |
| GET | /projects/{project}/aggregated/instanceGroupManagers | Retrieves the list of managed instance groups and groups them by zone. |
| GET | /projects/{project}/aggregated/instanceGroups | Retrieves the list of instance groups and sorts them by zone. |
| GET | /projects/{project}/aggregated/instanceTemplates | Retrieves the list of all InstanceTemplates resources, regional and global, available to the specified project. |
| GET | /projects/{project}/aggregated/instances | Retrieves an aggregated list of all of the instances in your project across all regions and zones. The performance of this method degrades when a filter is spec |
| GET | /projects/{project}/aggregated/interconnectAttachments | Retrieves an aggregated list of interconnect attachments. |
| GET | /projects/{project}/aggregated/machineTypes | Retrieves an aggregated list of machine types. |
| GET | /projects/{project}/aggregated/networkAttachments | Retrieves the list of all NetworkAttachment resources, regional and global, available to the specified project. |
| GET | /projects/{project}/aggregated/networkEdgeSecurityServices | Retrieves the list of all NetworkEdgeSecurityService resources available to the specified project. |
| GET | /projects/{project}/aggregated/networkEndpointGroups | Retrieves the list of network endpoint groups and sorts them by zone. |
| GET | /projects/{project}/aggregated/nodeGroups | Retrieves an aggregated list of node groups. Note: use nodeGroups.listNodes for more details about each group. |
| GET | /projects/{project}/aggregated/nodeTemplates | Retrieves an aggregated list of node templates. |
| GET | /projects/{project}/aggregated/nodeTypes | Retrieves an aggregated list of node types. |
| GET | /projects/{project}/aggregated/operations | Retrieves an aggregated list of all operations. |
| GET | /projects/{project}/aggregated/packetMirrorings | Retrieves an aggregated list of packetMirrorings. |
| GET | /projects/{project}/aggregated/publicDelegatedPrefixes | Lists all PublicDelegatedPrefix resources owned by the specific project across all scopes. |
| GET | /projects/{project}/aggregated/reservations | Retrieves an aggregated list of reservations. |
| GET | /projects/{project}/aggregated/resourcePolicies | Retrieves an aggregated list of resource policies. |
| GET | /projects/{project}/aggregated/routers | Retrieves an aggregated list of routers. |
| GET | /projects/{project}/aggregated/securityPolicies | Retrieves the list of all SecurityPolicy resources, regional and global, available to the specified project. |
| GET | /projects/{project}/aggregated/serviceAttachments | Retrieves the list of all ServiceAttachment resources, regional and global, available to the specified project. |
| GET | /projects/{project}/aggregated/sslCertificates | Retrieves the list of all SslCertificate resources, regional and global, available to the specified project. |
| GET | /projects/{project}/aggregated/sslPolicies | Retrieves the list of all SslPolicy resources, regional and global, available to the specified project. |
| GET | /projects/{project}/aggregated/subnetworks | Retrieves an aggregated list of subnetworks. |
| GET | /projects/{project}/aggregated/subnetworks/listUsable | Retrieves an aggregated list of all usable subnetworks in the project. |
| GET | /projects/{project}/aggregated/targetHttpProxies | Retrieves the list of all TargetHttpProxy resources, regional and global, available to the specified project. |
| GET | /projects/{project}/aggregated/targetHttpsProxies | Retrieves the list of all TargetHttpsProxy resources, regional and global, available to the specified project. |
| GET | /projects/{project}/aggregated/targetInstances | Retrieves an aggregated list of target instances. |
| GET | /projects/{project}/aggregated/targetPools | Retrieves an aggregated list of target pools. |
| GET | /projects/{project}/aggregated/targetTcpProxies | Retrieves the list of all TargetTcpProxy resources, regional and global, available to the specified project. |
| GET | /projects/{project}/aggregated/targetVpnGateways | Retrieves an aggregated list of target VPN gateways. |
| GET | /projects/{project}/aggregated/urlMaps | Retrieves the list of all UrlMap resources, regional and global, available to the specified project. |
| GET | /projects/{project}/aggregated/vpnGateways | Retrieves an aggregated list of VPN gateways. |
| GET | /projects/{project}/aggregated/vpnTunnels | Retrieves an aggregated list of VPN tunnels. |
| POST | /projects/{project}/disableXpnHost | Disable this project as a shared VPC host project. |
| POST | /projects/{project}/disableXpnResource | Disable a service resource (also known as service project) associated with this host project. |
| POST | /projects/{project}/enableXpnHost | Enable this project as a shared VPC host project. |
| POST | /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 | /projects/{project}/getXpnHost | Gets the shared VPC host project that this project links to. May be empty if no link exists. |
| GET | /projects/{project}/getXpnResources | Gets service resources (a.k.a service project) associated with this host project. |
| GET | /projects/{project}/global/addresses | Retrieves a list of global addresses. |
| POST | /projects/{project}/global/addresses | Creates an address resource in the specified project by using the data included in the request. |
| GET | /projects/{project}/global/addresses/{address} | Returns the specified address resource. |
| DELETE | /projects/{project}/global/addresses/{address} | Deletes the specified address resource. |
| POST | /projects/{project}/global/addresses/{resource}/setLabels | Sets the labels on a GlobalAddress. To learn more about labels, read the Labeling Resources documentation. |
| GET | /projects/{project}/global/backendBuckets | Retrieves the list of BackendBucket resources available to the specified project. |
| POST | /projects/{project}/global/backendBuckets | Creates a BackendBucket resource in the specified project using the data included in the request. |
| GET | /projects/{project}/global/backendBuckets/{backendBucket} | Returns the specified BackendBucket resource. |
| PUT | /projects/{project}/global/backendBuckets/{backendBucket} | Updates the specified BackendBucket resource with the data included in the request. |
| PATCH | /projects/{project}/global/backendBuckets/{backendBucket} | Updates the specified BackendBucket resource with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format an |
| DELETE | /projects/{project}/global/backendBuckets/{backendBucket} | Deletes the specified BackendBucket resource. |
| POST | /projects/{project}/global/backendBuckets/{backendBucket}/addSignedUrlKey | Adds a key for validating requests with signed URLs for this backend bucket. |
| POST | /projects/{project}/global/backendBuckets/{backendBucket}/deleteSignedUrlKey | Deletes a key for validating requests with signed URLs for this backend bucket. |
| POST | /projects/{project}/global/backendBuckets/{backendBucket}/setEdgeSecurityPolicy | Sets the edge security policy for the specified backend bucket. |
| GET | /projects/{project}/global/backendServices | Retrieves the list of BackendService resources available to the specified project. |
| POST | /projects/{project}/global/backendServices | Creates a BackendService resource in the specified project using the data included in the request. For more information, see Backend services overview . |
| GET | /projects/{project}/global/backendServices/{backendService} | Returns the specified BackendService resource. |
| PUT | /projects/{project}/global/backendServices/{backendService} | Updates the specified BackendService resource with the data included in the request. For more information, see Backend services overview. |
| PATCH | /projects/{project}/global/backendServices/{backendService} | Patches the specified BackendService resource with the data included in the request. For more information, see Backend services overview. This method supports P |
| DELETE | /projects/{project}/global/backendServices/{backendService} | Deletes the specified BackendService resource. |
| POST | /projects/{project}/global/backendServices/{backendService}/addSignedUrlKey | Adds a key for validating requests with signed URLs for this backend service. |
| POST | /projects/{project}/global/backendServices/{backendService}/deleteSignedUrlKey | Deletes a key for validating requests with signed URLs for this backend service. |
| POST | /projects/{project}/global/backendServices/{backendService}/getHealth | Gets the most recent health check results for this BackendService. Example request body: { "group": "/zones/us-east1-b/instanceGroups/lb-backend-example" } |
| POST | /projects/{project}/global/backendServices/{backendService}/setEdgeSecurityPolicy | Sets the edge security policy for the specified backend service. |
| POST | /projects/{project}/global/backendServices/{backendService}/setSecurityPolicy | Sets the Google Cloud Armor security policy for the specified backend service. For more information, see Google Cloud Armor Overview |
| GET | /projects/{project}/global/backendServices/{resource}/getIamPolicy | Gets the access control policy for a resource. May be empty if no such policy or resource exists. |
| POST | /projects/{project}/global/backendServices/{resource}/setIamPolicy | Sets the access control policy on the specified resource. Replaces any existing policy. |
| GET | /projects/{project}/global/externalVpnGateways | Retrieves the list of ExternalVpnGateway available to the specified project. |
| POST | /projects/{project}/global/externalVpnGateways | Creates a ExternalVpnGateway in the specified project using the data included in the request. |
| GET | /projects/{project}/global/externalVpnGateways/{externalVpnGateway} | Returns the specified externalVpnGateway. Get a list of available externalVpnGateways by making a list() request. |
Showing the first 100 of 694 endpoints; the full list is in the documentation.
Questions
Does the Compute Engine API API need an API key?
Yes. The Compute Engine API API uses OAuth authentication; the documentation explains how to get credentials.
Does the Compute Engine API API support HTTPS?
Yes, the Compute Engine API API is served over HTTPS.
How many endpoints does the Compute Engine API API have?
Its OpenAPI description lists 694 endpoints in version v1. The first 100 are shown on this page.
What are alternatives to the Compute Engine API API?
Other Analytics APIs include Google Play Integrity API, versionhistory.googleapis.com API, Doc Converter, Perspective Comment Analyzer API, Safe Browsing API.
Similar analytics APIs
Compare alternatives →Google Play Integrity API
AnalyticsThe Play Integrity API helps you check that you're interacting with your genuine app on a genuine Android device powered by Google Play services. The Play Integrity API has replaced SafetyNet Attestation and Android Device Verification.
versionhistory.googleapis.com API
AnalyticsVersion History API - Prod
Doc Converter
AnalyticsThis api converts file formats of OpenXml and OpenOffice documents formats to vector files (e.g., svg)
Perspective Comment Analyzer API
AnalyticsThe Perspective Comment Analyzer API provides information about the potential impact of a comment on a conversation (e.g. it can provide a score for the "toxicity" of a comment). Users can leverage the "SuggestCommentScore" method to submit corrections to improve Perspective over time. Users can set the "doNotStore" flag to ensure that all submitted comments are automatically deleted after scores are returned.
Safe Browsing API
AnalyticsEnables client applications to check web resources (most commonly URLs) against Google-generated lists of unsafe web resources. The Safe Browsing APIs are for non-commercial use only. If you need to use APIs to detect malicious URLs for commercial purposes – meaning “for sale or revenue-generating purposes” – please refer to the Web Risk API.
Web Fonts Developer API
AnalyticsThe Google Web Fonts Developer API lets you retrieve information about web fonts served by Google.
Listed from APIs.guru (CC0).