getApi in Cloud; api and vm classes