submit_assign_sla
Submits a Rubrik SLA change for objects
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
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)
Last updated