[英]How can I unathorized view in Google BigQuery via API or CLI
There is not in an official document or anyone mentioned it.官方文件或任何人都没有提到它。 please help
请帮忙
Enter the following command to write the access controls for yourdataset to a JSON file.输入以下命令以将数据集的访问控制写入 JSON 文件。 yourdataset is in yourproject.
你的数据集在你的项目中。
bq show --format=prettyjson \ yourproject:yourdataset > /tmp/yourdataset.json
Make your changes to the "access" section of the JSON file.对 JSON 文件的“访问”部分进行更改。
When your edits are complete, use the update command and include the JSON file using the --source flag.编辑完成后,使用更新命令并使用 --source 标志包含 JSON 文件。 Note: when you apply the JSON file that contains the access controls, the existing access controls are overwritten.
注意:当您应用包含访问控制的 JSON 文件时,现有的访问控制将被覆盖。
bq update --source /tmp/yourdataset.json yourdataset
If the dataset is in a project other than your default project, add the project ID to the dataset name in the following format: project_id:dataset.如果数据集位于默认项目以外的项目中,请按以下格式将项目 ID 添加到数据集名称:project_id:dataset。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.