question

SukumarVinnakota-8083 avatar image
0 Votes"
SukumarVinnakota-8083 asked MuhammadHarinnHizhairieMukhtar-4896 commented

Delete an Asset in Purview using REST API

I have a service principle created and has an RBAC role of Purview Data Curator and Purview Data Source Administrator. I have referred the link https://docs.microsoft.com/en-us/azure/purview/tutorial-using-rest-apis#use-the-postman-client-to-call-the-rest-apis and configured my Postman setup.

I want to delete Assets which are present in Purview. what is the REST API URL for deleting the Assets in Purview and what will be the objects that should be passed in BODY and HEADER to delete an asset.

azure-purview
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

PRADEEPCHEEKATLA-MSFT avatar image
0 Votes"
PRADEEPCHEEKATLA-MSFT answered MuhammadHarinnHizhairieMukhtar-4896 commented

Hello @SukumarVinnakota-8083,

Thanks for question and using MS Q&A platform.

Steps to delete an Asset in Purview using REST API:

From this document, follow the steps to Use the Postman client to call the REST APIs.

Step1: Get Token

  POST https://login.microsoftonline.com/<your-tenant-id>/oauth2/token

100555-image.png

Step2: Delete an Entity

Note: In Authorization section, select TYPE as Bearer Token and paste the token which you copied in step1.

 DELETE https://{
                 {catalog_end_point}}/api/atlas/v2/entity/uniqueAttribute/type/<entity_type>?attr%3AqualifiedName=<entity_qualified_name>

100525-image.png

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


Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


image.png (193.1 KiB)
image.png (143.9 KiB)
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @SukumarVinnakota-8083,

Just checking in to see if the above answer helped. If this answers your query, do click Accept Answer and Up-Vote for the same. And, if you have any further query do let us know.

1 Vote 1 ·

@PRADEEPCHEEKATLA-MSFT

Thank you so much . It worked.

Is there any documentation where i can find the different entity types that needs to be entered in the URL.

0 Votes 0 ·

Hello @SukumarVinnakota-8083,

Glad to know that your issue has resolved.

Unfortunately, these information is not yet available in the Microsoft documentation.

I can help you with the information which is available online.

Atlas exposes a variety of REST endpoints to work with types, entities, lineage and data discovery.

For more details, you can checkout the Azure Purview: Unify ALL your data using Apache Atlas open API support and Atlas REST API.

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

0 Votes 0 ·
Show more comments