# List the host installation information (including paid version information) of the current project - GetUhostsecAgentDeploymentSituationWithVerInfo

## Overview

Obtain the installation information of the current project's host, including IP, current payment version, and other information.






## Definition

### Public Parameters

| Parameter Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Action**     | string  | Corresponding API command name, the current API is `GetUhostsecAgentDeploymentSituationWithVerInfo`.                      | **Yes** |
| **PublicKey**  | string  | The user's public key can be obtained from [Console](https://console.zosoc.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 |**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|
| **InfoList** | array[[*HostAgentStatusInfo*](#hostagentstatusinfo)] | Host information |No|
| **TotalNum** | int | Total number of hosts |No|
| **InstallNum** | int | Number of hosts with UHIDS installed |No|
| **UninstallNum** | int | Number of hosts without UHIDS installed |No|

#### Data Model


#### HostAgentStatusInfo

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Zone** | string | Availability Zone |**Yes**|
| **Ip** | array[string] | Host IP List |**Yes**|
| **UHostId** | string | UHost resource short ID |**Yes**|
| **AgentId** | string | Agent Identification ID of UHIDS |**Yes**|
| **Installed** | boolean | Is it already installed? |**Yes**|
| **NowVer** | int | Current UHIDS version information for this host |**Yes**|
| **SetVer** | int | User sets this host UHIDS version information |**Yes**|
| **HostName** | string | Remark name of UHost |**Yes**|
| **NICs** | array[[*NIC*](#nic)] | Network Card Information List |**Yes**|
| **OsName** | string | System Version |No|

#### NIC

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **IP** | string | Network Card IP |No|
| **Mac** | string | Network card MAC |No|

## Example

### Request Example
    
```
https://api.zosoc.com/?Action=GetUhostsecAgentDeploymentSituationWithVerInfo
&ProjectId=KXhzaqMC
&Installed=false
&Uninstalled=false
```

### Response Example
    
```json
{
  "Action": "GetUhostsecAgentDeploymentSituationWithVerInfoResponse",
  "InfoList": [
    {
      "AgentId": "rljHiCId",
      "HostName": "IHTapxQz",
      "Installed": true,
      "Ip": [
        "yfsHDWMF"
      ],
      "NICs": [
        {
          "IP": "rPpLjDbt",
          "Mac": "PdrijsQk"
        }
      ],
      "NowVer": 6,
      "SetVer": 7,
      "UHostId": "XQtxROXt",
      "Zone": "bufXLCIv"
    }
  ],
  "InstallNum": 1,
  "RetCode": 0,
  "TotalNum": 4,
  "UninstallNum": 8
}
```





