Virtual Folder Functions

class ai.backend.client.func.vfolder.VFolder(name)
classmethod await create(name, host=None, unmanaged_path=None, group=None, usage_mode='general', permission='rw', quota='0', cloneable=False)
classmethod await delete_by_id(oid)
classmethod await list(list_all=False)
classmethod await paginated_list(group=None, *, fields=(FieldSpec(field_ref='host', humanized_name='Host', field_name='host', alt_name='host', formatter=<ai.backend.client.output.formatters.OutputFormatter object>, subfields={}), FieldSpec(field_ref='name', humanized_name='Name', field_name='name', alt_name='name', formatter=<ai.backend.client.output.formatters.OutputFormatter object>, subfields={}), FieldSpec(field_ref='created_at', humanized_name='Created At', field_name='created_at', alt_name='created_at', formatter=<ai.backend.client.output.formatters.OutputFormatter object>, subfields={}), FieldSpec(field_ref='creator', humanized_name='Creator', field_name='creator', alt_name='creator', formatter=<ai.backend.client.output.formatters.OutputFormatter object>, subfields={}), FieldSpec(field_ref='group', humanized_name='Group', field_name='group', alt_name='group_id', formatter=<ai.backend.client.output.formatters.OutputFormatter object>, subfields={}), FieldSpec(field_ref='permission', humanized_name='Permission', field_name='permission', alt_name='permission', formatter=<ai.backend.client.output.formatters.OutputFormatter object>, subfields={}), FieldSpec(field_ref='ownership_type', humanized_name='Ownership Type', field_name='ownership_type', alt_name='ownership_type', formatter=<ai.backend.client.output.formatters.OutputFormatter object>, subfields={})), page_offset=0, page_size=20, filter=None, order=None)

Fetches the list of vfolders. Domain admins can only get domain vfolders.

Parameters
  • group (Optional[str, None]) – Fetch vfolders in a specific group.

  • fields (Sequence[FieldSpec]) – Additional per-vfolder query fields to fetch.

Return type

PaginatedResult[dict]

classmethod await list_hosts()
classmethod await list_all_hosts()
classmethod await list_allowed_types()
await info()
await delete()
await rename(new_name)
await download(relative_paths, *, basedir=None, chunk_size=16777216, show_progress=False, address_map=None)
Return type

None

await upload(files, *, basedir=None, chunk_size=16777216, address_map=None, show_progress=False)
Return type

None

await mkdir(path, parents=False, exist_ok=False)
await rename_file(target_path, new_name)
await move_file(src_path, dst_path)
await delete_files(files, recursive=False)
await list_files(path='.')
await invite(perm, emails)
classmethod await invitations()
classmethod await accept_invitation(inv_id)
classmethod await delete_invitation(inv_id)
classmethod await get_fstab_contents(agent_id=None)
classmethod await get_performance_metric(folder_host)
classmethod await list_mounts()
classmethod await mount_host(name, fs_location, options=None, edit_fstab=False)
classmethod await umount_host(name, edit_fstab=False)
await share(perm, emails)
await unshare(emails)
await leave()
await clone(target_name, target_host=None, usage_mode='general', permission='rw')
await update_options(name, permission=None, cloneable=None)