> 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/core/get_sla_domains.md).

# get\_sla\_domains

Retrieves dictionary of SLA Domain Names and Identifiers.

```python
def get_sla_domains(self, sla_domain_name=""):
```

## Keyword Arguments

| Name              | Type | Description            | Choices | Default |
| ----------------- | ---- | ---------------------- | ------- | ------- |
| sla\_domain\_name | str  | Rubrik SLA Domain name |         |         |

## Returns

| Type | Return Value                                                                                               |
| ---- | ---------------------------------------------------------------------------------------------------------- |
| str  | ID for the given SLA Domain name as given by `sla_domain_name`                                             |
| dict | The complete set of SLA domains or a one element dict if a non-empty `sla_domain_name` is given and found. |

## 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)
sla_domains = client.get_sla_domains()
```
