How to retrieve buckets on server using C SDK

I am trying to figure out a way to retrieve all existing buckets, preferably a list of containing all bucket names, on my cloud server being used for Couchbase. However, I was not able to find any supporting documentation in the C SDK to do so. I do see some existing solutions in Python and .Net SDK. Is there a suggestion on how to achieve this?