Method: locations.workforcePools.list Stay organized with collections Save and categorize content based on your preferences.
- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Examples
- Try it!
Lists all non-deletedWorkforcePools under the specified parent. IfshowDeleted is set totrue, then deleted pools are also listed.
HTTP request
GET https://iam.googleapis.com/v1/{location=locations/*}/workforcePools
The URL usesgRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
location |
The location of the pool. Format: |
Query parameters
| Parameters | |
|---|---|
parent |
Required. The parent resource to list pools for. Format: |
pageSize |
The maximum number of pools to return. The default value is 50. The maximum value is 100. |
pageToken |
A page token, received from a previous |
showDeleted |
Whether to return soft-deleted pools. |
Request body
The request body must be empty.
Response body
Response message for workforcePools.list.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{"workforcePools":[{object ( |
| Fields | |
|---|---|
workforcePools[] |
A list of pools. |
nextPageToken |
A token, which can be sent as |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/iam
For more information, see theAuthentication Overview.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-18 UTC.