How can I find the max size VM that will fit on a host

Hi if I have a host how can I work out the max size VM, i.e. CPU quota, Memory size and disk size that will run successfully on it ? via the cli tool or API preferably ?

You can issue a onehost show <host_id> and take a look at the resource metrics you mention on the host template that will be shown.