
# 根据实体名查询规则列表（API名称：findQueryRuleListByHostEntityNameForOpenApi）
#### 功能介绍
根据实体名查询规则列表。
#### 相关接口
| **接口名称**                                                             | **调用说明**                                                     |
|:---|:---|
| [获取Token](https://support.huaweicloud.com/api-isdp/api_01_0019.html) | 调用该接口获取到Token，再调用其他接口时，需要在请求消息头中添加"Authorization"，其值即为Token。 |
   
#### URL
| **请求方式** | **HTTPS地址**                                                                             | **服务架构** | **消息体类型**        |
|:---|:---|:---|:---|
| POST     | https://***isdp+域名***/openapi/v1/reportRule/findQueryRuleListByHostEntityNameForOpenApi | OpenAPI  | application/json |
   
#### 请求头
| **KEY**       | **VALUE**              | **是否必填** | **描述**                                                                                           |
|:---|:---|:---|:---|
| Content-Type  | application/json       | 是        | 无                                                                                                |
| Authorization | bearer ${access_token} | 是        | bearer +" "+[5.2.1](https://support.huaweicloud.com/api-isdp/api_01_0019.html)中获取的access_token的值 |
   
#### 请求参数
| **参数**         | **类型**  | **是否必填** | **描述**    |
|:---|:---|:---|:---|
| page.start     | Integer | 是        | SQL分页起始位置 |
| page.count     | Integer | 是        | 当前分页大小    |
| hostEntityName | String  | 是        | 实体名       |
| searchString   | String  | 否        | 搜索字符串     |
   
#### 响应参数
| **参数**  | **类型**  | **描述**           |
|:---|:---|:---|
| status  | String  | 响应状态码。           |
| status  | String  | success：成功       |
| status  | String  | failed：失败        |
| msg     | String  | 响应描述。            |
| data    | Object  | 响应结果内容data、分页数据。 |
| success | Boolean | true或false       |
| failed  | Boolean | true或false       |
   
data出参:
| **参数**      | **类型**  | **描述**   |
|:---|:---|:---|
| data        | Object  | Json对象数组 |
| pos         | Integer | 分页起始位置   |
| total_count | Integer | 表中数据总量   |
| totalcount  | Integer | 表中数据总量   |
| entityName  | String  | 实体名      |
   
#### 请求示例
```
{
    "page.start": 0,
    "page.count": 15,
    "searchString": "",
    "hostEntityName": "*"
}
```
#### 响应示例
```
{
    "status": "success",
    "msg": null,
    "data": {
        "data": [],
        "pos": 0,
        "total_count": 0,
        "entityName": null,
        "totalCount": 0
    },
    "failed": false,
    "success": true
}
```
