def serversess(f_engine_address, f_engine_username, f_engine_password): """ Function to setup the session with the Delphix Engine """ server_session = DelphixEngine(f_engine_address, f_engine_username, f_engine_password, "DOMAIN") return server_session
def system_serversess(f_engine_address, f_engine_username, f_engine_password): ''' Function to grab the server session ''' server_session = DelphixEngine(f_engine_address, f_engine_username, f_engine_password, "SYSTEM") return server_session
def _get_engine(self): # todo: Where to get these HARDCODED VALUES???? <<--- move this to the resource address = "192.168.85.31:8888" user = "******" password = "******" namespace = "DOMAIN" return DelphixEngine(address=address, user=user, password=password, namespace=namespace)
def snapshot_group_will(self, message, v_object=None): group_name = v_object #database_name = "Employee DB - Dev" server_session = DelphixEngine("landsharkengine", "delphix_admin", "landshark", "DOMAIN") all_groups = group.get_all(server_session) for each in all_groups: if group_name == each.name: group_reference = each.reference break database_objs = database.get_all(server_session, group=group_reference) with job_context. async (server_session): for obj in database_objs: database.sync(server_session, obj.reference)
#!/usr/bin/env python from delphixpy.v1_6_0.delphix_engine import DelphixEngine from delphixpy.v1_6_0.web import group, database from delphixpy.v1_6_0 import job_context group_name = "Dev Copies" #database_name = "Employee DB - Dev" server_session = DelphixEngine("landsharkengine", "delphix_admin", "landshark", "DOMAIN") all_groups = group.get_all(server_session) for each in all_groups: if group_name == each.name: group_reference = each.reference break database_objs = database.get_all(server_session, group=group_reference) with job_context. async (server_session): for obj in database_objs: database.sync(server_session, obj.reference)
def _get_engine(self, engine_conf): return DelphixEngine(address=engine_conf.address, user=engine_conf.user, password=engine_conf.password, namespace=engine_conf.namespace)