-
Notifications
You must be signed in to change notification settings - Fork 1.2k
new nav: Create TOC and overview docs for API #21293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: feature/preview-top-navigation
Are you sure you want to change the base?
new nav: Create TOC and overview docs for API #21293
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@qiancai: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
/cc @Oreoxmt |
|
|
||
| TiDB 提供了多种 API,可用于集群的查询与运维、数据的同步管理、系统的状态监控等多种场景。本文为 [TiDB Cloud](https://docs.pingcap.com/zh/tidbcloud/) 和 [TiDB](https://docs.pingcap.com/zh/tidb/stable/) 中可用的 API 提供了一个概览说明。 | ||
|
|
||
| ## TiDB Cloud API(beta) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ## TiDB Cloud API(beta) | |
| ## TiDB Cloud API (beta) |
|
|
||
| - [TiProxy API](/api/tiproxy-api-overview.md) | ||
| - [Data Migration API](/api/dm-api-overview.md) | ||
| - [Monitoring API](/api/monitoring-api-overview.md) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - [Monitoring API](/api/monitoring-api-overview.md) | |
| - [监控 API](/api/monitoring-api-overview.md) |
| @@ -0,0 +1,30 @@ | |||
| --- | |||
| title: TiDB API 概览 | |||
| summary: 了解 TiDB Cloud 与 TiDB 的 API。 | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| summary: 了解 TiDB Cloud 与 TiDB 的 API。 | |
| summary: 了解 TiDB Cloud 和 TiDB 可用的 API。 |
|
|
||
| # TiDB API 概览 | ||
|
|
||
| TiDB 提供了多种 API,可用于集群的查询与运维、数据的同步管理、系统的状态监控等多种场景。本文为 [TiDB Cloud](https://docs.pingcap.com/zh/tidbcloud/) 和 [TiDB](https://docs.pingcap.com/zh/tidb/stable/) 中可用的 API 提供了一个概览说明。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| TiDB 提供了多种 API,可用于集群的查询与运维、数据的同步管理、系统的状态监控等多种场景。本文为 [TiDB Cloud](https://docs.pingcap.com/zh/tidbcloud/) 和 [TiDB](https://docs.pingcap.com/zh/tidb/stable/) 中可用的 API 提供了一个概览说明。 | |
| TiDB 提供了多种 API,可用于查询和运维集群、管理数据同步、监控系统状态等场景。本文介绍 [TiDB Cloud](https://docs.pingcap.com/zh/tidbcloud/) 和 [TiDB](https://docs.pingcap.com/zh/tidb/stable/) 的可用 API。 |
|
|
||
| [TiDB Cloud API](/api/tidb-cloud-api-overview.md) 是一个 [REST 接口](https://zh.wikipedia.org/wiki/表现层状态转换)。通过该 API,你可以以编程方式访问和操作 TiDB Cloud 中的各类管理资源,例如项目、集群、备份、恢复、导入、账单以及 Data Service。 | ||
|
|
||
| | API | 说明 | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| | API | 说明 | | |
| | API | 描述 | |
|
|
||
| TiDB 为相关 TiDB 工具提供了多种 API。通过这些 API,你可以管理集群组件、监控系统状态,并控制数据同步工作流。 | ||
|
|
||
| | API | 说明 | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| | API | 说明 | | |
| | API | 描述 | |
| | --- | --- | | ||
| | [TiProxy API](/tiproxy/tiproxy-api.md) | 获取 TiProxy 配置、健康状况以及监控数据。 | | ||
| | [Data Migration API](/dm/dm-open-api.md) | 管理 DM-master 与 DM-worker 节点、数据源以及数据同步任务。 | | ||
| | [Monitoring API](/tidb-monitoring-api.md) | 获取 TiDB 服务器运行状态、数据表的存储信息以及 TiKV 集群的详细信息。 | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| | [Monitoring API](/tidb-monitoring-api.md) | 获取 TiDB 服务器运行状态、数据表的存储信息以及 TiKV 集群的详细信息。 | | |
| | [监控 API](/tidb-monitoring-api.md) | 获取 TiDB Server 运行状态、数据表的存储信息以及 TiKV 集群的详细信息。 | |
| | [Data Migration API](/dm/dm-open-api.md) | 管理 DM-master 与 DM-worker 节点、数据源以及数据同步任务。 | | ||
| | [Monitoring API](/tidb-monitoring-api.md) | 获取 TiDB 服务器运行状态、数据表的存储信息以及 TiKV 集群的详细信息。 | | ||
| | [TiCDC API](/ticdc/ticdc-open-api-v2.md) | 查询 TiCDC 节点状态并管理数据同步任务,包括任务的创建、暂停、恢复与更新等操作。 | | ||
| | [TiDB Operator API](<https://github.com/pingcap/tidb-operator/blob/{{{ .tidb-operator-version }}}/docs/api-references/docs.md>) | 管理 Kubernetes 上的 TiDB 集群,包括集群部署、升级、扩缩容、备份与故障切换等操作。 | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| | [TiDB Operator API](<https://github.com/pingcap/tidb-operator/blob/{{{ .tidb-operator-version }}}/docs/api-references/docs.md>) | 管理 Kubernetes 上的 TiDB 集群,包括集群部署、升级、扩缩容、备份与故障切换等操作。 | | |
| | [TiDB Operator API](<https://github.com/pingcap/tidb-operator/blob/{{{ .tidb-operator-version }}}/docs/api-references/docs.md>) | 管理 Kubernetes 上的 TiDB 集群,包括集群部署、升级、扩缩容、备份与故障转移等操作。 | |
| @@ -0,0 +1,18 @@ | |||
| --- | |||
| title: Data Migration API 概览 | |||
| summary: 了解 Data Migration(DM)的 API。 | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| summary: 了解 Data Migration(DM)的 API。 | |
| summary: 了解 Data Migration (DM) 的 API。 |
|
|
||
| # Data Migration API 概览 | ||
|
|
||
| [TiDB Data Migration](/dm/dm-overview.md)(DM)是一款便捷的数据迁移工具,支持从与 MySQL 协议兼容的数据库(例如 MySQL、MariaDB、Aurora MySQL)到 TiDB 的全量数据迁移和增量数据同步。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| [TiDB Data Migration](/dm/dm-overview.md)(DM)是一款便捷的数据迁移工具,支持从与 MySQL 协议兼容的数据库(例如 MySQL、MariaDB、Aurora MySQL)到 TiDB 的全量数据迁移和增量数据同步。 | |
| [TiDB Data Migration](/dm/dm-overview.md) (DM) 是一款便捷的数据迁移工具,支持从与 MySQL 协议兼容的数据库(例如 MySQL、MariaDB、Aurora MySQL)到 TiDB 的全量数据迁移和增量数据同步。 |
|
|
||
| # TiDB 监控 API 概览 | ||
|
|
||
| TiDB 的监控框架基于 [Prometheus](https://prometheus.io) 和 [Grafana](https://grafana.com/grafana) 这两个开源项目。TiDB 使用 Prometheus 作为监控和性能指标信息存储方案,使用 Grafana 作为可视化组件进行展示,并提供内置的 [TiDB Dashboard](/dashboard/dashboard-intro.md) 图形化界面,用于监控及诊断 TiDB 集群。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| TiDB 的监控框架基于 [Prometheus](https://prometheus.io) 和 [Grafana](https://grafana.com/grafana) 这两个开源项目。TiDB 使用 Prometheus 作为监控和性能指标信息存储方案,使用 Grafana 作为可视化组件进行展示,并提供内置的 [TiDB Dashboard](/dashboard/dashboard-intro.md) 图形化界面,用于监控及诊断 TiDB 集群。 | |
| TiDB 的监控框架基于 [Prometheus](https://prometheus.io) 和 [Grafana](https://grafana.com/grafana) 这两个开源项目。TiDB 使用 Prometheus 存储监控和性能指标,使用 Grafana 可视化展示这些指标,并提供内置的 [TiDB Dashboard](/dashboard/dashboard-intro.md) 图形化界面,用于监控及诊断 TiDB 集群。 |
|
|
||
| 该 API 具有以下特性: | ||
|
|
||
| - **JSON 实体(JSON entities)**:API 中的所有资源和数据均使用 JSON 格式。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - **JSON 实体(JSON entities)**:API 中的所有资源和数据均使用 JSON 格式。 | |
| - **JSON 实体 (JSON entities)**:API 中的所有资源和数据均使用 JSON 格式。 |
|
|
||
| TiDB Cloud API 提供以下两个版本: | ||
|
|
||
| - [v1beta1](/api/tidb-cloud-api-v1beta1.md):管理 TiDB Cloud Starter、Essential 与 Dedicated 集群,以及计费、Data Service 与 IAM 资源。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - [v1beta1](/api/tidb-cloud-api-v1beta1.md):管理 TiDB Cloud Starter、Essential 与 Dedicated 集群,以及计费、Data Service 与 IAM 资源。 | |
| - [v1beta1](/api/tidb-cloud-api-v1beta1.md):管理 TiDB Cloud Starter、Essential 与 Dedicated 集群,以及账单、Data Service 与 IAM 资源。 |
|
|
||
| | API | 说明 | | ||
| | --- | --- | | ||
| | [v1beta1](/api/tidb-cloud-api-v1beta1.md) | 管理 TiDB Cloud Starter、Essential 与 Dedicated 集群,以及计费、Data Service 与 IAM 资源。 | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| | [v1beta1](/api/tidb-cloud-api-v1beta1.md) | 管理 TiDB Cloud Starter、Essential 与 Dedicated 集群,以及计费、Data Service 与 IAM 资源。 | | |
| | [v1beta1](/api/tidb-cloud-api-v1beta1.md) | 管理 TiDB Cloud Starter、Essential 与 Dedicated 集群,以及账单、Data Service 与 IAM 资源。 | |
| 目前,你可以使用以下 v1beta1 API 来管理 TiDB Cloud 中的资源: | ||
|
|
||
| - 集群级资源: | ||
| - [TiDB Cloud Starter 或 Essential Cluster](https://docs.pingcap.com/tidbcloud/api/v1beta1/serverless):管理 TiDB Cloud Starter 或 Essential 的集群、分支、数据导出任务与数据导入任务。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - [TiDB Cloud Starter 或 Essential Cluster](https://docs.pingcap.com/tidbcloud/api/v1beta1/serverless):管理 TiDB Cloud Starter 或 Essential 的集群、分支、数据导出任务与数据导入任务。 | |
| - [TiDB Cloud Starter 或 Essential 集群](https://docs.pingcap.com/tidbcloud/api/v1beta1/serverless):管理 TiDB Cloud Starter 或 Essential 的集群、分支、数据导出任务与数据导入任务。 |
|
|
||
| - 集群级资源: | ||
| - [TiDB Cloud Starter 或 Essential Cluster](https://docs.pingcap.com/tidbcloud/api/v1beta1/serverless):管理 TiDB Cloud Starter 或 Essential 的集群、分支、数据导出任务与数据导入任务。 | ||
| - [TiDB Cloud Dedicated Cluster](https://docs.pingcap.com/tidbcloud/api/v1beta1/dedicated):管理 TiDB Cloud Dedicated 的集群、区域(Region)、Private Endpoint 连接以及数据导入任务。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - [TiDB Cloud Dedicated Cluster](https://docs.pingcap.com/tidbcloud/api/v1beta1/dedicated):管理 TiDB Cloud Dedicated 的集群、区域(Region)、Private Endpoint 连接以及数据导入任务。 | |
| - [TiDB Cloud Dedicated 集群](https://docs.pingcap.com/tidbcloud/api/v1beta1/dedicated):管理 TiDB Cloud Dedicated 的集群、区域 (region)、Private Endpoint 连接以及数据导入任务。 |
| - [TiDB Cloud Starter 或 Essential Cluster](https://docs.pingcap.com/tidbcloud/api/v1beta1/serverless):管理 TiDB Cloud Starter 或 Essential 的集群、分支、数据导出任务与数据导入任务。 | ||
| - [TiDB Cloud Dedicated Cluster](https://docs.pingcap.com/tidbcloud/api/v1beta1/dedicated):管理 TiDB Cloud Dedicated 的集群、区域(Region)、Private Endpoint 连接以及数据导入任务。 | ||
| - 组织或项目级资源: | ||
| - [Billing](https://docs.pingcap.com/tidbcloud/api/v1beta1/billing):管理 TiDB Cloud 集群的计费。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| - [Billing](https://docs.pingcap.com/tidbcloud/api/v1beta1/billing):管理 TiDB Cloud 集群的计费。 | |
| - [Billing](https://docs.pingcap.com/tidbcloud/api/v1beta1/billing):管理 TiDB Cloud 集群的账单。 |
[LGTM Timeline notifier]Timeline:
|
First-time contributors' checklist
What is changed, added or deleted? (Required)
Which TiDB version(s) do your changes apply to? (Required)
Tips for choosing the affected version(s):
By default, CHOOSE MASTER ONLY so your changes will be applied to the next TiDB major or minor releases. If your PR involves a product feature behavior change or a compatibility change, CHOOSE THE AFFECTED RELEASE BRANCH(ES) AND MASTER.
For details, see tips for choosing the affected versions (in Chinese).
What is the related PR or file link(s)?
Do your changes match any of the following descriptions?