Skip to main content

row_access_policies

Creates, updates, deletes, gets or lists a row_access_policies resource.

Overview

Namerow_access_policies
TypeResource
Idgoogle.bigquery.row_access_policies

Fields

NameDatatypeDescription
creationTimestringOutput only. The time when this row access policy was created, in milliseconds since the epoch.
etagstringOutput only. A hash of this resource.
filterPredicatestringRequired. A SQL boolean expression that represents the rows defined by this row access policy, similar to the boolean expression in a WHERE clause of a SELECT query on a table. References to other tables, routines, and temporary functions are not supported. Examples: region="EU" date_field = CAST('2019-9-27' as DATE) nullable_field is not NULL numeric_field BETWEEN 1.0 AND 5.0
lastModifiedTimestringOutput only. The time when this row access policy was last modified, in milliseconds since the epoch.
rowAccessPolicyReferenceobjectId path of a row access policy.

Methods

NameAccessible byRequired ParamsDescription
listSELECT+datasetId, +tableId, projectIdLists all row access policies on the specified table.

SELECT examples

Lists all row access policies on the specified table.

SELECT
creationTime,
etag,
filterPredicate,
lastModifiedTime,
rowAccessPolicyReference
FROM google.bigquery.row_access_policies
WHERE +datasetId = '{{ +datasetId }}'
AND +tableId = '{{ +tableId }}'
AND projectId = '{{ projectId }}';