清点扫描计算机


此API列出所有计算机及其相关的扫描详细信息。

  • 功能
  • 获取清点计算机列表。
  • HTTP方法 
  • GET
  • API URI
  • api/1.4/inventory/scancomputers
  • 需要认证令牌
  • 分页
  • 过滤器
  • domainfilter={String}:

    从 api/1.4/desktop/serverproperties 获取域列表

    branchofficefilter={String}:

    从 api/1.4/desktop/serverproperties 获取分支机构列表

    residfilter={Numeric}:

    按特定资源ID过滤计算机

    livestatusfilter={Numeric}:

    1    -    在线
    2    -    离线
    3    -    未知

    scanstatusfilter={Numeric}:

    21    -    待安装
    22    -    已安装
    23    -    已卸载
    24    -    待卸载
    29    -    安装失败

    installstatusfilter={Numeric}:


    -1   -    未执行
    0    -    失败
    1    -    进行中
    2    -    成功
    installstatusfilter={Numeric}:


    -1   -    未执行
    0    -    失败
    1    -    进行中
  • 响应参数
  • live_status:

    1    -    在线
    2    -    离线
    3    -    未知
    installation_status:

    21    -    待安装
    22    -    已安装
    23    -    已卸载
    24    -    待卸载
    29    -    安装失败

    scan_status :

    -1   -    未执行
    0    -    失败
    1    -    进行中
    2    -    成功
     

响应数据

 
{
"message_response": {
"total": 1,
"limit": 25,
"page": 1,
"scancomputers": [
{
"computer_live_status": 1,
"os_platform": 1,
"scan_remarks": "dc.common.SCANNING_COMPLETED",
"build_number": "7601",
"agent_installed_dir": "C:\Program Files (x86)\DesktopCentral_Agent\",
"scan_status": 2,
"agent_logged_on_users": "Administrator,admin",
"computer_status_update_time": 1450764296972,
"service_pack": "Service Pack 1",
"scan_remarks_en": "Scanning Completed",
"agent_last_contact_time": 1450417170806,
"process_start_time": 1450250502153,
"error_kb_url": "--",
"status_label": "dc.db.som.status.installed_successfully",
"branch_office_name": "Intern Ds Remote",
"last_sync_time": 1450767897942,
"process_end_time": 1450286646061,
"agent_installed_on": 1449570068627,
"os_version": "Windows 7 SP1 (x64)",
"last_successful_scan": 1450286646061,
"installation_status": 22,
"mac_address": "e8:9a:8f:3f:60:c8",
"resource_id": 313,
"domain_netbios_name": "DESKTOPCENTRAL",
"ip_address": "172.21.109.234",
"agent_version": "9.1.109.W",
"resource_name": "DC-W7-5",
"service_pack_minor_version": 0,
"software_name": "Windows 7 Professional Edition (x64)",
"service_pack_major_version": 1
}
]
},
"status": "success",
"message_version": "1.0",
"message_type": "scancomputers"
}