Skip to main content

Retrieve Data Type List

Paginated query of the sensitive data type list.

Request URL: /openapi/v1/sensitiveData/dataType/list

Request Method: GET

Request Parameters

ParameterTypeRequiredDescriptionExample
dataTypeIdStringNoData type ID.scan-dhfzxatw8b4d
currentIntegerNoCurrent page number, starting from 1. Default value: 1.1
pageSizeIntegerNoPage size. Default value: 10.1

Request Example

For request headers, signatures, and GET query construction, see OpenAPI API Documentation.

{
"current": 1,
"pageSize": 1
}

Response Parameters

ParameterTypeDescription
successBooleanIndicates whether the API call is successful.
requestIdStringRequest ID.
dataArrayData type detail list.
currentIntegerCurrent page number.
pageSizeIntegerPage size.
totalIntegerTotal number of records.

The fields of each data type detail are as follows:

ParameterTypeDescription
dataTypeIdStringData type ID.
nameStringData type name.
algorithmIdIntegerDefault masking algorithm ID for the data type.
sensitiveLevelIntegerDefault sensitive level of the data type. Valid values: 0~5.
enableBooleanIndicates whether the data type is enabled.

Successful Response Example

{
"success": true,
"requestId": "Gp8t8TCI-JPQIcZFnMPLb5BLdORf9RCC",
"data": [
{
"dataTypeId": "scan-dhfzxatw8b4d",
"name": "SQLServer Amount",
"sensitiveLevel": 5,
"algorithmId": 1,
"enable": true
}
],
"current": 1,
"pageSize": 1,
"total": 48
}