All Products
Search
Document Center

Security Center:ModifySasContainerWebDefenseRule

Last Updated:Feb 20, 2024

Modifies a rule for container tamper-proofing.

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
RuleIdlongYes

The ID of the rule.

200634
RuleNamestringNo

The name of the rule.

wwwwwww
PathConfDTOListobject []No

The paths that are protected.

DefensePathstringYes

The path that is protected.

/test/home/
BackupPathstringNo

The backup paths.

/tmp/test
ExcludeFilePathstringNo

The paths to the files that are excluded.

/test/home/qq
ExcludeFileTypestringNo

The types of the files that are excluded.

php
ExcludeFilestringNo

The files that are excluded.

/usr/test
GuardTypeintegerYes

The protection mode. Valid values:

  • 0: basic mode (whitelist)
  • 1: complex mode (blacklist)
0
IncludeFileTypestringNo

The type of the files that are included.

jsp
IncludeFilestringNo

The files that are included.

/home/admin/test
DefenseModestringYes

The prevention mode. Valid values:

  • block
  • audit
audit
ProcessPathListarrayNo

The processes that are added to the whitelist.

stringNo

The process that is added to the whitelist.

/bin/bash
PathConfIdlongNo

The path ID.

12345678

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

A447E4E3-42A3-58B7-A7D4-2287745BEFDC

Examples

Sample success responses

JSONformat

{
  "RequestId": "A447E4E3-42A3-58B7-A7D4-2287745BEFDC"
}

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.