跳至正文内容
TursoDB.cn 独立社区 · MVCC 并发写与每 Agent 独立库实战 阅读解析 →
Turso Cloud API 参考 接口资源 组织管理

检索组织

检索特定组织的详细信息。

GET https://api.turso.tech/v1/organizations/{organizationSlug}
curl -L https://api.turso.tech/v1/organizations/{organizationSlug} \
  -H 'Authorization: Bearer TOKEN'

OpenAPI

openapi: 3.0.1
info:
  title: Turso Platform API
  description: 此处为 API 描述
  license:
    name: MIT
  version: 0.1.0
servers:
  - url: https://api.turso.tech
    description: Turso 的平台 API
security: []
paths:
  /v1/organizations/{organizationSlug}:
    get:
      summary: 检索组织
      description: 检索特定组织的详细信息。
      operationId: getOrganization
      parameters:
        - $ref: '#/components/parameters/organizationSlug'
      responses:
        '200':
          description: 成功响应
          content:
            application/json:
              schema:
                type: object
                properties:
                  organization:
                    $ref: '#/components/schemas/Organization'
        '404':
          description: 未找到组织
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: 错误消息
                    example: organization not found
components:
  parameters:
    organizationSlug:
      in: path
      name: organizationSlug
      required: true
      schema:
        type: string
      description: 组织或用户账号的 slug。
  schemas:
    Organization:
      type: object
      properties:
        name:
          type: string
          description: >-
            组织名称。每个用户都拥有一个用于其自身账号的 `personal` 组织。
          example: personal
        slug:
          type: string
          description: >-
            组织 slug。对于 `personal` 账号,该值就是你的用户名。
          example: iku
        type:
          type: string
          description: >-
            该组织的账号类型。取值始终为 `personal` 或 `team`。
          example: personal
          enum:
            - personal
            - team
        overages:
          type: boolean
          description: >-
            组织名称。每个用户都拥有一个用于其自身账号的 `personal` 组织。
          example: false
        require_mfa:
          type: boolean
          description: >-
            组织中的所有成员是否都必须启用多因素认证。
          example: false
        blocked_reads:
          type: boolean
          description: 返回读取操作的当前封禁状态。
          example: false
        blocked_writes:
          type: boolean
          description: 返回写入操作的当前封禁状态。
          example: false
        plan_id:
          type: string
          description: 该组织所订阅的定价方案标识符。
          example: developer
        plan_timeline:
          type: string
          description: 付费方案的计费周期(如有)。
          example: monthly
        platform:
          type: string
          description: >-
            管理该组织的外部平台。对于由 Turso 管理的组织,此字段为空。
          example: vercel
        restore_enabled:
          type: boolean
          description: >-
            是否为该组织启用已删除数据库和组的恢复功能。仅在检索单个组织时返回。
同步自官方 Turso 文档仓库 ( tursodatabase/turso-docs · MIT 开源协议) 查看官方原文 ↗
搜索
按 Esc 关闭 · 由 Pagefind 静态索引驱动