Method: enterprises.structures.rooms.list

Lists rooms managed by the enterprise.

HTTP request

GET https://smartdevicemanagement.googleapis.com/v1/{parent=enterprises/*/structures/*}/rooms

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

The parent resource name of the rooms requested. For example: "enterprises/XYZ/structures/ABC".

Query parameters

Parameters
pageSize

integer

Requested page size. Server may return fewer rooms than requested. If unspecified, server will pick an appropriate default.

pageToken

string

The token of the page to retrieve.

Request body

The request body must be empty.

Response body

If successful, the response body contains data with the following structure:

Response message for SmartDeviceManagementService.ListRooms

JSON representation
{
  "rooms": [
    {
      object (Room)
    }
  ],
  "nextPageToken": string
}
Fields
rooms[]

object (Room)

The list of rooms.

nextPageToken

string

The pagination token to retrieve the next page of results.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/sdm.service

For more information, see the OAuth 2.0 Overview.