- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- Try it!
Updates the metadata for an existing data policy. The target data policy can be specified by the resource name.
HTTP request
PATCH https://bigquerydatapolicy.googleapis.com/v1/{dataPolicy.name=projects/*/locations/*/dataPolicies/*}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
data |
Output only. Resource name of this data policy, in the format of |
Query parameters
Parameters | |
---|---|
update |
The update mask applies to the resource. For the Updates to the This is a comma-separated list of fully qualified names of fields. Example: |
allow |
Optional. If set to true, and the data policy is not found, a new data policy will be created. In this situation, updateMask is ignored. |
Request body
The request body contains an instance of DataPolicy
.
Response body
If successful, the response body contains an instance of DataPolicy
.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/bigquery
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the routine
resource:
bigquery.routines.get
Requires the following IAM permission on the name
resource:
bigquery.dataPolicies.update
Requires the following IAM permission on the taxonomy
resource:
datacatalog.taxonomies.get
For more information, see the IAM documentation.