Register a custom data source for Protect

Protect offers APIs that allow integration with custom data sources. These APIs help in keeping your data policies synchronized across different sources and ensure that the policies are enforced consistently. You can use these APIs to build custom integration solutions, enabling you to fetch policies from Protect and enforce them in your own data sources.

Registering a custom data source for Protect involves the following steps:

  1. Add the custom data source using the Collibra Protect Data Sources API.
    Copy
    Example: POST /dataSources
    {
      "name": "Custom Data Source",
      "dataSourceName": "CustomDataSource",
      "dataSourceAliases": [
        "Custom Data Source Alias"
      ]
    }

  2. Create a Protect group for the custom data source.
  3. Create standards and rules that are specific to assets from your custom data source.
    Tip You can also preview a rule to ensure that it is correctly configured. To preview a rule, in the Data Access Rule dialog box, click Generate Preview.
  4. Access the synchronization data for the custom data source via the following API.
    Copy
    GET /synchronizations/byDataSource?dataSource={dataSourceName}
    Note You can't access the synchronization data if the policies in Protect involve more than 100,000 columns.

Example

The following steps describe how to register a custom data source, Oracle, for Protect.

  1. On the environment where you want to register Oracle, click API Documentation.

    Image showing the link to API Documentation
    The APIs Documentation page opens.

  2. In the REST APIs section, click REST Protect API.
    The Collibra Protect API page is shown.
  3. Send a POST request to the /dataSources endpoint:
    1. Click Data SourcesPOSTTry it out.
    2. Edit the request body.
      Copy
      {
        "name": "My Oracle Data Source",
        "dataSourceName": "Oracle",
        "dataSourceAliases": []
      }
    3. Click Execute.
      Protect can now recognize Oracle as a data source.
  4. Send a POST request to the /groups endpoint:
    1. Click GroupsPOSTTry it out.
    2. Edit the request body.
      Copy
      {
        "name": "My Oracle Group",
        "mappings": [
          {
            "provider": "Oracle",
            "identity": "My_Oracle_User"
          }
        ]
      }
      Tip The value in the "provider" key must match the value in the "dataSourceName" key provided in Step 3.
    3. Click Execute.
      The Protect group is created in Collibra for Oracle. Standards and rules can be created to protect the data in Oracle.
  5. Access the synchronization data via the following API to apply and enforce the policies in Oracle.
    Copy
    GET /synchronizations/byDataSource?dataSource=Oracle