Skip to content
GET /datastore/{id}

Path Parameters

idstring · uuid
required·

The ID of the datastore to retrieve.

Response Body

configobject

Config object for the datastore connection (minus sensitive fields). The shape depends on type.

Example:
{
  "data_source": "Cluster0",
  "database": "my_db",
  "api_url": "https://data.mongodb-api.com/app/..."
}
One of
Mongo Data Api · 4 properties
api_keystring

Atlas Data API key. Treat as a secret.

api_urlstring

Base URL of your Atlas Data API endpoint.

data_sourcestring

Name of the Atlas cluster (the Data API "data source").

databasestring
Google Cloud Storage · 2 properties
credentialsobject
required·

Service-account JSON used to authenticate against Google Cloud Storage.

11 properties
auth_provider_x509_cert_urlstring
auth_uristring
client_emailstring
client_idstring
client_x509_cert_urlstring
private_keystring
private_key_idstring
project_idstring
token_uristring
typestring
universe_domainstring
bucketstring
S3 · 5 properties
access_key_idstring
base_urlstring

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.

bucketstring
regionstring
secret_access_keystring

Secret access key. Treat as a secret.

Qdrant · 4 properties
api_keystring

Qdrant API key. Treat as a secret.

base_urlstring

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.

collectionstring
portinteger
Azure Blob Storage · 6 properties
account_keystring

Base64 storage account key, used for Shared Key authorization. Required when auth_type is account_key. Treat as a secret.

account_namestring

Storage account name.

auth_typestring

How requests are authorized. The matching secret field is required.

Possible values:
sas_tokenaccount_key
base_urlstring

Optional public https endpoint that replaces https://{account_name}.blob.core.windows.net, for example a sovereign cloud.

containerstring

Blob container name (3-63 lowercase letters, digits and single hyphens).

sas_tokenstring

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
connection_stringstring

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
api_keystring

Pinecone API key. Treat as a secret.

index_hoststring

The index host from the Pinecone console, for example https://docs-abc123.svc.aped-4627-b74a.pinecone.io.

Big Query · 3 properties
credentialsobject
required·

Service-account JSON used to authenticate against Google Cloud Storage.

11 properties
auth_provider_x509_cert_urlstring
auth_uristring
client_emailstring
client_idstring
client_x509_cert_urlstring
private_keystring
private_key_idstring
project_idstring
token_uristring
typestring
universe_domainstring
datasetstring

Dataset to write to. The service account needs the BigQuery Data Editor role on it.

project_idstring

Project that holds the dataset. Defaults to the service account's project_id.

Snowflake · 7 properties
accountstring

Account identifier in orgname-account_name form, or a legacy account locator such as xy12345.us-east-2.aws.

databasestring

Default database. Case-sensitive, as returned by SHOW DATABASES.

private_keystring

Unencrypted RSA private key in PEM form, PKCS#8 (-----BEGIN PRIVATE KEY-----) or PKCS#1 (-----BEGIN RSA PRIVATE KEY-----). Treat as a secret.

rolestring

Optional role. Defaults to the user's default role.

schemastring

Default schema. Case-sensitive, as returned by SHOW SCHEMAS.

userstring

Snowflake user that holds the public key (RSA_PUBLIC_KEY).

warehousestring

Warehouse to run statements on. Case-sensitive, as returned by SHOW WAREHOUSES.

created_atstring · date-time

Timestamp when the datastore record was created.

environment_idstring · uuid

The environment to which this datastore belongs.

idstring · uuid

The unique ID of the datastore.

labelstring

A friendly label for identifying this datastore.

typestring

The datastore's backend type. Determines the shape of config.

Possible values:
mongo_data_apigoogle_cloud_storages3qdrantazure_blob_storagepostgrespineconebigquerysnowflake
updated_atstring · date-time

Timestamp when the datastore record was last updated.

truto datastores get '<id>' -o json
import 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())