Global and regional endpoints for Sensitive Data Protection

This document describes the different types of API endpoints available with Sensitive Data Protection. This document also provides points to consider when deciding which endpoint type to use in your Sensitive Data Protection requests. For general information about the different types of API endpoints, see Google Cloud API endpoint overview.

An API endpoint (or service endpoint) is a base URL that specifies the network address of a Google Cloud API service like Sensitive Data Protection. Sensitive Data Protection has global and regional endpoints.

Global API endpoint

The global endpoint of Sensitive Data Protection is dlp.googleapis.com.

Globally scoped endpoints provide highly available service endpoints that terminate the TLS session as close to the client as possible, which minimizes latency when serving API calls from a dispersed client population over the internet.

When you send a request to a global endpoint, you can specify the location where you want to process the request.

Requests to a global endpoint with no location specified

If you don't specify a location in your request—or if you specify the global region—then the request is processed in the global region. For example, if you send a POST request to the following URL, the request is sent to the global endpoint and processed in the global region.

https://dlp.googleapis.com/v2/projects/example-project/content:inspect

Requests to a global endpoint with a location specified

If you specify a location in your request to a global endpoint, the request is sent to the global endpoint and processed in the region or multi-region that you specified. For example, if you send a POST request to the following URL, the request is sent to the global endpoint and processed in the us-west1 region.

https://dlp.googleapis.com/v2/projects/example-project/locations/us-west1/content:inspect

There is no guarantee that the data in transit remains in the processing region that you specified. If you aren't required to keep in-transit data within a specific region, then calling the global endpoint in this manner is sufficient.

Regional API endpoints

Regional endpoints let you keep in-transit data within a specific region. A regional endpoint specifies the location as a subdomain—for example, dlp.us-west1.rep.googleapis.com.

A regional endpoint for Sensitive Data Protection follows this format:

dlp.REGION.rep.googleapis.com

Replace REGION with a regional endpoint available for Sensitive Data Protection.

Regional endpoints terminate TLS sessions in the location specified by the endpoint for requests received from the public internet or from private connectivity.

Regional endpoints guarantee data residency by ensuring that your data at rest, in use, and in transit isn't moved out of the location specified by the endpoint. This guarantee excludes Service Data. For more information, see Note on Customer Data and Service Data.

Choose between the global and regional endpoints

Consider the following when choosing between global and regional endpoints:

Restrict global API endpoint usage

To help enforce the use of regional endpoints, use the constraints/gcp.restrictEndpointUsage organization policy constraint to block requests to the global API endpoint. For more information, see Restrict endpoint usage in the Assured Workloads documentation.

What's next

  • Refer to a list of locations where Sensitive Data Protection is available.
  • Learn how to specify a location in your request.