Checks whether input data contains sensitive data.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ScanSensitiveData |
The operation that you want to perform. |
Data | String | Yes | 15132674821 |
The data that you want to check. |
RegionId | String | Yes | cn-shenzhen |
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. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 0000-ABCD-EFG**** |
The ID of the request. |
Sensitives | Map | { "sensDatas": [ { "hitCount": 1, "ruleName": "Phone number" } ] } |
The result of the check. sensDatas indicates the rules that are used to check the sensitive data. sensDatas includes the following parameters:
|
Examples
Sample requests
http(s)://[Endpoint]/?Action=ScanSensitiveData
&Data=15132674821
&RegionId=cn-shenzhen
&<Common request parameters>
Sample success responses
XML
format
<Sensitives>{ "sensDatas": [ { "hitCount": 1, "ruleName": "Phone number" } ] }</Sensitives>
<RequestId>0000-ABCD-EFG****</RequestId>
JSON
format
{
"Sensitives": "{ \"sensDatas\": [ { \"hitCount\": 1, \"ruleName\": \"Phone number\" } ] }",
"RequestId": "0000-ABCD-EFG****"
}
Error codes
Http status code | Error code | Error message | Description |
---|---|---|---|
403 | Forbidden.Meta.NoTenant | The user is not the owner of any tenants. | The error message returned because the user is not the owner of a tenant. |
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.