All Products
Search
Document Center

Security Center:ListSystemClientRules

Last Updated:Feb 20, 2024

Queries system defense rules.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

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:ListSystemClientRulesList
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
LangstringNo

The language of the content within the request and response. Default value: zh. Valid values:

  • zh: Chinese
  • en: English
zh
RuleNamestringNo

The name of the system defense rule.

Rule\*\*\*\*
CurrentPageintegerYes

The number of the page to return.

1
PageSizeintegerYes

The number of entries to return on each page.

20
RuleTypesarrayNo

The types of the system defense rules.

integerNo

The type of the system defense rule. Valid values:

  • 0: process-specific defense
  • 1: network-specific defense
1
SystemTypeintegerNo

The type of the OS. Valid values:

  • 2: Windows
  • 1: Linux
  • 0: all types
0
AggregationIdsarrayNo

The IDs of the aggregation types for rules.

integerNo

The ID of the aggregation type for the rule.

38
IsContainerintegerNo

Specifies whether to query only container images. Valid values:

  • 0: no
  • 1: yes
1

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request, which is used to locate and troubleshoot issues.

C43CA30F-EF67-51BB-8C95-F31B8303****
PageInfoobject

The pagination information.

CurrentPageinteger

The page number of the returned page.

1
PageSizeinteger

The number of entries returned per page.

20
TotalCountinteger

The total number of entries returned.

17
RuleListobject []

An array that consists of the system defense rules.

Statusinteger

The status of the system defense rule. Valid values:

  • online: enabled
  • offline: disabled
online
RuleTypeinteger

The type of the system defense rule. Valid values:

  • 1: alihips
  • 2: alinet
  • 3: alidetect
  • 4: alisecguard
alihips
Platformstring

The type of the OS. Valid values:

  • windows: Windows
  • linux: Linux
  • all: all types
linux
SwitchIdstring

The switch ID of the system defense rule.

USER-ENABLE-SWITCH-TYPE_****
RuleIdlong

The ID of the system defense rule.

30****
RuleNamestring

The name of the system defense rule.

Rule\*\*\*\*
AggregationNamestring

The name of the aggregation type for the system defense rule.

Initial entry
Descriptionstring

The description of the system defense rule.

Supports alerting or blocking of images that have high-risk vulnerabilities\*\*\*\*
Policiesobject []

An array that consists of policies.

PolicyNamestring

The name of the policy.

System self-starting task\*\*\*\*
PolicyKeystring

The policy key.

system_auto_****

Examples

Sample success responses

JSONformat

{
  "RequestId": "C43CA30F-EF67-51BB-8C95-F31B8303****",
  "PageInfo": {
    "CurrentPage": 1,
    "PageSize": 20,
    "TotalCount": 17
  },
  "RuleList": [
    {
      "Status": 0,
      "RuleType": 0,
      "Platform": "linux",
      "SwitchId": "USER-ENABLE-SWITCH-TYPE_****",
      "RuleId": 0,
      "RuleName": "Rule\\*\\*\\*\\*\n",
      "AggregationName": "Initial entry\n",
      "Description": "Supports alerting or blocking of images that have high-risk vulnerabilities\\*\\*\\*\\*\n",
      "Policies": [
        {
          "PolicyName": "System self-starting task\\*\\*\\*\\*\n",
          "PolicyKey": "system_auto_****"
        }
      ]
    }
  ]
}

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.

Change history

Change timeSummary of changesOperation
No change history