All Products
Search
Document Center

:DeleteRecognizeRule

更新時間:May 06, 2024

Deletes sensitive field types in Data Security Guard.

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

DeleteRecognizeRule

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

SensitiveId

String

No

27f5f5e2-ec60-4567-b1e4-779ac3681024

The ID of the sensitive field type. You can call the QuerySensNodeInfo operation to obtain the ID of the sensitive field type.

TenantId

String

No

10241024

The tenant ID. To obtain the tenant ID, perform the following steps: Log on to the DataWorks console. Find your workspace and go to the DataStudio page. On the DataStudio page, click the logon username in the upper-right corner and click User Info in the Menu section.

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, "Success": true }

The returned data about whether the deletion is successful.

RequestId

String

10000001

The request ID.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DeleteRecognizeRule
&SensitiveId=27f5f5e2-ec60-4567-b1e4-779ac3681024
&TenantId=10241024
&Common request parameters

Sample success responses

XML format

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

<DeleteRecognizeRuleResponse>
    <Success>true</Success>
    <ErrorCode>9990030003</ErrorCode>
    <ErrorMessage>A required parameter is not specified.</ErrorMessage>
    <HttpStatusCode>200</HttpStatusCode>
    <Data>{   "HttpStatusCode": 200,   "Success": true }</Data>
    <RequestId>10000001</RequestId>
</DeleteRecognizeRuleResponse>

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,   \"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.

400

SENSITIVEDELETEERROR

The sensitive field is not allowed to delete. Check sensitive field status and binding desensitization rule.

This sensitive field type cannot be deleted. Check the business logic.

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