Get datastore
/datastore/{id}
Path Parameters
The ID of the datastore to retrieve.
Response Body
Config object for the datastore connection (minus sensitive fields). The shape depends on type.
{
"data_source": "Cluster0",
"database": "my_db",
"api_url": "https://data.mongodb-api.com/app/..."
}Mongo Data Api · 4 properties
Atlas Data API key. Treat as a secret.
Base URL of your Atlas Data API endpoint.
Name of the Atlas cluster (the Data API "data source").
Google Cloud Storage · 2 properties
Service-account JSON used to authenticate against Google Cloud Storage.
11 properties
S3 · 5 properties
Optional override for non-AWS S3 endpoints (e.g. R2, MinIO). Must be a public https URL without a query string or fragment; a private, loopback or link-local address is refused with a 400. Checked on create, and on update when it changes.
Secret access key. Treat as a secret.
Qdrant · 4 properties
Qdrant API key. Treat as a secret.
The Qdrant instance's URL. Must be a public https URL without a query string or fragment; a private, loopback or link-local address is refused with a 400. Checked on create, and on update when it changes.
Azure Blob Storage · 6 properties
Base64 storage account key, used for Shared Key authorization. Required when auth_type is account_key. Treat as a secret.
Storage account name.
How requests are authorized. The matching secret field is required.
sas_tokenaccount_key
Optional public https endpoint that replaces https://{account_name}.blob.core.windows.net, for example a sovereign cloud.
Blob container name (3-63 lowercase letters, digits and single hyphens).
Shared access signature for the container, with read, write and list permissions. Required when auth_type is sas_token. Treat as a secret.
Postgres · 1 property
postgres://user:password@host:port/database connection string with a public host. TLS is required unless the string sets sslmode=disable; other query options are ignored. The password can be pasted as-is or URL-encoded. With TLS, the server's certificate must chain to a public CA, because Cloudflare Workers cannot trust a private one; Supabase signs with its own CA, so a Supabase connection currently needs sslmode=disable. A connection that is not established within 15 seconds fails. Treat as a secret.
Pinecone · 2 properties
Pinecone API key. Treat as a secret.
The index host from the Pinecone console, for example https://docs-abc123.svc.aped-4627-b74a.pinecone.io.
Big Query · 3 properties
Service-account JSON used to authenticate against Google Cloud Storage.
11 properties
Dataset to write to. The service account needs the BigQuery Data Editor role on it.
Project that holds the dataset. Defaults to the service account's project_id.
Snowflake · 7 properties
Account identifier in orgname-account_name form, or a legacy account locator such as xy12345.us-east-2.aws.
Default database. Case-sensitive, as returned by SHOW DATABASES.
Unencrypted RSA private key in PEM form, PKCS#8 (-----BEGIN PRIVATE KEY-----) or PKCS#1 (-----BEGIN RSA PRIVATE KEY-----). Treat as a secret.
Optional role. Defaults to the user's default role.
Default schema. Case-sensitive, as returned by SHOW SCHEMAS.
Snowflake user that holds the public key (RSA_PUBLIC_KEY).
Warehouse to run statements on. Case-sensitive, as returned by SHOW WAREHOUSES.
Timestamp when the datastore record was created.
The environment to which this datastore belongs.
The unique ID of the datastore.
A friendly label for identifying this datastore.
The datastore's backend type. Determines the shape of config.
mongo_data_apigoogle_cloud_storages3qdrantazure_blob_storagepostgrespineconebigquerysnowflake
Timestamp when the datastore record was last updated.
truto datastores get '<id>' -o jsonimport Truto from '@truto/truto-ts-sdk';
const truto = new Truto({
token: '<your_api_token>',
});
const result = await truto.datastore.get('<id>');
console.log(result);import asyncio
from truto_python_sdk import TrutoApi
truto_api = TrutoApi(token="<your_api_token>")
async def main():
result = await truto_api.datastores.get("<id>")
print(result)
asyncio.run(main())curl -X GET 'https://api.truto.one/datastore/{id}' \
-H 'Authorization: Bearer <your_api_token>' \
-H 'Content-Type: application/json'const response = await fetch('https://api.truto.one/datastore/{id}', {
method: 'GET',
headers: {
'Authorization': 'Bearer <your_api_token>',
'Content-Type': 'application/json',
},
});
const data = await response.json();
console.log(data);import requests
url = "https://api.truto.one/datastore/{id}"
headers = {
"Authorization": "Bearer <your_api_token>",
"Content-Type": "application/json",
}
params = {
}
response = requests.get(url, headers=headers, params=params)
print(response.json())