Method: projects.locations.dataPolicies.create

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


The URL uses gRPC Transcoding syntax.

Path parameters



Required. Resource name of the project that the data policy will belong to. The format is projects/{projectNumber}/locations/{locationId}.

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:


For more information, see the Authentication Overview.

IAM Permissions

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.