Method: projects.platforms.policies.list

Lists platform policies owned by a project in the specified platform. Returns INVALID_ARGUMENT if the project or the platform doesn't exist.

HTTP request

GET https://binaryauthorization.googleapis.com/v1/{parent=projects/*/platforms/*}/policies

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The resource name of the platform associated with the platform policies using the format projects/*/platforms/*.

Authorization requires the following IAM permission on the specified resource parent:

  • binaryauthorization.platformPolicies.list

Query parameters

Parameters
pageSize

integer

Requested page size. The server may return fewer results than requested. If unspecified, the server picks an appropriate default.

pageToken

string

A token identifying a page of results the server should return. Typically, this is the value of ListPlatformPoliciesResponse.next_page_token returned from the previous call to the policies.list method.

Request body

The request body must be empty.

Response body

Response message for PlatformPolicyManagementService.ListPlatformPolicies.

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

JSON representation
{
  "platformPolicies": [
    {
      object (PlatformPolicy)
    }
  ],
  "nextPageToken": string
}
Fields
platformPolicies[]

object (PlatformPolicy)

The list of platform policies.

nextPageToken

string

A token to retrieve the next page of results. Pass this value in the ListPlatformPoliciesRequest.page_token field in the subsequent call to the policies.list method to retrieve the next page of results.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.