Create Dictionary classification rules in Azure Purview using Purview Rest API

Constantino Pearl 21 Reputation points
2022-07-08T15:19:38.657+00:00

Create a classification rule (dictionary) with the REST API
Hi all trying to create a classification rule by using the Purview REST API and while I could create a rule using Regex for a dictionary based rule I am getting an error.

{"kind": "Custom", "properties": {"minimumDistinctMatchCount": null, "minimumPercentageMatch": 60.0, "classificationAction": "Keep", "dataPatterns": [], "columnPatterns": [], "classificationRuleBloomFilter": {"sourceFileName": "Education_level.csv", "cookedBloomFilter": null, "bloomFilterName": "custom-bf-847367bd-5c6d-4742-a512-73b8877170c1"}, "description": "", "version": 1, "classificationName": "HighSchoolGraduates", "owner": "8db55a93-91ae-4053-888e-1d55286a3a91", "ruleStatus": "Enabled", "createdAt": "2022-03-28T20:57:15.5678731Z", "lastModifiedAt": "2022-03-28T20:57:15.5678733Z", "collection": null}}  

Got the previous JSON from one of my already existing dictionary rules hoping i could just reuse it but got a response like the following:

<Response [404]>  
{  
  "error": {  
    "code": "ClassificationRule_BloomFilterNotFound",  
    "message": "Cooked bloom filter not found",  
    "target": null,  
    "details": []  
  }  
}  

The Bloomfilter I assumed it meant the dictionary from the Classification rule i copied from, so I wanted to check, is there a way to add/create/get a new BloomFilter so it does not return an error or is the API not enough to create dictionary classification rules just yet? Maybe I am missing something?

Microsoft Security | Microsoft Purview
{count} votes

Answer accepted by question author
  1. PRADEEPCHEEKATLA 91,656 Reputation points Moderator
    2022-07-11T07:10:10.083+00:00

    Hello @Constantino Pearl ,

    Thanks for the question and using MS Q&A platform.

    As per the repro, we have faced the same error message as shown above - it looks like there is an issue with the request body which you have passed.

    219327-image.png

    When I tried the same request body provided in the official document it works as excepted.

    219367-image.png

    For more details, refer to the REST API - Classification Rules - Create Or Update.

    Hope this will help. Please let us know if any further queries.


    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators

0 additional answers

Sort by: Most helpful

Your answer

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