Method: enterprises.structures.rooms.list
Liệt kê các phòng do doanh nghiệp quản lý.
Yêu cầu HTTP
GET https://smartdevicemanagement.googleapis.com/v1/{parent=enterprises/*/structures/*}/rooms
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Tham số |
parent |
string
Tên tài nguyên chính của các phòng được yêu cầu. Ví dụ: "enterprises/XYZ/structures/ABC".
|
Nội dung yêu cầu
Nội dung yêu cầu phải trống.
Nội dung phản hồi
Thông báo phản hồi cho SmartDeviceManagementService.ListRooms
Nếu thành công, phần nội dung phản hồi sẽ chứa dữ liệu có cấu trúc sau:
Biểu diễn dưới dạng JSON |
{
"rooms": [
{
object (Room )
}
]
} |
Trường |
rooms[] |
object (Room )
Danh sách phòng.
|
Phạm vi uỷ quyền
Yêu cầu phạm vi OAuth sau:
https://www.googleapis.com/auth/sdm.service
Để biết thêm thông tin, hãy xem bài viết Tổng quan về OAuth 2.0.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2024-10-14 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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"]]