Method: enterprises.list

  • This document details the HTTP request, query parameters, request body, and response body for listing EMM-managed enterprises.

  • The HTTP request uses a GET method tohttps://androidmanagement.googleapis.com/v1/enterprises.

  • Query parameters includeprojectId (required),pageSize,pageToken, andview, which is limited toBASIC.

  • The request body must be empty, and the successful response body contains a list of enterprises and anextPageToken.

  • Authorization requires thehttps://www.googleapis.com/auth/androidmanagement OAuth scope.

Lists EMM-managed enterprises. OnlyBASIC fields are returned.

HTTP request

GET https://androidmanagement.googleapis.com/v1/enterprises

The URL usesgRPC Transcoding syntax.

Query parameters

Parameters
projectId

string

Required. The Cloud project ID of the EMM managing the enterprises.

pageSize

integer

The requested page size. The actual page size may be fixed to a min or max value.

pageToken

string

A token identifying a page of results returned by the server.

view

enum (EnterpriseView)

Specifies which Enterprise fields to return. This method only supportsBASIC.

Request body

The request body must be empty.

Response body

Response to a request to list enterprises.

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

JSON representation
{"enterprises":[{object (Enterprise)}],"nextPageToken":string}
Fields
enterprises[]

object (Enterprise)

The list of enterprises.

nextPageToken

string

If there are more results, a token to retrieve next page of results.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/androidmanagement

For more information, see theOAuth 2.0 Overview.

EnterpriseView

Specifies which Enterprise fields to return.

Enums
ENTERPRISE_VIEW_UNSPECIFIEDThe API will default to the BASIC view for the List method.
BASICIncludes name and enterpriseDisplayName fields.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-02-19 UTC.