All Products
Search
Document Center

:QueryRecognizeRulesType

Last Updated:May 06, 2024

Queries the built-in sensitive data identification rule that is used to configure a sensitive 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

QueryRecognizeRulesType

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

Response parameters

Parameter

Type

Example

Description

Success

Boolean

true

Indicates whether the request was successful.

  • true

  • false

ErrorCode

String

9990030003

The error code.

ErrorMessage

String

A required parameter is not specified.

The error message.

HttpStatusCode

Integer

200

The HTTP status code.

Data

Any

{ "HttpStatusCode": 200, "Data": [ { "Regular Expression": "1" }, { "Recognize Rule": "2" }, { "Sample Library": "3" }, { "Model": "4" } ], "Success": true }

The returned data about the built-in sensitive data identification rule that is used to configure a sensitive field. The data is in the JSON format.

RequestId

String

10000001

The request ID.

Examples

Sample requests

http(s)://[Endpoint]/?Action=QueryRecognizeRulesType
&Common request parameters

Sample success responses

XML format

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

<QueryRecognizeRulesTypeResponse>
    <Success>true</Success>
    <ErrorCode>9990030003</ErrorCode>
    <ErrorMessage>A required parameter is not specified.</ErrorMessage>
    <HttpStatusCode>200</HttpStatusCode>
    <Data>{   "HttpStatusCode": 200,   "Data": [     {       "Regular Expression": "1"     },     {       "Recognize Rule": "2"     },     {       "Sample Library": "3"     },     {       "Model": "4"     }   ],   "Success": true }</Data>
    <RequestId>10000001</RequestId>
</QueryRecognizeRulesTypeResponse>

JSON format

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

{
  "Success" : true,
  "ErrorCode" : "9990030003",
  "ErrorMessage": "A required parameter is not specified.",
  "HttpStatusCode" : 200,
  "Data" : "{   \"HttpStatusCode\": 200,   \"Data\": [     {       \"Regular Expression\": \"1\"     },     {       \"Recognize Rule\": \"2\"     },     {       \"Sample Library\": \"3\"     },     {       \"Model\": \"4\"     }   ],   \"Success\": true }",
  "RequestId" : "10000001"
}

Error codes

HttpCode

Error code

Error message

Description

400

BADPARAMETERS

Parameters are missing or in the wrong format.

A required parameter is not specified.

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