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>