Turso Cloud 命令行工具 命令列表 db config allow-rules
db config allow-rules clear
db config allow-rules clear — Turso 文档。
清除数据库的访问允许规则,从而允许来自任意来源的连接。
turso db config allow-rules clear <database-name> [flags]
在不指定任何标志的情况下,IP 列表和 AWS VPC 端点列表都会被清除。使用 --ips 或 --aws-vpcs 可仅清除其中一个列表。
标志
| 标志 | 描述 |
|---|---|
--ips |
仅清除允许的 IP 列表。 |
--aws-vpcs |
仅清除允许的 AWS VPC 端点 ID 列表。 |
示例
清除所有规则
turso db config allow-rules clear my-db
仅清除 IP 列表
turso db config allow-rules clear my-db --ips
仅清除 VPC 列表
turso db config allow-rules clear my-db --aws-vpcs 同步自官方 Turso 文档仓库 (
tursodatabase/turso-docs
· MIT 开源协议)
查看官方原文 ↗