vcf_vim_vm_disk

Execution module for VM disk lifecycle (SOAP).

saltext.vcf.modules.vcf_vim_vm_disk.list_(vm, profile=None)[source]

List every VirtualDisk on vm.

CLI Example:

salt '*' vcf_vim_vm_disk.list_ vm-100
saltext.vcf.modules.vcf_vim_vm_disk.add(vm, size_gb, datastore_moid=None, controller_key=None, unit_number=None, disk_mode='persistent', thin=True, eager_scrub=False, profile=None)[source]

Add a new disk to vm.

CLI Example:

salt '*' vcf_vim_vm_disk.add vm-100 50 thin=true
saltext.vcf.modules.vcf_vim_vm_disk.resize(vm, disk_key, size_gb, profile=None)[source]

Resize a disk by its device key.

CLI Example:

salt '*' vcf_vim_vm_disk.resize vm-100 2000 100
saltext.vcf.modules.vcf_vim_vm_disk.remove(vm, disk_key, destroy_files=False, profile=None)[source]

Remove a disk by its device key.

CLI Example:

salt '*' vcf_vim_vm_disk.remove vm-100 2000 destroy_files=false