All Products
Search
Document Center

Security Center:ListSystemClientRules

Last Updated:Nov 25, 2024

Queries system defense rules.

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:ListSystemClientRulesget
*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:

  • 1: alihips, process-specific defense
  • 2: alinet, 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
RuleListarray<object>

An array that consists of the system defense rules.

Ruleobject

The information about the system defense rule.

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, process-specific defense
  • 2: alinet, network-specific defense
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\*\*\*\*
Policiesarray<object>

An array that consists of policies.

policyobject

The information about the policy.

PolicyNamestring

The name of the policy.

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

The policy key.

system_auto_****
SwitchEnableboolean

Whether the current rule switch takes effect. Valid values:

  • true: enabled
  • false: disabled
true

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_****"
        }
      ],
      "SwitchEnable": true
    }
  ]
}

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
2024-10-08The response structure of the API has changedView Change Details