Smart Device Management API
允许特定企业合作伙伴以编程方式访问、控制和管理 Google 和 Nest 设备。
服务:smartdevicemanagement.googleapis.com
要调用此服务,我们建议您使用 Google 提供的客户端库。如果您的应用程序需要使用自己的库来调用此服务,请在发出 API 请求时使用以下信息。
发现文档
发现文档是用于说明和使用 REST API 的机器可读规范。它用于构建客户端库、IDE 插件以及与 Google API 交互的其他工具。一项服务可能会提供多个发现文档。此服务提供了以下发现文档:
服务端点
服务端点是指定 API 服务的网络地址的基本网址。一项服务可能有多个服务端点。此服务具有以下服务端点,下面的所有 URI 都与此服务端点相关:
https://smartdevicemanagement.googleapis.com
方法 |
executeCommand |
POST /v1/{name=enterprises/*/devices/*}:executeCommand
对企业管理的设备执行命令。 |
get |
GET /v1/{name=enterprises/*/devices/*}
获取由企业管理的设备。 |
list |
GET /v1/{parent=enterprises/*}/devices
列出由企业管理的设备。 |
方法 |
get |
GET /v1/{name=enterprises/*/structures/*}
获取由企业管理的结构。 |
list |
GET /v1/{parent=enterprises/*}/structures
列出由企业管理的结构。 |
方法 |
get |
GET /v1/{name=enterprises/*/structures/*/rooms/*}
获取由企业管理的会议室。 |
list |
GET /v1/{parent=enterprises/*/structures/*}/rooms
列出由企业管理的会议室。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-08-10。
[null,null,["最后更新时间 (UTC):2024-08-10。"],[[["The Smart Device Management API enables select enterprise partners to programmatically access, control, and manage Google and Nest devices."],["Developers can utilize the provided REST resources for interacting with devices, structures, and rooms within the enterprise environment."],["The API offers methods for executing commands on devices, retrieving device details, and listing devices, structures, and rooms."],["Google-provided client libraries are recommended for seamless integration with the service."],["A discovery document and service endpoint are available to facilitate interaction with the API."]]],["Enterprise partners can use the `smartdevicemanagement.googleapis.com` service to interact with Google and Nest devices. This involves using REST APIs to manage devices, structures, and rooms. Key actions include: executing commands on devices via `executeCommand`, retrieving device details with `get`, and listing devices via `list`. Additionally, structures and rooms can be accessed and listed using `get` and `list` methods. The service uses a discovery document and a defined service endpoint for interaction.\n"]]