Forum Discussion
MarcoOesterlin
Mar 13, 2025Copper Contributor
Retrieve a Schema of a Data Asset using the Atlas API
Hi,
Is there a possibility to retrieve the schema of a data asset using the Atlas API?
We have a need using the schema to control sensitive elements in Fabric.
I know that one workaround is to add the data asset as a Governed Asset and then use the Self-service model to retrieve the schema, but is there a faster and more efficient way to do it?
I accidentally stumbled upon the new Microsoft Purview Python SDK.
It is possible to retrieve the schema by using the following function:client = PurviewCatalogClient(endpoint=purview_endpoint, credential=credential) response = client.entity.get_by_guid(guid="INSERT DATA ASSET GUID HERE") print(response)
2 Replies
- MarcoOesterlinCopper Contributor
I accidentally stumbled upon the new Microsoft Purview Python SDK.
It is possible to retrieve the schema by using the following function:client = PurviewCatalogClient(endpoint=purview_endpoint, credential=credential) response = client.entity.get_by_guid(guid="INSERT DATA ASSET GUID HERE") print(response)- LaurenzHillerCopper Contributor
Thanks for sharing!