|
|
服务器信息探查
更新时间:2018-04-11 15:45:29 更新人员:叶洋  文档状态:完成 #44 测试接口
摘要
获取服务器信息。
-
接口基本信息
接口名称:服务器信息探查
请求方法:GET
接口地址:serverinfo
登录验证:是
-
响应数据参数
| 参数名 |
参数 |
数据类型 |
示例值 |
说明 |
| os_type |
操作系统 |
string |
Windows 10 |
服务器端的操作系统 |
| server_ip |
服务器IP地址 |
string |
127.0.0.1 |
服务器IP地址 |
| sys_info{} |
系统信息 |
object |
|
服务器端的系统信息 |
| ├ host_name |
├ 主机名 |
string |
|
|
| ├ os_name |
├ 系统名称 |
string |
Microsoft Windows 10 专业版 |
|
| ├ os_version |
├ 系统版本 |
string |
American Megatrends Inc. 1.70, 2016/5/20 |
|
| ├ os_manufacturer |
├ 系统制造商 |
string |
Microsoft Corporation |
|
| ├ os_install_date |
├ 系统安装日期 |
string |
2018/2/27, 12:26:45 |
|
| ├ os_boot_time |
├ 系统启动时间 |
string |
2018/3/14, 16:43:17 |
|
| ├ computer_manufacturer |
├ 计算机制造商 |
string |
MSI |
|
| ├ computer_model |
├ 计算机型号 |
string |
MS-7996 |
|
| ├ computer_type |
├ 计算机类型 |
string |
x64-based PC |
|
| ├ time_zone |
├ 系统时区 |
string |
(UTC+08:00) Beijing, Chongqing, Hong Kong, Ur |
|
| ├ memory_total_physical |
├ 物理内存总和 |
string |
8,155 MB |
|
| ├ memory_availbale_physical |
├ 可用物理内存 |
string |
3,754 MB |
|
| ├ memory_virtual_max |
├ 虚拟内存最大值 |
string |
14,747 MB |
|
| ├ memory_virtual_availbale |
├ 可用虚拟内存 |
string |
7,379 MB |
|
| └ memory_virtual_used |
└ 虚拟内存已使用 |
string |
memory_virtual_used |
|
-
请求示例
请求例子:
apirq('serverinfo')
返回数据结果:
{
"code": 0,
"msg": "获取服务器信息",
"time": "1523432099",
"data": {
"os_type": "Windows 10",
"server_ip": "127.0.0.1",
"sys_info": {
"host_name": "DESKTOP-H2RB3GD",
"os_name": "Microsoft Windows 10 专业版",
"os_version": "American Megatrends Inc. 1.70, 2016/5/20",
"os_manufacturer": "Microsoft Corporation",
"os_install_date": "2018/2/27, 12:26:45",
"os_boot_time": "2018/3/14, 16:43:17",
"computer_manufacturer": "MSI",
"computer_model": "MS-7996",
"computer_type": "x64-based PC",
"time_zone": "(UTC+08:00) Beijing, Chongqing, Hong Kong, Urumqi",
"memory_total_physical": "8,155 MB",
"memory_availbale_physical": "3,754 MB",
"memory_virtual_max": "14,747 MB",
"memory_virtual_availbale": "7,379 MB",
"memory_virtual_used": "7,368 MB"
}
}
}
|