fixes #4155 - associate and disassociate vms using the api