Method: enterprises.structures.rooms.list
Mencantumkan ruang yang dikelola oleh perusahaan.
Permintaan HTTP
GET https://smartdevicemanagement.googleapis.com/v1/{parent=enterprises/*/structures/*}/rooms
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
parent |
string
Nama resource induk dari ruang yang diminta. Misalnya: "perusahaan/XYZ/struktur/ABC".
|
Isi permintaan
Isi permintaan harus kosong.
Isi respons
Pesan respons untuk SmartDeviceManagementService.ListRooms
Jika berhasil, isi respons memuat data dengan struktur berikut:
Representasi JSON |
{
"rooms": [
{
object (Room )
}
]
} |
Kolom |
rooms[] |
object (Room )
Daftar ruang.
|
Cakupan otorisasi
Memerlukan cakupan OAuth berikut:
https://www.googleapis.com/auth/sdm.service
Untuk informasi selengkapnya, lihat Ringkasan OAuth 2.0.
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 2024-10-14 UTC.
[null,null,["Terakhir diperbarui pada 2024-10-14 UTC."],[[["Lists rooms managed by an enterprise within a specific structure."],["Requires an HTTP GET request to a structured URL containing the enterprise and structure IDs."],["An empty request body is necessary, while the response provides a list of rooms in JSON format."],["Authorization is required using the `https://www.googleapis.com/auth/sdm.service` OAuth scope."]]],["This document outlines the process for listing rooms within an enterprise using the Smart Device Management API. A `GET` request is sent to a specific URL containing the enterprise and structure identifiers in the `parent` path parameter. The request body must be empty. Successful requests return a JSON response containing a list of `rooms`, each detailed as an object. This action requires the `https://www.googleapis.com/auth/sdm.service` OAuth scope for authorization.\n"]]