Using Data Loss Prevention API
The DLP API is a service from GCP which understands raw data and identifies sensitive data. In addition to its ability to identify, the DLP API can also redact sensitive data. There are more than 50 detectors handled by the API and it can classify both text and images streams from applications and storage systems. The DLP API is designed to handle the General Data Protection Regulation (GDPR) and other compliance requirements of an application. This recipe gives you hands-on usage of the DLP API via a Python program.
Getting ready
The following are the initial setup verification steps, which are required before the recipe can be executed:
- Create or select a GCP project.
- Enable billing and enable the default APIs (some APIs like BigQuery, storage, monitoring, and a few others are enabled automatically).
- Enable the DLP API for the project you have selected. Navigate to
APIs & Services
, search for DLP, and enable it.
How to do it...
In this recipe, we take an input...