Method: projects.platforms.list

Lists all platforms supported by a platform policy.

HTTP request

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

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. Contains the name of the resource requested, specified using the format projects/*.

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 ListPlatformsResponse.next_page_token returned from the previous call to the platforms.list method.

Request body

The request body must be empty.

Response body

Response message for PlatformPolicyManagementService.ListPlatforms.

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

JSON representation
{
  "platforms": [
    {
      object (Platform)
    }
  ],
  "nextPageToken": string
}
Fields
platforms[]

object (Platform)

The list of platforms supported by Binary Authorization.

nextPageToken

string

A token to retrieve the next page of results. Pass this value in the ListPlatformsRequest.page_token field in the subsequent call to the platforms.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.

Platform

A platform supported by Binary Authorization platform policy.

JSON representation
{
  "name": string
}
Fields
name

string

Output only. The relative resource name of the platform supported by Binary Authorization platform policies, in the form of projects/*/platforms/*.