We are creating a database cluster from the api. That part works fine, but we need a way to check and be notified once the cluster is done provisioning so we can add the databases to it. We tried making a curl call to the host but that seems to return the same response regardless if its provisioning or complete. I was able to find this for droplets, but not for database clusters.
TIA
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hello,
I believe that this information should be available using this API call:
This will return information about the cluster and its status as follows:
For more information you can check out the ‘Retrieve an Existing Database Cluster’ section here:
https://docs.digitalocean.com/reference/api/api-reference/#operation/get_database_cluster
Hope that this helps!
Best,
Bobby