Added option for defining the cloud api to use