Previewing masked data
Use the preview feature to validate that your defined masking policies behave as expected before saving or executing the workflow.
About this task
For information about masking policies, see Applying masking policies.
Before you begin
Ensure that the following prerequisites are met:
- You have already applied masking policies to a flow or pipeline job.
- The job includes source tables and masking configurations.
- For API usage:
- You have a valid access token (<accessToken>). For more information, see Retrieving access tokens for API usage.
- You have the flow ID for the flow that you want to preview.
Previewing masked data by using the API
To preview masked data before running a flow by using the API:
- Send a
GETrequest to/optim/v1/flow/preview/{flowId}, replacing{flowId}with the ID of the job that includes masking policies.Authorization: Bearer <accessToken>GET /optim/v1/flow/preview/{flowId} - To preview masked data for a different flow, repeat the request with the corresponding flow ID.
Results
You can validate that masking policies are correctly applied and meet compliance and usability requirements.
What to do next
If the previewed data does not meet expectations, adjust the masking configuration before running the flow.