All Products
Search
Document Center

Security Center:DescribeCheckWarningSummary

Last Updated:Nov 30, 2022

Queries the statistical information about baseline check results. The information includes the number of servers on which a baseline check is performed, the number of baseline check items, and the pass rate of check items in the last baseline check.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
SourceIpstringNo

The source IP address of the request.

219.133.XX.XX
LangstringNo

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

  • zh: Chinese
  • en: English
zh
TypeNamestringNo

The level-1 type of check items.

NoteYou can call the DescribeRiskType operation to query the level-1 types of check items.
database
StatusstringNo

The status of the check item. Valid values:

  • 1: failed
  • 2: verifying
  • 3: passed
  • 5: expired
  • 6: ignored
1
RiskStatusintegerNo

The status of the baseline check. Valid values:

  • 1: failed
  • 3: passed
1
RiskNamestringNo

The name of the risk item.

Redis
StrategyIdlongNo

The ID of the baseline check policy.

1
UuidsstringNo

The UUID of the asset.

NoteYou can call the DescribeCloudCenterInstances operation to query the UUIDs of assets.
f03259d8-1e81-4fae-bcbb-275fb5****
PageSizeintegerNo

The number of entries to return on each page.

10
CurrentPageintegerNo

The number of the page to return.

1
ClusterIdstringNo

The ID of the container cluster.

NoteYou can call the DescribeGroupedContainerInstances operation to query the IDs of container clusters.
c80dae73bd1be442699766b14ffd0****
ContainerFieldNamestringNo

The name of the container field. Valid values:

  • clusterId: the ID of the cluster
  • image: the name of the image
  • imageId: the ID of the image
  • namespace: the namespace
namespace
ContainerFieldValuestringNo

The value of the container field.

c819391d2d520485fa3e81e2dc2ea****
TargetTypestringNo

The type of the query condition. Valid values:

  • uuid: the ID of an asset
uuid

Response parameters

ParameterTypeDescriptionExample
object
CurrentPageinteger

The page number of the current page.

1
PageSizeinteger

The number of entries to return on each page.

10
RequestIdstring

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

00BD7CE2-284A-4534-BD09-FB69836DD750
TotalCountinteger

The total number of check items.

100
Countinteger

The number of check items returned on the current page.

10
WarningSummarysarray

The statistics of check items.

object

The statistics of check items.

LowWarningCountinteger

The number of low-risk items.

3
CheckCountinteger

The number of check items.

10
MediumWarningCountinteger

The number of medium-risk items.

2
LastFoundTimestring

The time when the last baseline check was performed.

2019-01-01 12:23:00
RiskIdlong

The ID of the risk item.

118
SubTypeAliasstring

The level-2 type of the risk item.

Redis
WarningMachineCountinteger

The number of assets on which risk items are detected.

11
HighWarningCountinteger

The number of high-risk items.

1
TypeAliasstring

The level-1 type of the check item. Examples: database, system, weak password, and middleware.

databases
RiskNamestring

The name of the risk item.

Redis
Levelstring

The risk level of the risk item. Valid values:

  • high
  • medium
  • low
high
CheckExploitboolean

Indicates whether the risk item can be exploited. Valid values:

  • true: yes
  • false: no
false
DatabaseRiskboolean

Indicates whether the risk item is a database risk item. Valid values:

  • true: yes
  • false: no
false

Example

Normal return example

JSONFormat

{
  "CurrentPage": 1,
  "PageSize": 10,
  "RequestId": "00BD7CE2-284A-4534-BD09-FB69836DD750",
  "TotalCount": 100,
  "Count": 10,
  "WarningSummarys": [
    {
      "LowWarningCount": 3,
      "CheckCount": 10,
      "MediumWarningCount": 2,
      "LastFoundTime": "2019-01-01 12:23:00",
      "RiskId": 118,
      "SubTypeAlias": "Redis",
      "WarningMachineCount": 11,
      "HighWarningCount": 1,
      "TypeAlias": "databases",
      "RiskName": "Redis",
      "Level": "high",
      "CheckExploit": true,
      "DatabaseRisk": true
    }
  ]
}

Error codes

Http codeError codeError message
400NoPermissionno permission
400ConsoleErrorThe error message is %s %s.
403NoPermissioncaller has no permission
500ServerErrorServerError

For a list of error codes, visit the API error center.