saltext.vmware.modules.vmc_vm_stats#

Salt execution module for VMC vm stats Provides methods to get cpu or memory related settings of a virtual machine

saltext.vmware.modules.vmc_vm_stats.get(hostname, username, password, vm_id, stats_type, verify_ssl=True, cert=None)[source]#

Retrieves the cpu or memory related settings for given VM.

CLI Example:

salt vm_minion vmc_vm_stats.get hostname=sample-vcenter.vmwarevmc.com ...
hostname

Hostname of the vCenter console

username

username required to login to vCenter console

password

password required to login to vCenter console

vm_id

Virtual machine identifier for which the stats should be retrieved.

stats_type

Type of the stats to be retrieved for given VM. Possible values: cpu, memory

verify_ssl

(Optional) Option to enable/disable SSL verification. Enabled by default. If set to False, the certificate validation is skipped.

cert

(Optional) Path to the SSL client certificate file to connect to VMC Cloud Console. The certificate can be retrieved from browser.