@sdk_utils.expose<EOL><INDENT>def export_vms(<EOL>self,<EOL>vms_names=None,<EOL>standalone=False,<EOL>export_dir='<STR_LIT:.>',<EOL>compress=False,<EOL>init_file_name='<STR_LIT>',<EOL>out_format=YAMLOutFormatPlugin(),<EOL>collect_only=False,<EOL>with_threads=True,<EOL>):<DEDENT>
return self.virt_env.export_vms(<EOL>vms_names, standalone, export_dir, compress, init_file_name,<EOL>out_format, collect_only, with_threads<EOL>)<EOL>
Export vm images disks and init file.
The exported images and init file can be used to recreate
the environment.

Args:
    vms_names(list of str): Names of the vms to export, if None
        export all the vms in the env (default=None)
    standalone(bool): If false, export a layered image
        (default=False)
    export_dir(str): Dir to place the exported images and init file
    compress(bool): If True compress the images with xz
          (default=False)
    init_file_name(str): The name of the exported init file
        (default='LagoInitfile')
    out_format(:class:`lago.plugins.output.OutFormatPlugin`):
        The type of the exported init file (the default is yaml)
    collect_only(bool): If True, return only a mapping from vm name
        to the disks that will be exported. (default=False)
    with_threads(bool): If True, run the export in parallel
        (default=True)

Returns
    Unless collect_only == True, a mapping between vms' disks.