Get List of all Deployments

Back in older versions I could do

deployments = serve.list_deployments()
if model in deployments.keys(): ...

In ray 2.7, this no longer appears to work. How can one programmatically get a list of all the deployments?

Thanks