Park Astra DB Classic databases
Park a database to reduce costs, manage resources, and ensure databases run only when needed. Parking a database suspends the database but does not destroy it. Database operations issued for a parked database are queued until the database resumes.
The only cost incurred while the database is parked are storage costs from the cloud provider. When parking a database, the Astra Portal calculates the estimated cost of parking the database versus the cost of keeping the database running.
Park a database
-
Astra Portal
-
DevOps API
-
In the Astra Portal, go to Databases.
-
Locate the database that you want to park, and then click Park.
-
To confirm parking, click Park Database.
Use the DevOps API to park a database:
curl -sS --location -X POST "https://api.astra.datastax.com/v2/databases/DATABASE_ID/park" \
--header "Authorization: Bearer APPLICATION_TOKEN" \
--header "Content-Type: application/json"
Replace the following:
-
DATABASE_ID
: The database ID. -
APPLICATION_TOKEN
: An application token with the Database Administrator role.
The database enters Parking status while parking, and then it becomes Parked. You can’t make changes to your database while it is parking.
Once parked, database operations are limited, and the database remains parked until you unpark it.
Unpark a database
Unpark a database to reactivate and use the database.
-
Astra Portal
-
DevOps API
-
In the Astra Portal, go to Databases.
-
Locate the database that you want to unpark, and then click Unpark.
-
To confirm unparking, click Unpark Database.
Use the DevOps API to unpark a database:
curl -sS --location -X POST "https://api.astra.datastax.com/v2/databases/DATABASE_ID/unpark" \
--header "Authorization: Bearer APPLICATION_TOKEN" \
--header "Content-Type: application/json"
Replace the following:
-
DATABASE_ID
: The database ID. -
APPLICATION_TOKEN
: An application token with the Database Administrator role.
The database enters Unparking status while unparking, and then it becomes Active. You can’t make changes to your database while it is unparking.