Method: customers.policies.resolve

Gets the resolved policy values for a list of policies that match a search query.

HTTP request

POST https://chromepolicy.googleapis.com/v1/{customer=customers/*}/policies:resolve

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
customer

string

ID of the G Suite account or literal "my_customer" for the customer associated to the request.

Request body

The request body contains data with the following structure:

JSON representation
{
  "policySchemaFilter": string,
  "policyTargetKey": {
    object (PolicyTargetKey)
  },
  "pageSize": integer,
  "pageToken": string
}
Fields
policySchemaFilter

string

The schema filter to apply to the resolve request.

Specify a schema name to view a particular schema, for example: chrome.users.ShowLogoutButton

Wildcards are supported, but only in the leaf portion of the schema name. Wildcards cannot be used in namespace directly. Please read https://developers.google.com/chrome/chrome-management/guides/policyapi for details on schema namepsaces.

For example: Valid: "chrome.users.*", "chrome.users.apps.*", "chrome.printers.*" Invalid: "*", "*.users", "chrome.*", "chrome.*.apps.*"

policyTargetKey

object (PolicyTargetKey)

Required. The key of the target resource on which the policies should be resolved. The target resource must point to an Org Unit.

pageSize

integer

The maximum number of policies to return, defaults to 100 and has a maximum of 1000.

pageToken

string

The page token used to retrieve a specific page of the request.

Response body

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

Response message for getting the resolved policy value for a specific target.

JSON representation
{
  "resolvedPolicies": [
    {
      object (ResolvedPolicy)
    }
  ],
  "nextPageToken": string
}
Fields
resolvedPolicies[]

object (ResolvedPolicy)

The list of resolved policies found by the resolve request.

nextPageToken

string

The page token used to get the next set of resolved policies found by the request.

Authorization Scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/chrome.management.policy.readonly
  • https://www.googleapis.com/auth/chrome.management.policy

ResolvedPolicy

The resolved value of a policy for a given target.

JSON representation
{
  "targetKey": {
    object (PolicyTargetKey)
  },
  "value": {
    object (PolicyValue)
  },
  "sourceKey": {
    object (PolicyTargetKey)
  }
}
Fields
targetKey

object (PolicyTargetKey)

Output only. The target resource for which the resolved policy value applies.

value

object (PolicyValue)

Output only. The resolved value of the policy.

sourceKey

object (PolicyTargetKey)

Output only. The source resource from which this policy value is obtained. May be the same as targetKey if the policy is directly modified on the target, otherwise it would be another resource from which the policy gets its value (if applicable). If not present, the source is the default value for the customer.