Skip to content

Get Role Sensitive Field Masking Summary



GET /api/v1/workspace/role/sensitive_mask_fields

Overview

View a summary of the sensitive field masking expressions that apply to each role in a workspace.

Before you begin and usage steps

  1. Use an API Key with the routine.defaultAccess permission in the current workspace. No Query or Body is required.
  2. Read the summary by the returned data type, role, and field. If you need the original rule text, query the sensitive field rule list.
  3. Check the summary together with the roles and query permissions. An empty mapping alone cannot prove that no rules exist or that no masking occurs.

Use a Key for the current workspace that has routine.defaultAccess; no Query or Body is required. Obtain the currently valid and available roles by the role UUIDs referenced in non-deleted masking rules, then generate the summary based on each role's query permissions and active masking rules; this is not a complete catalog of all roles. Roles that appear only in * wildcard rules and are not referenced by a specific role may not necessarily appear in this summary; evaluate them together with the role list and the complete rule configuration.

Only data types, roles, and fields with actual matching rules are listed. If there are no matches, content={}, and an empty mapping alone cannot prove that rules do not exist or that all queries are unmasked. The underlying rule query is fault-tolerant, so an empty rule set may also be returned on exception. This page is for rule troubleshooting. It does not return raw customer data, modify rules, or establish data read permissions. For full rule text and enable/disable settings, use the sensitive field rule list.

Request headers

Parameter Type Required Description
DF-API-KEY string Y OpenAPI authentication credential for the workspace.
Example: <DF-API-KEY>
How to obtain or fill it in: Obtain an OpenAPI Key with the required operation permission from the API Key management of the target workspace.

Request example

curl --get 'https://openapi.guance.com/api/v1/workspace/role/sensitive_mask_fields' \
  -H 'DF-API-KEY: <DF-API-KEY>'

Response

HTTP 200, application/json. The example below shows the main fields that can be read directly.

Field Type Description
content object Dynamic mapping organized as namespace→role UUID→field name; may be {}; no declaration is inserted.
content.data type object Appears only when there are matches; candidate values are lineage, logging, metric, object, custom_object, keyevent, tracing, rum, security, network, profiling, billing.
content.data type.role UUID object Field mapping for a specific valid role; the Key is the role UUID, not the display name.
content.data type.role UUID.field name array<object> Array of rule summaries applicable to the field; * is a wildcard field, and comma-separated fields are split into multiple keys.
content.data type.role UUID.field name[].reExpr string The stored regular expression.
content.data type.role UUID.field name[].name string Masking rule name; may be empty.
content.data type.role UUID.field name[].id integer Numeric database ID of the masking rule; this is not the rule uuid used in the modification path.
content.data type.role UUID.field name[].updateAt integer Last update time in Unix seconds; may be -1 if it has never been updated.
{
  "code": 200,
  "content": {
    "logging": {
      "general": {
        "phone": [
          {
            "reExpr": "[0-9]{11}",
            "name": "Phone number example",
            "id": 101,
            "updateAt": 1785427200
          }
        ]
      }
    }
  },
  "errorCode": "",
  "message": "",
  "success": true,
  "traceId": "TRACE-EXAMPLE"
}

Error response

For authentication, rate limiting, and common request errors, see Common error definitions.

HTTP status errorCode Trigger condition Message or response description Handling
500 ft.InternalServerError The initial rule/role/permission database read or summary formatting failed; some internal rule errors may be tolerated as {} Internal error Check against the complete rule list; do not treat an empty result as data security acceptance. If the failure persists, provide the traceId.

Feedback

Is this page helpful?