Facing issue in creating Entity in Azure Purview using API

gvrspk 1 Reputation point
2024-12-19T14:07:50.6166667+00:00

Hi,

I am trying to create Entity in Azure Purview using API.

curl -v -X POST https://

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,304 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Khadeer Ali 1,400 Reputation points Microsoft Vendor
    2024-12-19T18:08:23.0266667+00:00

    @gvrspk ,

    Thank you for using Microsoft Q&A.

    To assist you effectively, please provide further information regarding the issue you are encountering.

    0 comments No comments

  2. AnnuKumari-MSFT 33,976 Reputation points Microsoft Employee
    2024-12-27T06:47:45.0833333+00:00

    Hi @gvrspk ,
    Thankyou for using Microsoft Q&A platform.

    It looks like you're trying to create an entity in Azure Purview using the API but facing some issue. Could you please elaborate what is the issue you are facing?

    1. Ensure Proper Authentication: Make sure you have the necessary authentication tokens. You can use OAuth2 for this purpose. The authorization URL is https://login.microsoftonline.com/common/oauth2/authorize and the scope is https://purview.azure.net/.default
    2. API Endpoint and Request Body: Use the correct API endpoint and structure your request body properly. Here is an example of a POST request to create an entity:
         curl -v -X POST https://{your-purview-endpoint}/datamap/api/atlas/v2/entity?api-version=2023-09-01 \
      

    -H "Authorization: Bearer {your-access-token}"
    -H "Content-Type: application/json"
    -d '{ "referredEntities": {}, "entity": { "typeName": "azure_storage_account", "attributes": { "owner": "ExampleOwner", "modifiedTime": 0, "createTime": 0, "qualifiedName": "https://exampleaccount.core.windows.net", "name": "ExampleStorageAccount", "description": null, "publicAccessLevel": null }, "customAttributes": { "custAttr1": "attr1", "custAttr2": "attr2" } } }'

       
    Hope it helps. Kindly accept the answer by clicking on `Accept answer`button. Thankyou
    
    
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.