API to get schema and corresponding curation status and partially currated for assets in Azure Purview

Utsav Mori 20 Reputation points
2024-06-01T15:25:46.1866667+00:00

Business need :

To generate power bi report on schema name , description , partially curated, curation status.

Process :

For that I tried to fetch the details with the help of REST api using entity, catalog, glossary and tried generating JSON which later on will upload to power bi for report generation.

Issue: With the help of REST Api I tried to fetch detail of assests but the JSON which is creating doesn't contain Schema, Curation status and Partially curated.

I need something like this in my JSON after fetching:

 "curation_status": {
                "partially_curated": false,
                "has_classifications": false,
                "has_meanings": false,
                "is_certified": false,
                "status": "Not Curated"
            }

Below is the overall Json that will help me if i get JSON structure like this after using Entity API or Catalog but it is not getting like this JSON missing schema and curation status part .

 "referredEntities": {},
            "entity": {
                "typeName": "",
                "attributes": {
                    "owner": null,
                    "resourceGroupName": null,
                    "replicatedTo": null,
                    "userDescription": null,
                    "replicatedFrom": null,
                    "qualifiedName": "",
                    "displayName": null,
                    "description": null,
                    "createTime": 0,
                    "compatibilityLevel": 0,
                    "name": "DW",
                    "location": null,
                    "ownerSid": null,
                    "collation": null,
                    "subscriptionId": null
                },
                "lastModifiedTS": "1",
                "guid": "",
                "isIncomplete": false,
                "provenanceType": 0,
                "status": "ACTIVE",
                "createdBy": "",
                "updatedBy": "",
                "createTime": ,
                "updateTime": ,
                "version": 0,
                "isIndexed": true,
                "source": "DataScan",
                "relationshipAttributes": {
                    "server": {
                        "guid": "",
                        "typeName": "",
                        "entityStatus": "ACTIVE",
                        "displayText": "",
                        "relationshipType": "",
                        "relationshipGuid": "",
                        "relationshipStatus": "ACTIVE",
                        "relationshipAttributes": {
                            "typeName": ""
                        }
                    },
                    "schemas": [],
                    "meanings": []
                },
                "labels": [],
                "displayText": "DW",
                "proxy": false
            },
            "curation_status": {
                "partially_curated": false,
                "has_classifications": false,
                "has_meanings": false,
                "is_certified": false,
                "status": "Not Curated"
            }
        }
Microsoft Purview
Microsoft Purview
A Microsoft data governance service that helps manage and govern on-premises, multicloud, and software-as-a-service data. Previously known as Azure Purview.
1,026 questions
{count} votes

Accepted answer
  1. PRADEEPCHEEKATLA-MSFT 84,051 Reputation points Microsoft Employee
    2024-06-03T10:28:15.55+00:00

    @Utsav Mori - Thanks for the question and using MS Q&A platform.

    Based on the provided document, it seems that the REST API for Azure Purview does not provide the schema and curation status information in the JSON response. Therefore, it is not possible to generate the desired JSON structure using the Entity API or Catalog API.

    However, there might be other ways to obtain the required information. One possible solution could be to use the Purview SDK for Python or .NET to fetch the schema and curation status information and then generate the desired JSON structure. You can find more information about the Purview SDK in the following links:

    Alternatively, you can try to use the Purview REST API to fetch the required information separately and then merge it with the JSON response obtained from the Entity API or Catalog API. For example, you can use the following REST API to fetch the curation status information for a specific asset:

    GET https://<account-name>.catalog.purview.azure.com/api/atlas/v2/entity/guid/<asset-guid>/classification
    

    You can find more information about the Purview REST API in the following link:

    Hope this helps. Do let us know if you any further queries.

    0 comments No comments

0 additional answers

Sort by: Most helpful