Smart Device Management API
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Mengizinkan partner perusahaan tertentu untuk mengakses, mengontrol, dan mengelola perangkat Google dan Nest secara terprogram.
Layanan: smartdevicemanagement.googleapis.com
Untuk memanggil layanan ini, sebaiknya gunakan library klien yang disediakan Google. Jika aplikasi Anda perlu menggunakan library Anda sendiri untuk memanggil layanan ini, gunakan informasi berikut saat membuat permintaan API.
Dokumen discovery
Dokumen Discovery adalah spesifikasi yang dapat dibaca komputer untuk mendeskripsikan dan menggunakan REST API. Dokumen ini digunakan untuk membuat library klien, plugin IDE, dan alat lainnya yang berinteraksi dengan Google API. Satu layanan dapat menyediakan beberapa dokumen discovery. Layanan ini menyediakan dokumen discovery berikut:
Endpoint layanan
Endpoint layanan adalah URL dasar yang menentukan alamat jaringan layanan API. Satu layanan mungkin memiliki beberapa endpoint layanan. Layanan ini memiliki endpoint layanan berikut dan semua URI di bawah berhubungan dengan endpoint layanan ini:
https://smartdevicemanagement.googleapis.com
Metode |
executeCommand |
POST /v1/{name=enterprises/*/devices/*}:executeCommand
Menjalankan perintah ke perangkat yang dikelola oleh perusahaan. |
get |
GET /v1/{name=enterprises/*/devices/*}
Mendapatkan perangkat yang dikelola oleh perusahaan. |
list |
GET /v1/{parent=enterprises/*}/devices
Mencantumkan perangkat yang dikelola oleh perusahaan. |
Metode |
get |
GET /v1/{name=enterprises/*/structures/*}
Mendapatkan struktur yang dikelola oleh perusahaan. |
list |
GET /v1/{parent=enterprises/*}/structures
Mencantumkan struktur yang dikelola oleh perusahaan. |
Metode |
get |
GET /v1/{name=enterprises/*/structures/*/rooms/*}
Mendapatkan ruang yang dikelola oleh perusahaan. |
list |
GET /v1/{parent=enterprises/*/structures/*}/rooms
Mencantumkan ruang yang dikelola oleh perusahaan. |
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-25 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-07-25 UTC."],[[["\u003cp\u003eThe Smart Device Management API enables select enterprise partners to programmatically access, control, and manage Google and Nest devices.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can utilize the provided REST resources for interacting with devices, structures, and rooms within the enterprise environment.\u003c/p\u003e\n"],["\u003cp\u003eThe API offers methods for executing commands on devices, retrieving device details, and listing devices, structures, and rooms.\u003c/p\u003e\n"],["\u003cp\u003eGoogle-provided client libraries are recommended for seamless integration with the service.\u003c/p\u003e\n"],["\u003cp\u003eA discovery document and service endpoint are available to facilitate interaction with the API.\u003c/p\u003e\n"]]],["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"],null,["Allow select enterprise partners to access, control, and manage Google and Nest devices programmatically.\n\n- [REST Resource: v1.enterprises.devices](#v1.enterprises.devices)\n- [REST Resource: v1.enterprises.structures](#v1.enterprises.structures)\n- [REST Resource: v1.enterprises.structures.rooms](#v1.enterprises.structures.rooms)\n\nService: smartdevicemanagement.googleapis.com\n\nTo call this service, we recommend that you use the Google-provided [client libraries](https://cloud.google.com/apis/docs/client-libraries-explained). If your application needs to use your own libraries to call this service, use the following information when you make the API requests.\n\nDiscovery document\n\nA [Discovery Document](https://developers.google.com/discovery/v1/reference/apis) is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery document:\n\n- \u003chttps://smartdevicemanagement.googleapis.com/$discovery/rest?version=v1\u003e\n\nService endpoint \n\nA [service endpoint](https://cloud.google.com/apis/design/glossary#api_service_endpoint) is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:\n\n- `https://smartdevicemanagement.googleapis.com`\n\nREST Resource: [v1.enterprises.devices](/nest/device-access/reference/rest/v1/enterprises.devices)\n\n| Methods ||\n|--------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------|\n| [executeCommand](/nest/device-access/reference/rest/v1/enterprises.devices/executeCommand) | `POST /v1/{name=enterprises/*/devices/*}:executeCommand` Executes a command to device managed by the enterprise. |\n| [get](/nest/device-access/reference/rest/v1/enterprises.devices/get) | `GET /v1/{name=enterprises/*/devices/*}` Gets a device managed by the enterprise. |\n| [list](/nest/device-access/reference/rest/v1/enterprises.devices/list) | `GET /v1/{parent=enterprises/*}/devices` Lists devices managed by the enterprise. |\n\nREST Resource: [v1.enterprises.structures](/nest/device-access/reference/rest/v1/enterprises.structures)\n\n| Methods ||\n|---------------------------------------------------------------------------|-----------------------------------------------------------------------------------------|\n| [get](/nest/device-access/reference/rest/v1/enterprises.structures/get) | `GET /v1/{name=enterprises/*/structures/*}` Gets a structure managed by the enterprise. |\n| [list](/nest/device-access/reference/rest/v1/enterprises.structures/list) | `GET /v1/{parent=enterprises/*}/structures` Lists structures managed by the enterprise. |\n\nREST Resource: [v1.enterprises.structures.rooms](/nest/device-access/reference/rest/v1/enterprises.structures.rooms)\n\n| Methods ||\n|---------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------|\n| [get](/nest/device-access/reference/rest/v1/enterprises.structures.rooms/get) | `GET /v1/{name=enterprises/*/structures/*/rooms/*}` Gets a room managed by the enterprise. |\n| [list](/nest/device-access/reference/rest/v1/enterprises.structures.rooms/list) | `GET /v1/{parent=enterprises/*/structures/*}/rooms` Lists rooms managed by the enterprise. |"]]