As a part of data governance, we have created Taxonomies, Policy Tags Using "Python API". And I am trying to Assign Policy Tags to Columns [Name, Age] for a table Project.Dataset.TMP_TBL.
Looked across the GCP Documentation but couldn't find any code snippets of Python to do this.
Please Help me out with and Example code Snippet to do so.
How Can I Attach Policy Tags to columns using Python API
389 Views Asked by VIJAY BURRA At
1
There are 1 best solutions below
Related Questions in GOOGLE-CLOUD-PLATFORM
- Google Logging API - What service name to use when writing entries from non-Google application?
- Custom exception message from google endpoints exception
- Unable to connect database of lamp instance from servlet running on tomcat instance of google cloud
- How to launch a Jar file using Spark on hadoop
- Google Cloud Bigtable Durability/Availability Guarantees
- How do I add a startup script to an existing VM from the developer console?
- What is the difference between an Instance and an Instance group
- How do i change files using ftp in google cloud?
- How to update all machines in an instance group on Google Cloud Platform?
- Setting up freeswitch server on Google cloud compute
- Google Cloud Endpoints: verifyToken: Signature length not correct
- Google Cloud BigTable connection setup time
- How GCE HTTP Cross-Region Load Balancing implemented
- Google Cloud Bigtable compression
- Google cloud SDK code to execute via cron
Related Questions in GOOGLE-BIGQUERY
- Get the last data of my google analytics dataset
- Is there any form to write to BigQuery specifying the name of destination tables dynamically?
- How to obtain java repositories having maximum number of stars in GitHub-Archive
- Possible to create BigQuery Table/Schema without populating with Data?
- Google spreadsheet script authorisation to BigQuery
- Google BigQuery Optimization Strategies
- Error when I try to create different BigQuery tables at the same pipeline execution
- Run BigQuery without login authentication
- Is there a CityHash Python (2.7) Implementation for Google App Engine?
- pandas read_gbq returns httplib.ResponseNotReady
- Designing an API on top of BigQuery
- BigQuery row level security permissions
- What is the best way to fuzzy compare two tables
- Query Google Bigquery Through Python In Google App Engine
- How to integrate Google Bigquery with c# console application
Related Questions in GOOGLE-API-PYTHON-CLIENT
- Why I receive CERTIFICATE_VERIFY_FAILED from google adwords api?
- Python: Efficient way to split list of strings into smaller chunks by concatenated size
- Why does using the Google APIs Python client in appengine with GAE_USE_SOCKETS_HTTPLIB result in ResponseNotReady
- How to authorize a Python Google API client service given an OAuth2 access_token?
- Failed in getting the downloadUrl property of files in Google Drive with python API
- Invalid and/or missing SSL certificate for URL when calling apiclient.discovery.build
- Youtube videos rate API does not increase like/dislike counter
- Google API Client for Python. Batch requests: how to access to a specific request in the callback
- App engine call to Google API python client return 403 with @oauth_required
- Why is my Python BigQuery Dataflow sink not inserting records into the database?
- Unauthorized to access the project monitoring records for Compute Engine
- Google Calendar API "The requested minimum modification time lies too far in the past." after just one day
- Unable to get Domain Restricted Google+ Community Name
- Do Google API keys work for Prediction API?
- Which is the correct api to interact with google spreadsheets in python?
Related Questions in GOOGLE-DATA-CATALOG
- Is it possible to interact Cloud SQL or Cloud Spanner with Google Data Catalog
- How to retrieve tagged column using Google Data Catalog Java API
- How to attach a tag template to a dataset in GCP using terraform
- Google Data Catalog systems list not refreshing
- Terraform GCP Data catalog Policy Tag
- google-cloud-datacatalog 0.8.0 is missing TagTemplate option
- Create Data Catalog column tags by inspecting BigQuery data with Cloud Data Loss Prevention
- Error parsing metadata using python datacatalog
- How to update the Data Catalog tag values through airflow CloudDataCatalog operators
- How is includeProjectIds used in Google data catalog search?
- Programmatically adding tags to Data Catalog Custom entries
- Policy Tags in BigQuery
- Data Catalog: error updating Tag - Error 400: Unsupported field mask path: "column", supported field masks are: fields
- Error adding Policy Tags on Big Query External Tables:Policy tags are not supported on plain external tables. Use an authorized external table instead
- GCP Data Catalog Schema History or Versioning
Related Questions in DATA-GOVERNANCE
- How to keep the data asset in purview after it has been deleted from the data source
- Azure Purview Data Lineage with Databricks
- Can we use Microsoft Purview and Unity Catalog together
- Does Azure Purview have a data lineage API?
- Data Lake governance tools
- Unable to Call a Snowflake procedure with a Data Governance tool Called Ataccama
- What will replace RH Data Virtualization governance?
- Azure Data Governance Solution approach for Data Lakes
- Data Lake: fix corrupted files on Ingestion vs ETL
- Is it possible to get lineage metadata from the pipeline in my Data Fusion Action plugin?
- Will IGC allow me to trace where data has been sourced from or how data is being consumed, for any ETL or Data Transformation Tool?
- Will WKC running on-premise leverage StoredIQ for data connectors or does it leverage connectors in IBM Governance Catalog IGC?
- Data governance with scala/spark
- Watson Knowledge Catalogue missing the categories selection
- How to apply data governance to API integration
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can use update_table() to assign policy tags to columns. When updating a policy tag for a specific column see code below:
Output:
NOTE: For example you have a table with 2 columns (
name,age). If you want to update thepolicy_tagfornameonly you can do so as shown with the code above. But you also need to redefineageso it won't error out.