All Products
Search
Document Center

Data Management:ListSensitiveColumnInfo

Last Updated:Nov 10, 2025

Queries the information about a sensitive field. The information includes the masking algorithm ID, masking algorithm name, and field security level.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
dms:ListSensitiveColumnInfolist
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceIdintegerYes

The ID of the instance. You can call the ListInstances or GetInstance operation to query the instance ID.

183****
SchemaNamestringNo

The database name. You can also call the SearchDatabase operation to query the name of the database.

Note You can also call the ListDatabases operation to query the value of the SchemaName parameter of a physical database, or the ListLogicDatabases operation to query the value of the SchemaName parameter of a logical database.
test_schema
TableNamestringNo

The name of the table. You can call the ListSensitiveColumns operation to query the table name.

Note You can also call the ListTables operation to query the table name.
test_table
ColumnNamestringNo

The name of the sensitive field. You can call the ListSensitiveColumns operation to query the name of the sensitive field.

Note You can also call the ListColumns operation to query the name of the sensitive field.
test_column
PageNumberintegerNo

The page number of the returned page.

1
PageSizeintegerNo

The number of entries to return on each page.

100
TidlongNo

The ID of the tenant.

Note To view the ID of the tenant, go to the DMS console and move the pointer over the profile picture in the upper-right corner. For more information, see the View information about the current tenant section of the "Manage DMS tenants" topic.
3***

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID. You can use the request ID to locate logs and troubleshoot issues.

0C1CB646-1DE4-4AD0-B4A4-7D47DD52E931
ErrorCodestring

The error code returned if the request failed.

UnknownError
ErrorMessagestring

The error message returned if the request failed.

UnknownError
SensitiveColumnListarray<object>

The details of the sensitive field.

SensitiveColumnobject

The details of the field.

InstanceIdinteger

The ID of the instance.

183****
SchemaNamestring

The name of the database.

test_schema
TableNamestring

The name of the table.

test_table
ColumnNamestring

The name of the sensitive field.

test_column
CategoryNamestring

The name of the category.

IsPlainboolean

Indicates whether the sensitive field is displayed in plaintext.

False
SecurityLevelstring

The sensitivity level of the field. Valid values:

  • Low
  • Medium
  • High
UserSensitivityLevelstring

The user-defined sensitivity level.

S1
SampleDatastring

The sample data.

DefaultDesensitizationRuleobject

The information about the default masking algorithm.

RuleIdlong

The masking algorithm ID.

101**
RuleNamestring

The masking algorithm name.

test
SemiDesensitizationRuleListarray<object>

The list of partial masking algorithms.

SemiDesensitizationRuleobject

The details of the partial masking algorithm.

RuleIdlong

The ID of the partial masking algorithm.

10***
RuleNamestring

The partial masking algorithm name.

test01
Successboolean

Indicates whether the request was successful. Valid values:

  • true: The request was successful.
  • false: The request failed.
true
TotalCountlong

The total number of entries that are returned.

1

Examples

Sample success responses

JSONformat

{
  "RequestId": "0C1CB646-1DE4-4AD0-B4A4-7D47DD52E931",
  "ErrorCode": "UnknownError",
  "ErrorMessage": "UnknownError",
  "SensitiveColumnList": {
    "SensitiveColumn": [
      {
        "InstanceId": 0,
        "SchemaName": "test_schema",
        "TableName": "test_table",
        "ColumnName": "test_column",
        "CategoryName": "",
        "IsPlain": true,
        "SecurityLevel": "",
        "UserSensitivityLevel": "S1",
        "SampleData": "",
        "DefaultDesensitizationRule": {
          "RuleId": 0,
          "RuleName": "test"
        },
        "SemiDesensitizationRuleList": {
          "SemiDesensitizationRule": [
            {
              "RuleId": 0,
              "RuleName": "test01"
            }
          ]
        }
      }
    ]
  },
  "Success": true,
  "TotalCount": 1
}

Error codes

For a list of error codes, visit the Service error codes.