All Products
Search
Document Center

DataWorks:DesensitizeData

Last Updated:Nov 21, 2024

Masks data.

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

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
DatastringYes

The data that you want to mask.

15365291784
SceneCodestringYes

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

_default_scene_code

Response parameters

ParameterTypeDescriptionExample
object
DesensitizeDatastring

The data returned after masking.

{ "desensData": "**198807120510**" }
RequestIdstring

The request ID.

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

Examples

Sample success responses

JSONformat

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

Error codes

HTTP status codeError codeError message
403Forbidden.NoTenantThe tenant information cannot be obtained using user ID.
500InternalError.DQC.BizErrorAn internal error occurred.

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

Change history

Change timeSummary of changesOperation
No change history