All Products
Search
Document Center

Security Center:GetCheckRiskStatistics

Last Updated:Nov 13, 2024

Queries the statistics on risk scenarios and check items that are used in the risk scenarios, including the statistics on low-risk, medium-risk, and high-risk items by baseline type.

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:GetCheckRiskStatisticsget
  • 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
CurrentPageintegerNo

The number of the page to return. Default value: 1.

1
PageSizeintegerNo

The number of entries to return on each page. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page.

Note We recommend that you do not leave this parameter empty.
20

Response parameters

ParameterTypeDescriptionExample
object

The risk statistics on check items.

Dataarray<object>

An array consisting of the statistics on check items that are used in risk scenarios.

Dataobject

The statistics on check items that are used in the risk scenario.

SceneNamestring

The name of the risk scenario.

SECURITY
LowWarningCountinteger

The number of low-risk items.

3
MediumWarningCountinteger

The number of medium-risk items.

29
HighWarningCountinteger

The number of high-risk items.

43
TotalCountinteger

The total number of check items.

219
PassCountinteger

The number of passed check items.

143
SubStatisticsarray<object>

The statistics on check items that are used in the risk scenario by baseline type.

SubStatisticobject

The statistics on check items that are used in the risk scenario and belong to the baseline type.

TypeNamestring

The baseline type.

weak_password
Aliasstring

The name of the baseline type.

weak_password
LowWarningCountinteger

The number of low-risk items.

0
MediumWarningCountinteger

The number of medium-risk items.

0
HighWarningCountinteger

The number of high-risk items.

3
TotalCountinteger

The total number of check items.

5
PassCountinteger

The number of passed check items.

2
Countinteger

The number of risk scenarios.

3
RequestIdstring

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

2C455672-2490-5211-84EC-420C7818****

Examples

Sample success responses

JSONformat

{
  "Data": [
    {
      "SceneName": "SECURITY",
      "LowWarningCount": 3,
      "MediumWarningCount": 29,
      "HighWarningCount": 43,
      "TotalCount": 219,
      "PassCount": 143,
      "SubStatistics": [
        {
          "TypeName": "weak_password",
          "Alias": "weak_password",
          "LowWarningCount": 0,
          "MediumWarningCount": 0,
          "HighWarningCount": 3,
          "TotalCount": 5,
          "PassCount": 2
        }
      ]
    }
  ],
  "Count": 3,
  "RequestId": "2C455672-2490-5211-84EC-420C7818****"
}

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