All Products
Search
Document Center

Security Center:ListSasContainerWebDefenseRule

Last Updated:Feb 20, 2024

Queries rules 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
CriteriastringNo

The search conditions for assets. The value of this parameter is in the JSON format and contains the following fields:

  • name: the name of the search condition.

  • value: the value of the search condition.

  • logicalExp: the logical relation for multiple search conditions. Valid values:

    • OR: The search conditions use a logical OR.
    • AND: The search conditions use a logical AND.
[{\"name\":\"ruleName\",\"value\":\"test-1818\",\"logicalExp\":\"AND\"}]
LogicalExpstringNo

The logical relation for multiple search conditions. Valid values:

  • OR: The search conditions use a logical OR.
  • AND: The search conditions use a logical AND.
OR
PageSizeintegerNo

The number of entries per page. Default value: 20.

50
CurrentPageintegerNo

The page number. Pages start from page 1. Default value: 1.

1

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID, which is used to query logs and troubleshoot issues.

8C376***AE74FB4
PageInfoobject

The pagination information.

CurrentPageinteger

The page number.

1
PageSizeinteger

The number of entries per page.

20
TotalCountinteger

The total number of entries returned.

42
Countinteger

The number of entries returned on the current page.

4
ContainerWebDefenseRuleListobject []

The rules for container tamper-proofing.

RuleStatusinteger

The status of the rule. Valid values:

  • 1: enabled
  • 0: disabled
1
AliUidlong

The user ID.

1766185894104675
ApptotalCountinteger

The number of the applications.

10
Idlong

The ID of the rule.

420336648
RuleNamestring

The name of the rule.

test2
GmtCreatelong

The creation time. Unit: milliseconds.

1698978109000
GmtModifiedlong

The timestamp when the alert event was last modified. Unit: milliseconds.

1678852686000
PathConfDTOListobject []

The paths that are protected.

ExcludeFilestring

The file that is excluded.

php
GuardTypeinteger

The protection mode. Valid values:

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

The path to the file that is excluded.

/usr/tt
IncludeFilestring

The file that is included.

/usr/test
IncludeFileTypestring

The type of the file that is included.

php
DefensePathstring

The protected path.

/usr/test/
ExcludeFileTypestring

The type of the file that is excluded.

jsp
DefenseModestring

The prevention mode. Valid values:

  • block
  • audit
audit
BackupPathstring

The backup paths.

/tmp/test
ProcessPathListarray

The processes that are added to the whitelist.

string

The process that is added to the whitelist.

/usr/bin/mv

Examples

Sample success responses

JSONformat

{
  "RequestId": "8C376***AE74FB4",
  "PageInfo": {
    "CurrentPage": 1,
    "PageSize": 20,
    "TotalCount": 42,
    "Count": 4
  },
  "ContainerWebDefenseRuleList": [
    {
      "RuleStatus": 1,
      "AliUid": 1766185894104675,
      "ApptotalCount": 10,
      "Id": 420336648,
      "RuleName": "test2",
      "GmtCreate": 1698978109000,
      "GmtModified": 1678852686000,
      "PathConfDTOList": [
        {
          "ExcludeFile": "php",
          "GuardType": 0,
          "ExcludeFilePath": "/usr/tt",
          "IncludeFile": "/usr/test",
          "IncludeFileType": "php",
          "DefensePath": "/usr/test/",
          "ExcludeFileType": "jsp",
          "DefenseMode": "audit",
          "BackupPath": "/tmp/test",
          "ProcessPathList": [
            "/usr/bin/mv"
          ]
        }
      ]
    }
  ]
}

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.