All Products
Search
Document Center

Security Center:GetSasContainerWebDefenseRule

Last Updated:Oct 24, 2025
This topic is generated by a machine translation engine without any human intervention. ALIBABA CLOUD DOES NOT GUARANTEE THE ACCURACY OF MACHINE TRANSLATED CONTENT. To request a human-translated version of this topic or provide feedback on this translation, please include it in the feedback form.

Get Container File Defense Rule Details.

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:
    • For mandatory resource types, indicate with a prefix of * .
    • 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:GetSasContainerWebDefenseRuleget
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RuleIdlongNo

Rule ID.

Note You can call the ListSasContainerWebDefenseRule API to get this parameter.
1600009

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the current request, which is a unique identifier generated by Alibaba Cloud for this request and can be used for troubleshooting and issue localization.

BA674E4**62FB5133
ContainerWebDefenseRuleobject

Details of the container file defense rule.

RuleStatusinteger

Rule status. The value descriptions are as follows:

  • 1: Enabled
  • 0: Disabled
1
AliUidlong

User ID.

1000**0002
AppTotalCountinteger

Total number of applications.

1
Idlong

Rule ID.

100
RuleNamestring

Rule name.

FiledefenseRule.
GmtCreatelong

Timestamp when the rule was created. Unit: milliseconds.

1709173360000
GmtModifiedlong

Timestamp when the rule was last modified. Unit: milliseconds.

1655432638000
PathConfDTOListarray<object>

List of configured file paths.

PathConfDTOobject
ExcludeFilestring

Excluded files.

file1
GuardTypeinteger

Protection mode.

  • 0: Basic mode (whitelist)
  • 1: Advanced mode (blacklist)
0
ExcludeFilePathstring

Excluded file path.

/test2/sub1,/test2/sub2
IncludeFilestring

Included files.

webapp
DefensePathstring

Defense path

/test11*
ExcludeFileTypestring

Exclude file types.

doc
DefenseModestring

Action to be executed.

  • block : Block
  • audit : Alert
audit
BackupPathstring

Backup path.

/usr/path/
IncludeFileTypestring

Type of included files.

doc
ProcessPathListarray

Whitelist process list.

processPathstring

Whitelist process.

/bin/proc1a,/bin/proc1b

Examples

Sample success responses

JSONformat

{
  "RequestId": "BA674E4**62FB5133",
  "ContainerWebDefenseRule": {
    "RuleStatus": 1,
    "AliUid": 0,
    "AppTotalCount": 1,
    "Id": 100,
    "RuleName": "FiledefenseRule.",
    "GmtCreate": 1709173360000,
    "GmtModified": 1655432638000,
    "PathConfDTOList": [
      {
        "ExcludeFile": "file1",
        "GuardType": 0,
        "ExcludeFilePath": "/test2/sub1,/test2/sub2",
        "IncludeFile": "webapp",
        "DefensePath": "/test11*",
        "ExcludeFileType": "doc",
        "DefenseMode": "audit",
        "BackupPath": "/usr/path/",
        "IncludeFileType": "doc",
        "ProcessPathList": [
          "/bin/proc1a,/bin/proc1b"
        ]
      }
    ]
  }
}

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.