All Products
Search
Document Center

Data Security Center:ModifyRuleStatus

Last Updated:Feb 27, 2024

Enables or disables a sensitive data detection rule.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
LangstringNo

The language of the content within the request and response. Valid values:

  • zh: Chinese
  • en: English
zh
IdlongNo

The ID of the sensitive data detection rule.

Note You can query the ID of the sensitive data detection rule by calling the DescribeRules operation.
12341
IdsstringNo

The ID of the sensitive data detection rule. Separate multiple IDs with commas (,).

Note You can query the ID of the sensitive data detection rule by calling the DescribeRules operation.
1,2,3,4
StatusintegerYes

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

  • 0: disables the sensitive data detection rule.
  • 1: enables the sensitive data detection rule.
1

Response parameters

ParameterTypeDescriptionExample
object
FailedIdsstring

The IDs of sensitive data detection rules whose status failed to be changed. Multiple IDs are separated with commas (,).

1,2,3,4
RequestIdstring

The ID of the request.

7C3AC882-E5A8-4855-BE77-B6837B695EF1

Examples

Sample success responses

JSONformat

{
  "FailedIds": "1,2,3,4",
  "RequestId": "7C3AC882-E5A8-4855-BE77-B6837B695EF1"
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history