You can call this operation to enable or disable a sensitive data detection rule in Sensitive Data Discovery and Protection (SDDP).


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 ModifyRuleStatus

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

Id Long Yes 12341

The unique ID of the sensitive data detection rule to enable or disable.

Note You can call the DescribeRules operation to query the ID of the sensitive data detection rule.
Status Integer Yes 1

Specifies whether to enable or disable the sensitive data detection rule. Valid values:

  • 0: Disable the rule.
  • 1: Enable the rule.
Lang String No zh

The language of the request and response. Valid values:

  • zh: Chinese
  • en: English

Response parameters

Parameter Type Example Description
RequestId String 7C3AC882-E5A8-4855-BE77-B6837B695EF1

The ID of the request.


Sample requests

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

Sample success responses

XML format


JSON format


Error codes

For a list of error codes, visit the API Error Center.