policies

GET /v1/policies

Changed on

List policies.

Request

  • Base URL
    https://cloudidentity.googleapis.com
  • Auth
    • OAuth 2 and OAuth 2
      Implicithttps://accounts.google.com/o/oauth2/auth
      Scopeshttps://www.googleapis.com/auth/cloud-identity.policies
      Authorization codehttps://accounts.google.com/o/oauth2/auth
      Token URLhttps://accounts.google.com/o/oauth2/token
      Scopeshttps://www.googleapis.com/auth/cloud-identity.policies
    • or OAuth 2 and OAuth 2
      Implicithttps://accounts.google.com/o/oauth2/auth
      Scopeshttps://www.googleapis.com/auth/cloud-identity.policies.readonly
      Authorization codehttps://accounts.google.com/o/oauth2/auth
      Token URLhttps://accounts.google.com/o/oauth2/token
      Scopeshttps://www.googleapis.com/auth/cloud-identity.policies.readonly

Query parameters

$.xgafv, '1' | '2'

V1 error format.

access_token, string

OAuth access token.

alt, 'json' | 'media' | 'proto'

Data format for response.

callback, string

JSONP

fields, string

Selector specifying which fields to include in a partial response.

key, string

API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.

oauth_token, string

OAuth 2.0 token for the current user.

prettyPrint, boolean

Returns response with indentations and line breaks.

quotaUser, string

Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

uploadType, string

Legacy upload protocol for media (e.g. "media", "multipart").

upload_protocol, string

Upload protocol for media (e.g. "raw", "multipart").

filter, string

Optional. A CEL expression for filtering the results. Policies can be filtered using the expression in the following ways: - Filter by application: setting.type.matches('^settings/gmail\\..*$') - Filter by setting type: setting.type.matches('^.*\\.service_status$') - Filter by customer: customer == "customers/{customer}" Where customer is the id from the Admin SDK Customer resource. You may use customers/my_customer to specify your own organization. When no customer is mentioned it will be default to customers/my_customer. You may only filter on policies for a single customer at a time. The above clauses can be combined together in a single filter expression with the && and || operators, like in the following example: customer == "customers/my_customer" && ( setting.type.matches('^settings/gmail\\..*$') || setting.type.matches('^.*\\.service_status$') ).

pageSize, integer

Optional. The maximum number of results to return. The service can return fewer than this number. If omitted or set to 0, the default is 50 results per page. The maximum allowed value is 100. page_size values greater than 100 default to 100.

pageToken, string

Optional. The pagination token received from a prior call to PoliciesService.ListPolicies to retrieve the next page of results. When paginating, all other parameters provided to ListPoliciesRequest must match the call that provided the page token.

Response

Successful response

ListPoliciesResponse required

The response message for PoliciesService.ListPolicies.

nextPageToken, string

The pagination token to retrieve the next page of results. If this field is empty, there are no subsequent pages.

policies, Policy[]

The results

Changes

    • info

      the security scope https://www.googleapis.com/auth/cloud-identity.policies was added to the endpoint's security scheme Oauth2

    • info

      the security scope https://www.googleapis.com/auth/cloud-identity.policies was added to the endpoint's security scheme Oauth2c

    • info

      the security scope https://www.googleapis.com/auth/cloud-identity.policies.readonly was removed from the endpoint's security scheme Oauth2

    1 more change in this revision