# Method: projects.platforms.list

- [HTTP request](https://docs.cloud.google.com/binary-authorization/docs/reference/rest/v1/projects.platforms/list#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/binary-authorization/docs/reference/rest/v1/projects.platforms/list#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/binary-authorization/docs/reference/rest/v1/projects.platforms/list#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/binary-authorization/docs/reference/rest/v1/projects.platforms/list#body.request_body)
- [Response body](https://docs.cloud.google.com/binary-authorization/docs/reference/rest/v1/projects.platforms/list#body.response_body)
  - [JSON representation](https://docs.cloud.google.com/binary-authorization/docs/reference/rest/v1/projects.platforms/list#body.ListPlatformsResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://docs.cloud.google.com/binary-authorization/docs/reference/rest/v1/projects.platforms/list#body.aspect)
- [Platform](https://docs.cloud.google.com/binary-authorization/docs/reference/rest/v1/projects.platforms/list#Platform)
  - [JSON representation](https://docs.cloud.google.com/binary-authorization/docs/reference/rest/v1/projects.platforms/list#Platform.SCHEMA_REPRESENTATION)

Lists all platforms supported by a platform policy.

### HTTP request

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

The URL uses [gRPC Transcoding](https://google.aip.dev/127) 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 `https://docs.cloud.google.com/binary-authorization/docs/reference/rest/v1/projects.platforms/list#body.ListPlatformsResponse.FIELDS.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 `https://docs.cloud.google.com/binary-authorization/docs/reference/rest/v1/projects.platforms/list#google.cloud.binaryauthorization.v1.PlatformPolicyManagementService.ListPlatforms`.

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

| JSON representation |
|---|
| ``` { "platforms": [ { object (`https://docs.cloud.google.com/binary-authorization/docs/reference/rest/v1/projects.platforms/list#Platform`) } ], "nextPageToken": string } ``` |

| Fields ||
|---|---|
| `platforms[]` | ``object (`https://docs.cloud.google.com/binary-authorization/docs/reference/rest/v1/projects.platforms/list#Platform`)`` The list of `https://docs.cloud.google.com/binary-authorization/docs/reference/rest/v1/projects.platforms/list#Platform` supported by Binary Authorization. |
| `nextPageToken` | `string` A token to retrieve the next page of results. Pass this value in the `https://docs.cloud.google.com/binary-authorization/docs/reference/rest/v1/projects.platforms/list#body.QUERY_PARAMETERS.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](https://cloud.google.com/docs/authentication/).

## Platform

A `https://docs.cloud.google.com/binary-authorization/docs/reference/rest/v1/projects.platforms/list#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/*`. |