Adjusts the sensitivity level of a specific field.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ChangeColumnSecLevel

The operation that you want to perform. Set the value to ChangeColumnSecLevel.

Tid Long Yes 43253

The ID of the tenant.

Note To view the ID of the tenant, move the pointer over the profile picture in the upper-right corner of the Data Management (DMS) console. For more information, see the "View information about the current tenant" section of the Manage DMS tenants topic.
DbId Long Yes 325

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

Note You can also call the ListDatabases operation to query the ID of a physical database and the ListLogicDatabases operation to query the ID of a logical database.
RegionId String No cn-hangzhou

The ID of the region in which DMS is activated. For more information about the valid values of this parameter, see RegionID parameter.

Note Set this parameter to the ID of the region that is in proximity to your applications.
IsLogic Boolean Yes false

Specifies whether the database is a logical database. Valid values:

  • true: The database is a physical database.
  • false: The database is a logical database.
SchemaName String Yes test_schema

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

  • You can also call the SearchDatabase operation to query the name of the database.
  • You can also call the ListDatabases operation to query the name of a physical database and the ListLogicDatabases operation to query the name of a logical database.
TableName String Yes test_table

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

Note You can also call the ListTables operation to query the name of the table.
ColumnName String Yes test_column

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

Note You can also call the ListColumns operation to query the name of the field.
NewLevel String Yes SENSITIVE

The new sensitivity level of the field that you want to specify. Valid values:

  • INNER: low sensitivity level
  • SENSITIVE: medium sensitivity level
  • CONFIDENTIAL: high sensitivity level

Response parameters

Parameter Type Example Description
RequestId String C51420E3-144A-4A94-B473-8662FCF4AD10

The ID of the request.

ErrorCode String UnknownError

The error code.

ErrorMessage String UnknownError

The error message.

Success Boolean false

Indicates whether the request is successful. Valid values:

  • true: The request is successful.
  • false: The request fails.

Examples

Sample requests

http(s)://dms-enterprise.aliyuncs.com/?Action=ChangeColumnSecLevel
&Tid=3***
&DbId=1860****
&IsLogic=true
&SchemaName=test_schema
&TableName=test_table
&ColumnName=test_column
&NewLevel=SENSITIVE
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<ChangeColumnSecLevelResponse>
    <RequestId>C51420E3-144A-4A94-B473-8662FCF4AD10</RequestId>
    <Success>false</Success>
</ChangeColumnSecLevelResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "C51420E3-144A-4A94-B473-8662FCF4AD10",
  "Success" : false
}

Error codes

For a list of error codes, visit the API Error Center.