# Obtain the same statistical values ​​​​of the audience host security under the current account and project - ListUHostsecWarnStatisticsV2

## Overview

Obtains the statistics of various host security alarms under the current account and project, but does not count brute force cracking failure data. SshBruteFailed is 0






## Definition

### Public Parameters

| Parameter Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Action**     | string  | Corresponding API command name, the current API is `ListUHostsecWarnStatisticsV2`.                      | **Yes** |
| **PublicKey**  | string  | The user's public key can be obtained from [Console](https://console.ckcloudai.com/uaccount/api_manage)                                             | **Yes** |
| **Signature**  | string  | User signature generated based on public key and API command, see [Signature Algorithm](/docs/api/summary/signature.md)  | **Yes** |

### Request Parameters

| Parameter Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **ProjectId** | string | Project ID. If not filled in, the default project is used, and the sub-account must be filled in. Please refer to the [GetProjectList interface](/docs/api/summary/get_project_list). |**Yes**|

### Response Field

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **RetCode** | int | Return status code. If it is 0, it means successful return. If it is not 0, it means failure. |**Yes**|
| **Action** | string | Operation command name. |**Yes**|
| **Message** | string | Returns an error message, providing detailed description when `RetCode` is non-zero. |No|
| **WarnStatistics** | [*WarnStatistics*](#warnstatistics) | Host Security Alert Statistics |No|

#### Data Model


#### WarnStatistics

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **BaseCheck** | int | Security Baseline Check Alert Statistics |**Yes**|
| **AbnormalLogin** | int | Abnormal Login Alert Statistics |**Yes**|
| **SshBruteSucceeded** | int | Brute Force Success Alert Statistics |**Yes**|
| **Trojan** | int | Trojan Alert Statistics |**Yes**|
| **VulCheck** | int | Vulnerability Check Alert Statistics |**Yes**|
| **SshBruteFailed** | int | Brute Force Failure Statistics |No|

## Example

### Request Example
    
```
https://api.ckcloudai.com/?Action=ListUHostsecWarnStatisticsV2
&ProjectId=IdkiNkgL
```

### Response Example
    
```json
{
  "Action": "ListUHostsecWarnStatisticsV2Response",
  "RetCode": 0,
  "WarnStatistics": {
    "AbnormalLogin": 15,
    "BaseCheck": 5,
    "SshBruteFailed": 0,
    "SshBruteSucceeded": 4,
    "Trojan": 3,
    "VulCheck": 73
  }
}
```





