GetGroupTree
调用该接口get group tree。
Request
post /groups/tree
Request Body
| Description | Type | Schema |
|---|---|---|
| Object | apigroupv1ListEntityQuery |
apigroupv1ListEntityQuery
| Name | Type | Description |
|---|---|---|
| condition | Array[apigroupv1Condition] | 组合条件 [ 具体参数可见下面 apigroupv1Condition ] |
| is_descending | boolean | 是否逆序, false:不逆序,true:逆序 |
| order_by | string | 排序字段 |
| page_num | integer | 记录开始位置 |
| page_size | integer | 每页限制条数 |
| query | string | es查询条件 |
apigroupv1Condition
| Name | Type | Description |
|---|---|---|
| field | string | 查询输出字段 |
| operator | string | 操作符, $eq为相等,$neq为不等,$lt为小于,$gt为大于,$lne为小于等于, $gne为大于等于 |
| value | string | 值 |
Response
Response 200
| Code2 | Description | Type | Schema |
|---|---|---|---|
| 200 | OK | Object | v1GetGroupTreeResponse |
v1GetGroupTreeResponse
| Name | Type | Description |
|---|---|---|
| GroupTree | Object | 设备组列表树 |
Response default
| Code2 | Description | Type | Schema |
|---|---|---|---|
| default | An unexpected error response. | Object | rpcStatus |
rpcStatus
| Name | Type | Description |
|---|---|---|
| code | integer | |
| details | Array[protobufAny] | [ 具体参数可见下面 protobufAny ] |
| message | string |
protobufAny
| Name | Type | Description |
|---|---|---|
| @type | string |