> For the complete documentation index, see [llms.txt](https://rubrik.gitbook.io/rubrik-sdk-for-python/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rubrik.gitbook.io/rubrik-sdk-for-python/beta/rubrik_polaris/compute/get_compute_gce.md).

# get\_compute\_gce

Retrieve all GCE instances from Polaris

```python
def get_compute_gce(self):
```

## Returns

| Type | Return Value              |
| ---- | ------------------------- |
| list | List of all GCE instances |

## Example

```python
from rubrik_polaris import PolarisClient


domain = 'my-company'
username = 'john.doe@example.com'
password = 's3cr3tP_a55w0R)'


client = PolarisClient(domain, username, password, insecure=True)

# Search for a set of objects and get their details
for i in client.get_compute_object_ids_gce():
    print(client.get_compute_gce(i))
```
