Method: enterprises.structures.rooms.list
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
اتاق های مدیریت شده توسط شرکت را فهرست می کند.
درخواست HTTP
GET https://smartdevicemanagement.googleapis.com/v1/{parent=enterprises/*/structures/*}/rooms
URL از دستور GRPC Transcoding استفاده می کند.
پارامترهای مسیر
پارامترها |
---|
parent | string نام منبع اصلی اتاقهای درخواستی. به عنوان مثال: "شرکت ها/XYZ/structures/ABC". |
درخواست بدن
بدنه درخواست باید خالی باشد.
بدن پاسخگو
پیام پاسخ برای SmartDeviceManagementService.ListRooms
در صورت موفقیت آمیز بودن، بدنه پاسخ حاوی داده هایی با ساختار زیر است:
نمایندگی JSON |
---|
{
"rooms": [
{
object (Room )
}
]
} |
فیلدها |
---|
rooms[] | object ( Room ) لیست اتاق ها |
محدوده مجوز
به محدوده OAuth زیر نیاز دارد:
-
https://www.googleapis.com/auth/sdm.service
برای اطلاعات بیشتر، به نمای کلی OAuth 2.0 مراجعه کنید.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2025-07-25 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eLists rooms managed by an enterprise within a specific structure.\u003c/p\u003e\n"],["\u003cp\u003eRequires an HTTP GET request to a structured URL containing the enterprise and structure IDs.\u003c/p\u003e\n"],["\u003cp\u003eAn empty request body is necessary, while the response provides a list of rooms in JSON format.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization is required using the \u003ccode\u003ehttps://www.googleapis.com/auth/sdm.service\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],["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"],null,["- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ListRoomsResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Examples](#examples)\n\nLists rooms managed by the enterprise.\n\nHTTP request\n\n`GET https://smartdevicemanagement.googleapis.com/v1/{parent=enterprises/*/structures/*}/rooms`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\nPath parameters\n\n| Parameters ||\n|----------|----------------------------------------------------------------------------------------------------------|\n| `parent` | `string` The parent resource name of the rooms requested. For example: \"enterprises/XYZ/structures/ABC\". |\n\nRequest body\n\nThe request body must be empty.\n\nResponse body Response message for SmartDeviceManagementService.ListRooms\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------|\n| ``` { \"rooms\": [ { object (/nest/device-access/reference/rest/v1/enterprises.structures.rooms#Room) } ] } ``` |\n\n| Fields ||\n|-----------|-----------------------------------------------------------------------------------------------------------------|\n| `rooms[]` | `object (`[Room](/nest/device-access/reference/rest/v1/enterprises.structures.rooms#Room)`)` The list of rooms. |\n\nAuthorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/sdm.service`\n\nFor more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2)."]]