def _run(args, config): connection = connect.connect(args, config) cursor = connection.cursor() licensing = cursor.callfunc("sync_admin.get_licensing", cx_Oracle.CURSOR) output.print_cursor(licensing, None, args.output, single_row=True)
def _run(args, config): connection = connect.connect(args, config) cursor = connection.cursor() if args.type is not None: disk_type = args.type[0] else: disk_type = None disks = cursor.callfunc("sync_admin.list_disks", cx_Oracle.CURSOR, keywordParameters={ "disk_name": args.name, "disk_type": disk_type, "file_path": args.path, "file_hash": args.hash, "vm_uuid": args.vm, "vm_instance_uuid": args.vm_instance, "unused": args.unused }) if args.output == output.QUIET: fields = ["disk_uuid"] else: fields = None output.print_cursor(disks, fields, args.output)
def _run(args, config): connection = connect.connect(args, config) cursor = connection.cursor() if args.type is not None: disk_type = args.type[0] else: disk_type = None disks = cursor.callfunc("sync_admin.list_disks", cx_Oracle.CURSOR, keywordParameters={ "disk_name": args.name, "disk_type": disk_type, "file_path": args.path, "file_hash": args.hash, "vm_uuid": args.vm, "vm_instance_uuid": args.vm_instance, "unused": args.unused}) if args.output == output.QUIET: fields = ["disk_uuid"] else: fields = None output.print_cursor(disks, fields, args.output)
def _run(args, config): connection = connect.connect(args, config) cursor = connection.cursor() vm_config = cursor.callfunc("sync_admin.get_vm_config", cx_Oracle.CURSOR, keywordParameters={"vm_uuid": args.vm}) output.print_cursor(vm_config, None, args.output)
def _run(args, config): connection = connect.connect(args, config) cursor = connection.cursor() vm_config = cursor.callfunc("sync_admin.get_vm_config", cx_Oracle.CURSOR, keywordParameters={ "vm_uuid": args.vm}) output.print_cursor(vm_config, None, args.output)
def _run(args, config): connection = connect.connect(args, config, required=False) if connection is None: return cursor = connection.cursor() vm_uuids = cursor.callfunc("sync_admin.complete_vm_uuid", cx_Oracle.CURSOR, keywordParameters={"partial_vm_uuid": args.vm}) output.print_cursor(vm_uuids, ["vm_uuid"], output.QUIET)
def _run(args, config): connection = connect.connect(args, config, required=False) if connection is None: return cursor = connection.cursor() repo_uuids = cursor.callfunc("sync_admin.complete_repo_uuid", cx_Oracle.CURSOR, keywordParameters={ "partial_repo_uuid": args.repo}) output.print_cursor(repo_uuids, ["repo_uuid"], output.QUIET)
def _run(args, config): connection = connect.connect(args, config) cursor = connection.cursor() vm = cursor.callfunc("sync_admin.get_vm", cx_Oracle.CURSOR, keywordParameters={"vm_uuid": args.vm}) if args.output == output.QUIET: fields = ["vm_uuid"] else: fields = None output.print_cursor(vm, fields, args.output, single_row=True)
def _run(args, config): connection = connect.connect(args, config) cursor = connection.cursor() repo = cursor.callfunc("sync_admin.get_repo", cx_Oracle.CURSOR, keywordParameters={ "repo_uuid": args.repo}) if args.output == output.QUIET: fields = ["repo_uuid"] else: fields = None output.print_cursor(repo, fields, args.output, single_row=True)
def _run(args, config): connection = connect.connect(args, config) cursor = connection.cursor() vm_instance = cursor.callfunc("sync_admin.get_vm_instance", cx_Oracle.CURSOR, keywordParameters={ "vm_instance_uuid": args.vm_instance}) if args.output == output.QUIET: fields = ["vm_instance_uuid"] else: fields = None output.print_cursor(vm_instance, fields, args.output, single_row=True)
def _run(args, config): connection = connect.connect(args, config) cursor = connection.cursor() device_report = cursor.callfunc( "sync_admin.get_report", cx_Oracle.CURSOR, keywordParameters={"device_uuid": args.device}) if args.output == output.QUIET: fields = ["device_uuid"] else: fields = None output.print_cursor(device_report, fields, args.output, single_row=True)
def _run(args, config): connection = connect.connect(args, config, required=False) if connection is None: return cursor = connection.cursor() vm_instance_uuids = ( cursor.callfunc("sync_admin.complete_vm_instance_uuid", cx_Oracle.CURSOR, keywordParameters={ "partial_vm_instance_uuid": args.vm_instance, "include_unremoved": not args.removed, "include_removed": args.all or args.removed})) output.print_cursor(vm_instance_uuids, ["vm_instance_uuid"], output.QUIET)
def _run(args, config): connection = connect.connect(args, config, required=False) if connection is None: return cursor = connection.cursor() vm_instance_uuids = (cursor.callfunc( "sync_admin.complete_vm_instance_uuid", cx_Oracle.CURSOR, keywordParameters={ "partial_vm_instance_uuid": args.vm_instance, "include_unremoved": not args.removed, "include_removed": args.all or args.removed })) output.print_cursor(vm_instance_uuids, ["vm_instance_uuid"], output.QUIET)
def _run(args, config): connection = connect.connect(args, config) cursor = connection.cursor() devices = cursor.callfunc("sync_admin.list_devices", cx_Oracle.CURSOR, keywordParameters={ "device_name": args.name, "repo_uuid": args.repo, "no_repo": args.no_repo, "vm_uuid": args.vm}) if args.output == output.QUIET: fields = ["device_uuid"] else: fields = None output.print_cursor(devices, fields, args.output)
def _run(args, config): connection = connect.connect(args, config) cursor = connection.cursor() vms = cursor.callfunc("sync_admin.list_vms", cx_Oracle.CURSOR, keywordParameters={ "vm_name": args.name, "device_uuid": args.device, "disk_uuid": args.disk, "unused": args.unused}) if args.output == output.QUIET: fields = ["vm_uuid"] else: fields = None output.print_cursor(vms, fields, args.output)
def _run(args, config): connection = connect.connect(args, config) cursor = connection.cursor() devices = cursor.callfunc("sync_admin.list_devices", cx_Oracle.CURSOR, keywordParameters={ "device_name": args.name, "repo_uuid": args.repo, "no_repo": args.no_repo, "vm_uuid": args.vm }) if args.output == output.QUIET: fields = ["device_uuid"] else: fields = None output.print_cursor(devices, fields, args.output)
def _run(args, config): connection = connect.connect(args, config) cursor = connection.cursor() repos = cursor.callfunc("sync_admin.list_repos", cx_Oracle.CURSOR, keywordParameters={ "release": args.release, "build": args.build, "file_path": args.path, "file_hash": args.hash, "unused": args.unused}) if args.output == output.QUIET: fields = ["repo_uuid"] else: fields = None output.print_cursor(repos, fields, args.output)
def _run(args, config): connection = connect.connect(args, config) cursor = connection.cursor() vms = cursor.callfunc("sync_admin.list_vms", cx_Oracle.CURSOR, keywordParameters={ "vm_name": args.name, "device_uuid": args.device, "disk_uuid": args.disk, "unused": args.unused }) if args.output == output.QUIET: fields = ["vm_uuid"] else: fields = None output.print_cursor(vms, fields, args.output)