Could anyone please share ETL tag template in GCP data catalog? I'd like to refresh a tag value with its ETL status every time a BigQuery table is updated. I'm trying to use gcloud commands to create a tag template. I need to remove the tag from the template using the gcloud command and add another tag to that template, so that I can maintain the ETL status through automation.
I am able to remove the tag through UI manually. I need corresponding gcloud command for the same.
The procedure is explained in the Data Catalog documentation:
Suppose that you have the following tag template created:
You need to lookup for Data Catalog entry created for your BigQuery table:
Once you have entry name you can:
Create a tag if it wasn't created on the entry or if it was deleted earlier:
The command returns (among others) tag name that can be used with update or delete.
Delete a tag from entry:
Update a tag, so that you don't have to delete it and recreate:
If you lost your tag name use list command: