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)
Ejemplo n.º 2
0
    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)
Ejemplo n.º 3
0
#!/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)
#!/usr/bin/env python
from delphixpy.v1_6_0.delphix_engine import DelphixEngine
from delphixpy.v1_6_0.web import group, database
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)

for obj in database_objs:
	if database_name == obj.name:
		database_reference = obj.reference
		break

database.sync(server_session, database_reference)