問題描述
如何使用設備的自定義屬性來獲取產品的版本號 (How can I use Custom Attributes for devices in order to get Version number of Products)
我的要求是從控制台獲取 Android 應用程序的所有產品以及版本名稱。如果我從 Postman
查詢 deviceExtensive
搜索,一次性獲取所有設備中所有 Products
(apps) 的信息,如 ProductId,
Name
, Status
但沒有得到產品的Version
。
productExtensive
同樣的問題代碼>搜索,獲取除版本號外的所有產品信息。我有將近 20 種產品。
參考解法
方法 1:
You only can get version number
of applications device
level instead of getting server level.
Use loop
and pass deviceId
in every iteration.
There is no api available in AW rest service document. Below service you can use to do so
https://host/api/mdm/devices/apps?searchby=Serialnumber&id=R10QA7AL&page=1&pagesize=50
https://host/api/mdm/devices/apps?searchby=ImeiNumber&id=YourID&page=1&pagesize=50
https://host/api/mdm/devices/apps?searchby=Udid&id=YourID&page=1&pagesize=50
https://host/api/mdm/devices/apps?searchby=Macaddress&id=YourID&page=1&pagesize=50
Custom attributes
can only be used for device level not groups
level then again this not going to solve your problem.
參考文件