Method: enterprises.policies.list

  • The documentation provides details on how to list policies for a given enterprise using an HTTP GET request.

  • The API call requires a parent path parameter specifying the enterprise ID and supports pageSize and pageToken query parameters for pagination.

  • The request body must be empty, and the response body contains a list of policies and an optional nextPageToken.

  • Access to this API requires the https://www.googleapis.com/auth/androidmanagement authorization scope.

Lists policies for a given enterprise.

HTTP request

GET https://androidmanagement.googleapis.com/v1/{parent=enterprises/*}/policies

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

The name of the enterprise in the form enterprises/{enterpriseId}.

Query parameters

Parameters
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.

Request body

The request body must be empty.

Response body

Response to a request to list policies for a given enterprise.

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

JSON representation
{
  "policies": [
    {
      object (Policy)
    }
  ],
  "nextPageToken": string
}
Fields
policies[]

object (Policy)

The list of policies.

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 the OAuth 2.0 Overview.