Load and retrieve data
You can load and retrieve data in your Astra DB database. This example uses the Stargate Document API.
Prerequisites
-
An Astra DB Classic database
Get an application token
Use the Astra Portal or the DevOps API to create an application token.
-
In the Astra Portal, go to Tokens.
-
Select the role you want to attach to your token. The permissions for the selected role are shown.
-
Select Generate Token to generate a Client ID, Client Secret, and Token.
-
Download your Client ID, Client Secret, and Token, and then store them securely.
After you exit this page, you can’t access the Client ID, Client Secret, and Token again. |
These tokens never expire, but you can delete tokens that are compromised or no longer needed.
Load data into your database
You can load data into your Astra DB database with any of these methods:
-
DataStax Bulk Loader to load data from csv or json files.
-
Data Loader feature in Astra Portal, which presents options to load CSV data; or load data from the provided sample datasets; or load data from your Amazon S3 bucket that contains exported DynamoDB data.
-
Cassandra Query Language (CQL) statements to load data.
-
Drivers to load data via apps.