获取计算机下的所有软件信息

获取计算机下的所有软件信息

API调用URL地址

http://<serverName>:<portNumber>/api/v3/workstations/{workstations_id}/software

其中{workstations_id}为需要获取软件信息的计算机ID

示例:http://192.168.0.55/api/v3/workstations/2404/software

请求参数

方法:GET

请求参数:

参数名

位置

input_data

<JSON_String>params

authtoken

<API Key>

header

输入示例

 input_data:

{
    "list_info":{
        "start_index":1,
        "row_count":"25",
        "sort_field":"license.key",
        "sort_order":"asc",
        "fields_required":[
            "software",
            "version",
            "software_type",
            "license.license_name",
            "file_size"
        ]

    }

}
关于“list_info”参数可以参考系统中的API文档。管理>>API>>API文档>>Introduction>>List view fields

响应示例

 {

    "software":[
        {
            "license":null,
            "software":{
                "name":"ManageEngine AssetExplorer Agent",
                "id":"303",
                "type":{
                    "id":"1"
                }

            }
,
            "software_type":{
                "name":"UnIdentified",
                "id":"1"
            }
,
            "id":"1833",
            "version":"1.0.32",
            "file_size":"-"
        }
,
        {
            "license":null,
            "software":{
                "name":"猎豹安全浏览器",
                "id":"15006",
                "type":{
                    "id":"1"
                }

            }
,
            "software_type":{
                "name":"UnIdentified",
                "id":"1"
            }
,
            "id":"32406",
            "version":"-",
            "file_size":"-"
        }
,
        {
            "license":null,
            "software":{
                "name":"360安全浏览器",
                "id":"918",
                "type":{
                    "id":"2"
                }

            }
,
            "software_type":{
                "name":"Managed",
                "id":"2"
            }
,
            "id":"32403",
            "version":"2.9",
            "file_size":"-"
        }
,
        {
            "license":null,
            "software":{
                "name":"ManageEngine Desktop Central - Agent",
                "id":"5101",
                "type":{
                    "id":"1"
                }

            }
,
            "software_type":{
                "name":"UnIdentified",
                "id":"1"
            }
,
            "id":"8401",
            "version":"10.0.508.W",
            "file_size":"-"
        }

    ]
,
    "response_status":[
        {
            "status_code":2000,
            "status":"success"
        }

    ]
,
    "list_info":{
        "has_more_rows":false,
        "start_index":1,
        "sort_field":"license.key",
        "fields_required":[
            "software",
            "version",
            "software_type",
            "license.license_name",
            "file_size"
        ]
,
        "sort_order":"asc",
        "row_count":4
    }

}

Postman示例