> 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/accounts/get_accounts_gcp.md).

# get\_accounts\_gcp

Retrieves GCP account information from Polaris

```python
def get_accounts_gcp(self, filter=""):
```

## Arguments

| Name   | Type | Description                     | Choices |
| ------ | ---- | ------------------------------- | ------- |
| filter | str  | Search string to filter results |         |

## Returns

| Type | Return Value                    |
| ---- | ------------------------------- |
| list | List of GCP accounts in Polaris |

## 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)

aws_accounts = client.get_accounts_gcp("staging")
```
