- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- Try it!
Creates a new data policy under a project with the given dataPolicyId
(used as the display name), policy tag, and data policy type.
HTTP request
POST https://bigquerydatapolicy.googleapis.com/v1/{parent=projects/*/locations/*}/dataPolicies
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. Resource name of the project that the data policy will belong to. The format is |
Request body
The request body contains an instance of DataPolicy
.
Response body
If successful, the response body contains a newly created 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 taxonomy
resource:
datacatalog.taxonomies.get
Requires the following IAM permission on the parent
resource:
bigquery.dataPolicies.create
For more information, see the IAM documentation.