submit_on_demand
def submit_on_demand(self, object_ids, sla_id, wait=False):Arguments
Keyword Arguments
Returns
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_on_demand(object_ids, sla_domain_id, wait=True)Last updated