tcb storage policies list
查看 buckets / objects 表上的 RLS 策略。
v3.4.0+
PG 模式存储命令自 @cloudbase/cli@3.4.0 起提供。
语法
tcb storage policies list [--table buckets|objects] [-e <envId>] [--json]
参数
| 参数 | 必填 | 说明 | 默认值 |
|---|---|---|---|
--table <table> | 否 | 按表过滤,可选 buckets / objects;不传则返回两表的策略 | 两表全部 |
-e, --env-id <envId> | 否 | 环境 ID | — |
--json | 否 | 输出原始 PGExecuteResult | — |
示例
tcb storage policies list --table objects
tcb storage policies list --json
修改策略
RLS 策略变更通过 tcb db execute 加 --role postgres 执行 CREATE POLICY / DROP POLICY。