How can I use Custom Attributes for devices in order to get Version number of Products
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.
R15
Updated on December 22, 2022Comments
-
R15 over 1 year
My requirement is to get all products from console for Android app along with version name. If I query
deviceExtensive
search fromPostman
, getting information of allProducts
(apps) in all devices in one go likeProductId
,Name
,Status
but not gettingVersion
of Product.Same problem with
productExtensive
search, getting all information of products except version number. I have nearly 20 products.Is there any
service
available in document where I can get version number of all device available in serve.OR
Can
Custom attributes
serve my purpose?But no idea we can add
Custom attributes
payload groups level because device level is possible as we thousands of devices.-
Ericgit almost 4 years
String versionName = context.getPackageManager() .getPackageInfo(context.getPackageName(), 0).versionName
-
R15 almost 4 years@Code - Thanks for your input, I need it from vmware airwatch services.
-