vcf_vim_datastore_file

Execution module for datastore file transfer + manipulation.

saltext.vcf.modules.vcf_vim_datastore_file.list_(datacenter, datastore, path='', profile=None)[source]

List files under [datastore] path.

CLI Example:

salt '*' vcf_vim_datastore_file.list_ <datacenter> <datastore> <path>
saltext.vcf.modules.vcf_vim_datastore_file.mkdir(datacenter, datastore, path, create_parents=True, profile=None)[source]

Create a directory on the datastore.

CLI Example:

salt '*' vcf_vim_datastore_file.mkdir <datacenter> <datastore> <path>
saltext.vcf.modules.vcf_vim_datastore_file.delete(datacenter, datastore, path, profile=None)[source]

Delete a file or directory.

CLI Example:

salt '*' vcf_vim_datastore_file.delete <datacenter> <datastore> <path>
saltext.vcf.modules.vcf_vim_datastore_file.move(src_datacenter, src_datastore, src_path, dst_datacenter, dst_datastore, dst_path, force=False, profile=None)[source]

Move a datastore file/folder.

CLI Example:

salt '*' vcf_vim_datastore_file.move <src_dc> <src_ds> <src_path> <dst_dc> <dst_ds> <dst_path>
saltext.vcf.modules.vcf_vim_datastore_file.upload(datacenter, datastore, local_path, ds_path, profile=None)[source]

Upload a local file to [datastore] ds_path.

CLI Example:

salt '*' vcf_vim_datastore_file.upload <dc> <ds> <local_path> <ds_path>
saltext.vcf.modules.vcf_vim_datastore_file.download(datacenter, datastore, ds_path, local_path, profile=None)[source]

Download [datastore] ds_path to local_path.

CLI Example:

salt '*' vcf_vim_datastore_file.download <dc> <ds> <ds_path> <local_path>