I am trying to attach tags to data catalog custom entries. I am trying to create a python function to perform data catalog operations i.e. create/delete custom entries, create/delete tag templates, attach tags to the fields of the created custom entries.
I was able to create a custom entry and a tag template using the datacatalog_v1 library, however I don't find a method or a rest API to attach the tags fields to the custom entry columns.
I am however able to complete via the GCP web UI console
You could see the next couple of examples on how to work with a data catalog REST API, and refer to the documentation that Google provides here.
Before using any of the request data, make the following replacements:
HTTP method and URL:
Request JSON body:
Save the request body in a file called request.json, and execute the following command:
You should receive a JSON response similar to the following:
You can structure your tags by topic using tag templates. For example: