Google

BigQuery Data Policy API

Allows users to manage BigQuery data policies.

Data & analytics#openapi

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

Allows users to manage BigQuery data policies.

Endpoints 10

projects.locations.dataPolicies

  • POSTAdds new grantees to a data policy/v2/:dataPolicy:addGranteesAdds new grantees to a data policy. The new grantees will be added to the existing grantees. If the request contains a duplicate grantee, the grantee will be…
  • GETList all of the data policies in the specified parent project./v2/:parent/dataPolicies?filter=string&pageSize=0&pageToken=stringList all of the data policies in the specified parent project.
  • POSTCreates a new data policy under a project with the given `data_policy_id` (used as the display name), and data policy…/v2/:parent/dataPoliciesCreates a new data policy under a project with the given data_policy_id (used as the display name), and data policy type.
  • GETGets the data policy specified by its resource name./v2/:nameGets the data policy specified by its resource name.
  • DELETEDeletes the data policy specified by its resource name./v2/:nameDeletes the data policy specified by its resource name.
  • PATCHUpdates the metadata for an existing data policy/v2/:name?allowMissing=true&updateMask=stringUpdates the metadata for an existing data policy. The target data policy can be specified by the resource name.
  • POSTGets the IAM policy for the specified data policy./v2/:resource:getIamPolicyGets the IAM policy for the specified data policy.
  • POSTRemoves grantees from a data policy/v2/:dataPolicy:removeGranteesRemoves grantees from a data policy. The grantees will be removed from the existing grantees. If the request contains a grantee that does not exist, the…
  • POSTSets the IAM policy for the specified data policy./v2/:resource:setIamPolicySets the IAM policy for the specified data policy.
  • POSTReturns the caller's permission on the specified data policy resource./v2/:resource:testIamPermissionsReturns the caller's permission on the specified data policy resource.

API details

Base URL
https://bigquerydatapolicy.googleapis.com
Authentication
OAuth 2.0 (authorization code flow) with 2 scopes
An API key in the key query parameter
Operations
10 operations on 7 pathsPOST 6GET 2PATCH 1DELETE 1
Main resources
projects.locations.dataPolicies 10
Response formats
application/json
Description format
Google API Discovery, API version v2

How to test the BigQuery Data Policy API in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the BigQuery Data Policy API collection, without the publisher's secrets.
  3. Add your credentialsThis API uses OAuth 2.0 (authorization code flow) with 2 scopes. Add yours in the collection's variables or an environment; the requests already reference it.
  4. Send a requestPick an endpoint, for example “Adds new grantees to a data policy” (POST /v2/:dataPolicy:addGrantees), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the BigQuery Data Policy API?

Allows users to manage BigQuery data policies. It is listed under Data & analytics and has 10 endpoints.

Who publishes the BigQuery Data Policy API?

It is listed from Google's public API description (an OpenAPI document), not published by Google on Swastik Codes. Anyone who controls googleapis.com can claim the profile by adding a DNS TXT record.

What is the base URL of the BigQuery Data Policy API?

Requests go to https://bigquerydatapolicy.googleapis.com. Endpoint paths are added to this base URL.

How do I authenticate with the BigQuery Data Policy API?

It accepts 2 methods: OAuth 2.0 (authorization code flow) with 2 scopes; an API key in the key query parameter.

How many endpoints does the BigQuery Data Policy API have?

10 operations on 7 paths (6 POST, 2 GET, 1 PATCH, 1 DELETE). The largest groups are projects.locations.dataPolicies.

Is forking the BigQuery Data Policy API free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.