Forum Discussion
Can I use androiddeviceprovisioning.googleapis.com as a customer ?
I've made some progress \o/
Thanks to your link, I found the "Customer" section of the API documentation (I'm not very used to browse Google API Documentation 😅) :
https://developers.google.com/zero-touch/reference/customer/rest
Using that documentation, I successfully executed a query in C# with the provided code here :
https://developers.google.com/zero-touch/guides/customer/quickstart/dotnet
Afterwards, I attempted to modify the code to list my devices (instead of DPCs). However, despite repeated attempts, I failed to do so until I finally discovered that I needed to limit the results by providing a query parameter "pageSize" or a "nextPageToken" if the result exceeds a limit (which appears to be 100 devices).
I am more confortable with Powershell, so I attempted to achieve the same task in PowerShell. I successfully executed a query of my configurations with this URI:
https://androiddeviceprovisioning.googleapis.com/v1/customers/mucustomerID/devices?pageSize=100
Now I need to code a search tool to find a device in the list and a function to apply one of our MDM configurations to a device. However, now that I have the underlying logic, it should be easier. The concept of "nextPageToken" still remains mysterious for now. I need to investigate how to query all my devices and not just 100 of them. I will share my findings here once I have more time to investigate further.
Have a nice day,
Pierre from France
Related Content
- 10 months ago