데이터베이스 목록 조회
조직 또는 사용자 소유의 데이터베이스 목록을 반환하는 API예요.
출처: 문서
본문
요청 예시:
curl -L https://api.turso.tech/v1/organizations/{organizationSlug}/databases \
-H 'Authorization: Bearer ***'
Node.js 요청 예시:
import { createClient } from "@tursodatabase/api";
const turso = createClient({
org: "...",
token: "",
});
const databases = await turso.databases.list();
OpenAPI
openapi: 3.0.1
info:
title: Turso Platform API
description: API description here
license:
name: MIT
version: 0.1.0
servers:
- url: https://api.turso.tech
description: Turso's Platform API
security: []
paths:
/v1/organizations/{organizationSlug}/databases:
get:
summary: List Databases
description: Returns a list of databases belonging to the organization or user.
operationId: listDatabases
parameters:
- $ref: '#/components/parameters/organizationSlug'
- name: group
in: query
schema:
type: string
description: Filter databases by group name.
- name: schema
in: query
schema:
type: string
description: >-
The schema database name that can be used to get databases that
belong to that parent schema.
deprecated: true
- name: parent
in: query
schema:
type: string
description: Filter database branches by using their parent database ID.
responses:
'200':
description: Successful response
content:
application/json:
schema:
type: object
properties:
databases:
type: array
items:
$ref: '#/components/schemas/Database'
components:
parameters:
organizationSlug:
in: path
name: organizationSlug
required: true
schema:
type: string
description: The slug of the organization or user account.
schemas:
Database:
type: object
properties:
Name:
type: string
description: The database name, **unique** across your organization.
example: my-db
DbId:
type: string
description: The database universal unique identifier (UUID).
example: 0eb771dd-6906-11ee-8553-eaa7715aeaf2
Hostname:
type: string
description: The DNS hostname used for client libSQL and HTTP connections.
example: '[databaseName]-[organizationSlug].turso.io'
block_reads:
type: boolean
description: The current status for blocked reads.
example: false
block_writes:
type: boolean
description: The current status for blocked writes.
example: false
regions:
type: array
items:
type: string
description: A list of regions for the group the database belongs to.
example:
- aws-us-east-1
deprecated: true
primaryRegion:
type: string
description: The primary region location code the group the database belongs to.
example: aws-us-east-1
group:
type: string
description: The name of the group the database belongs to.
example: default
delete_protection:
type: boolean
description: >-
The current status for delete protection. If enabled, the database
cannot be deleted.
example: false
parent:
type: object
nullable: true
properties:
id:
type: string
description: The parent database identifier.
name:
type: string
description: The name of the parent database.
branched_at:
type: string
format: date-time
description: The timestamp when the database was branched from the parent.
example: '2025-04-15T13:14:34.468213117Z'
더 알아보기 (Learn more)
- 데이터베이스 생성 — 새 데이터베이스 만들기
- 데이터베이스 조회 — 단일 데이터베이스 정보 조회
- 삭제된 데이터베이스 목록 — 복원 가능한 삭제 DB 목록
- 데이터베이스 인스턴스 목록 — 데이터베이스의 인스턴스 나열