Forum Discussion

MarcoOesterlin's avatar
MarcoOesterlin
Copper Contributor
Mar 13, 2025
Solved

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

  • MarcoOesterlin's avatar
    MarcoOesterlin
    Copper 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)

Resources