All Products
Search
Document Center

Security Center:ListSasContainerWebDefenseRule

Last Updated:Nov 13, 2024

Queries rules for container tamper-proofing.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
yundun-sas:ListSasContainerWebDefenseRulelist
  • All Resources
    *
    none
none

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
ContainerWebDefenseRuleListarray<object>

The rules for container tamper-proofing.

ContainerWebDefenseRuleobject
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
PathConfDTOListarray<object>

The paths that are protected.

PathConfDTOobject
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.

ProcessPathstring

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.