系统部署工具

API文档


读取文件

[TOC]

简要描述
  • 根据扫描生成的任务id,查询对应的文件
请求URL
  • http://ip:port/system/readFileInfo
请求方式
  • GET
参数
参数名 必选 类型 说明
taskId string 任务id
返回示例
  {
  "status": 0,
  "errmsgfilter": false,
  "encrypted": false,
  "desc": "读取成功",
  "result": {
    "totalSize": "263.05M",
    "totalNum": 5,
    "fileInfo": {
      "log": {
        "totalSize": "263.05M",
        "totalNum": 3,
        "Records": [
          {
            "fileName": "error.2022-11-02.log",
            "size": 0,
            "fileSize": "0.00B",
            "filePath": "WorkSpace\\2.服务端\\logs\\error.2022-11-02.log",
            "id": "4f48104a-70ff-4ea2-854b-95fd01376425"
          },
          {
            "fileName": "info.2022-10-22.log",
            "size": 1747148,
            "fileSize": "1.67M",
            "filePath": "WorkSpace\\2.服务端\\logs\\info.2022-10-22.log",
            "id": "d5623afd-6dd3-4f81-bf86-ecb309f65240"
          },
          {
            "fileName": "info.2022-10-25.log",
            "size": 108289,
            "fileSize": "105.75K",
            "filePath": "WorkSpace\\2.服务端\\logs\\info.2022-10-25.log",
            "id": "e5107a18-f61e-4b98-87f0-aae18eb52926"
          },
        ]
      },
      "error": {
        "totalSize": "0.00B",
        "totalNum": 1,
        "Records": [
          {
            "fileName": "service_info.2022-10-20.error",
            "size": 0,
            "fileSize": "0.00B",
            "filePath": "WorkSpace\\2.服务端\\logs\\service_info.2022-10-20.error",
            "id": "0c8ac111-62ed-4c54-ace7-741ecc42badc"
          }
        ]
      },
      "info": {
        "totalSize": "0.00B",
        "totalNum": 1,
        "Records": [
          {
            "fileName": "service_info.2022-10-20.info",
            "size": 0,
            "fileSize": "0.00B",
            "filePath": "WorkSpace\\2.服务端\\logs\\service_info.2022-10-20.info",
            "id": "a07c60f0-7f27-40a4-911c-bc140e69c1ea"
          }
        ]
      }
    }
  }
}
返回参数说明

页面列表

ITEM_HTML