All Products
Search
Document Center

Security Center:SetSensitiveDefineRuleConfig

Last Updated:Feb 20, 2024

Configure the check rules of sensitive files.

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
ConfigstringNo

The configurations of the custom check rule. The value is in the JSON format. Valid values of keys:

  • classKey: the category keyword of the check rule.
  • ruleList: the keyword of the check rule.
[{\"classKey\": \"password\", \"ruleList\": [\"huaweicloud_ak\", \"ak_leak\"]}]

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

Dataobject

The returned data.

Idlong

The custom primary key.

44616
Successboolean

Indicates whether the request was successful. Valid values:

  • true
  • false
true
Codestring

The HTTP status code.

200
Messagestring

The returned message.

successful
RequestIdstring

The request ID.

0B48AB3C-84FC-424D-A01D-B9270EF4****

Examples

Sample success responses

JSONformat

{
  "Data": {
    "Id": 44616
  },
  "Success": true,
  "Code": "200",
  "Message": "successful",
  "RequestId": "0B48AB3C-84FC-424D-A01D-B9270EF4****"
}

Error codes

HTTP status codeError codeError messageDescription
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

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