Google BigQuery 数据集上 getIamPolicy 的正确 Cloud Resource Manager URI 是什么
What is the correct Cloud Resource Manager URI for getIamPolicy on a Google BigQuery Dataset
我想为单个 Google BigQuery 数据集设置细粒度的、特定于资源的 IAM 策略。到目前为止我找到的文档只解释了如何为项目资源获取和设置 IAM 策略,例如https://cloudresourcemanager.googleapis.com/v1/projects/<project-id>:getIamPolicy
.
我正在尝试获取项目中资源的策略,特别是具有 API URL 的 Google BigQuery 数据集,如下所示:https://www.googleapis.com/bigquery/v2/projects/<project-id>/datasets/<dataset-id>
.
我已经尝试了一些看起来很明显的 URI,比如
https://www.googleapis.com/bigquery/v2/projects/<project-id>/datasets/<dataset-id>:getIamPolicy
https://cloudresourcemanager.googleapis.com/v1/projects/<project-id>/datasets/<dataset-id>:getIamPolicy
但是遇到了 404 错误。有谁知道 Google BigQuery 数据集的 IAM 策略的正确 URL 模式?
I am trying to get the policy for a resource within a project, specifically a Google BigQuery dataset ...
你的问题中已经有了 - 你应该使用 GET https://www.googleapis.com/bigquery/v2/projects/<projectId>/datasets/<datasetId>
作为回应你应该寻找 access
属性
来自 documentation:
Access is an array of objects that define dataset access for one or more entities. You can set this property when inserting or updating a dataset in order to control who is allowed to access the data. If unspecified at dataset creation time, BigQuery adds default dataset access for the following entities:
access.specialGroup: projectReaders; access.role: READER;
access.specialGroup: projectWriters; access.role: WRITER;
access.specialGroup: projectOwners; access.role: OWNER;
access.userByEmail: [dataset creator email]; access.role: OWNER;
而且,如果您想更改访问权限 - 您应该使用 PATCH https://www.googleapis.com/bigquery/v2/projects/<projectId>/datasets/<datasetId>
或 PUT https://www.googleapis.com/bigquery/v2/projects/<projectId>/datasets/<datasetId>
我想为单个 Google BigQuery 数据集设置细粒度的、特定于资源的 IAM 策略。到目前为止我找到的文档只解释了如何为项目资源获取和设置 IAM 策略,例如https://cloudresourcemanager.googleapis.com/v1/projects/<project-id>:getIamPolicy
.
我正在尝试获取项目中资源的策略,特别是具有 API URL 的 Google BigQuery 数据集,如下所示:https://www.googleapis.com/bigquery/v2/projects/<project-id>/datasets/<dataset-id>
.
我已经尝试了一些看起来很明显的 URI,比如
https://www.googleapis.com/bigquery/v2/projects/<project-id>/datasets/<dataset-id>:getIamPolicy
https://cloudresourcemanager.googleapis.com/v1/projects/<project-id>/datasets/<dataset-id>:getIamPolicy
但是遇到了 404 错误。有谁知道 Google BigQuery 数据集的 IAM 策略的正确 URL 模式?
I am trying to get the policy for a resource within a project, specifically a Google BigQuery dataset ...
你的问题中已经有了 - 你应该使用 GET https://www.googleapis.com/bigquery/v2/projects/<projectId>/datasets/<datasetId>
作为回应你应该寻找 access
属性
来自 documentation:
Access is an array of objects that define dataset access for one or more entities. You can set this property when inserting or updating a dataset in order to control who is allowed to access the data. If unspecified at dataset creation time, BigQuery adds default dataset access for the following entities:
access.specialGroup: projectReaders; access.role: READER; access.specialGroup: projectWriters; access.role: WRITER; access.specialGroup: projectOwners; access.role: OWNER; access.userByEmail: [dataset creator email]; access.role: OWNER;
而且,如果您想更改访问权限 - 您应该使用 PATCH https://www.googleapis.com/bigquery/v2/projects/<projectId>/datasets/<datasetId>
或 PUT https://www.googleapis.com/bigquery/v2/projects/<projectId>/datasets/<datasetId>