All Products
Search
Document Center

:ScanSensitiveData

更新時間:May 16, 2024

Checks whether input data contains sensitive 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

ParameterTypeRequiredExampleDescription
ActionStringYesScanSensitiveData

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

DataStringYes13900001234

The data that you want to check.

RegionIdStringYescn-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 determines the value of this parameter based on the endpoint that is used to call the operation.

Response parameters

ParameterTypeExampleDescription
SensitivesMap

The result of the check.

sensDatas indicates the rules that are used to check the sensitive data. sensDatas includes the following parameters:

  • hitCount: the number of times that the sensitive data hits the rule
  • ruleName: the name of the rule.
RequestIdString0000-ABCD-EFG****

The request ID.

Examples

Sample requests

http(s)://[Endpoint]/?Action=ScanSensitiveData
&Data=13900001234
&<Common request parameters>

Sample success responses

XML format

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

<ScanSensitiveDataResponse>
    <RequestId>0000-ABCD-EFG****</RequestId>
</ScanSensitiveDataResponse>

JSON format

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

{
  "RequestId" : "0000-ABCD-EFG****"
}

Error codes

HttpCodeError codeError messageDescription
500InternalError.DQC.BizErrorAn internal error occurred.An internal server error occurred.
403Forbidden.Meta.NoTenantThe user is not the owner of any tenants.The current user is not a tenant owner.

For a list of error codes, see Service error codes.