You can call this operation to enable or disable a sensitive data detection rule in Sensitive Data Discovery and Protection (SDDP).
Debugging
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:
|
Lang | String | No | zh |
The language of the request and response. Valid values:
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 7C3AC882-E5A8-4855-BE77-B6837B695EF1 |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=ModifyRuleStatus
&<Common request parameters>
Sample success responses
XML
format
<ModifyRuleStatus>
<RequestId>7C3AC882-E5A8-4855-BE77-B6837B695EF1</RequestId>
</ModifyRuleStatus>
JSON
format
{
"RequestId":"7C3AC882-E5A8-4855-BE77-B6837B695EF1"
}
Error codes
For a list of error codes, visit the API Error Center.