Method: enterprises.structures.rooms.list
Wyświetla listę pokoi zarządzanych przez firmę.
Żądanie HTTP
GET https://smartdevicemanagement.googleapis.com/v1/{parent=enterprises/*/structures/*}/rooms
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
parent |
string
Nazwa zasobu nadrzędnego żądanych sal. Na przykład: „firmy/XYZ/struktury/ABC”.
|
Treść żądania
Treść żądania musi być pusta.
Treść odpowiedzi
Komunikat z odpowiedzią na temat SmartDeviceManagementService.ListRooms
W przypadku powodzenia treść żądania zawiera dane o następującej strukturze:
Zapis JSON |
{
"rooms": [
{
object (Room )
}
]
} |
Pola |
rooms[] |
object (Room )
Lista pokoi.
|
Zakresy autoryzacji
Wymaga następującego zakresu OAuth:
https://www.googleapis.com/auth/sdm.service
Więcej informacji znajdziesz w artykule Omówienie protokołu OAuth 2.0.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-10-14 UTC.
[null,null,["Ostatnia aktualizacja: 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"]]