This snippet shows how to restore a cluster from a specified backup. Use this operation to recover a cluster to a previous point in time or to create a new cluster based on an existing backup.
Code sample
C#
To authenticate to AlloyDB, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Go
To authenticate to AlloyDB, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Java
To authenticate to AlloyDB, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Python
To authenticate to AlloyDB, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Ruby
To authenticate to AlloyDB, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
What's next
To search and filter code samples for other Google Cloud products, see the Google Cloud sample browser.