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

# submit\_assign\_sla

Submits a Rubrik SLA change for objects

```python
def submit_assign_sla(self, object_ids, sla_id):
```

## Arguments

| Name        | Type   | Description                | Choices |
| ----------- | ------ | -------------------------- | ------- |
| object\_ids | \[str] | Array of Rubrik Object IDs |         |
| sla\_id     | str    | Rubrik SLA Domain ID       |         |

## Returns

| Type | Return Value                     |
| ---- | -------------------------------- |
| list | List of objects assigned the SLA |

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


# Run On-Demand Snapshot for machines in us_west1 using Gold retention, wait until completion

object_ids = client.get_object_ids_gce(region='us-west-1')
sla_domain_id = client.get_sla_domains('Gold')[0]['id']

client.submit_assign_sla(object_ids, sla_domain_id)
```
