Method: enterprises.structures.rooms.list
Kuruluş tarafından yönetilen odaları listeler.
HTTP isteği
GET https://smartdevicemanagement.googleapis.com/v1/{parent=enterprises/*/structures/*}/rooms
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
parent |
string
İstenen odaların üst kaynak adı. Örneğin: "enterprises/XYZ/structures/ABC".
|
İstek içeriği
İstek metni boş olmalıdır.
Yanıt gövdesi
SmartDeviceManagementService.ListRooms için yanıt mesajı
Başarılı olursa yanıt metni aşağıdaki yapıyla birlikte verileri içerir:
JSON gösterimi |
{
"rooms": [
{
object (Room )
}
]
} |
Alanlar |
rooms[] |
object (Room )
Oda listesi.
|
Yetkilendirme kapsamları
Aşağıdaki OAuth kapsamını gerektirir:
https://www.googleapis.com/auth/sdm.service
Daha fazla bilgi için OAuth 2.0 Overview (OAuth 2.0'a Genel Bakış) sayfasına göz atın.
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-10-14 UTC.
[null,null,["Son güncelleme tarihi: 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"]]