如何获取使用 Android 管理 API 的设备 ID?

How to get Device id for using Android Management API?

我正在尝试使用 Android 管理 API 为 MDM 构建应用程序。 但是我找不到 API 来创建设备 ID。 如何获取使用 Android 管理 API 的设备 ID?

注册成功后生成deviceId。您可以使用 Devices.list after enrollment. The deviceId is stored in the name field in the form enterprises/{enterpriseId}/devices/{deviceId} you can check the Device 资源列出设备以获取更多信息。