Masks data.

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 DesensitizeData

The operation that you want to perform.

Data String Yes 15365291784

The data that you want to mask.

RegionId String Yes cn-shanghai

The region ID. For example, the ID of the China (Shanghai) region is cn-shanghai, and that of the China (Zhangjiakou) region is cn-zhangjiakou. The system automatically determines the value of this parameter based on the endpoint used to call the operation.

SceneCode String Yes _default_scene_code

The code of the data masking scene. You can view the code on the Data Masking page in Data Security Guard of the DataWorks console.

Response parameters

Parameter Type Example Description
DesensitizeData String { "desensData": "**198807120510**" }

The data returned after masking.

RequestId String BCA321BA-46C5-40E9-8A08-6******

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DesensitizeData
&Data=15365291784
&RegionId=cn-shanghai
&SceneCode=_default_scene_code
&<Common request parameters>

Sample success responses

XML format

<RequestId>BCA321BA-46C5-40E9-8A08-6******</RequestId>
<DesensitizeData>{     "desensData": "**198807120510**"   }</DesensitizeData>

JSON format

{
    "RequestId": "BCA321BA-46C5-40E9-8A08-6******",
    "DesensitizeData": "{     \"desensData\": \"**198807120510**\"   }"
}

Error codes

Http status code Error code Error message Description
403 Forbidden.NoTenant The tenant information cannot be obtained using user ID. The error message returned because the tenant information cannot be obtained.
500 InternalError.DQC.BizError An internal error occurred. The error message returned because an internal server error has occurred.

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