---
title: "GET /v1/projects/{projectsId}/locations/{locationsId}/authProviders/{authProvidersId}:queryWorkloads"
method: GET
path: "/v1/projects/{projectsId}/locations/{locationsId}/authProviders/{authProvidersId}:queryWorkloads"
tags: ["projects"]
---

# GET /v1/projects/{projectsId}/locations/{locationsId}/authProviders/{authProvidersId}:queryWorkloads

`GET /v1/projects/{projectsId}/locations/{locationsId}/authProviders/{authProvidersId}:queryWorkloads`

## Request

- Base URL: `https://agentidentity.googleapis.com`
- URL: `https://agentidentity.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/authProviders/{authProvidersId}:queryWorkloads`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/cloud-platform`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`

Queries which workloads are using a given auth provider.

## Path parameters

- `projectsId` string, required
- `locationsId` string, required
- `authProvidersId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string
- `pageSize` integer
- `pageToken` string

## Response `200`

Successful response

- QueryWorkloadsResponse: Response message for `QueryWorkloads`.
  - `nextPageToken` string: A token to retrieve the next page of results.
  - `workloadIds` string[]: The unique list of identifiers for the agents that used this auth provider, starting with `principal://`.

---

[API](https://skmtc.dev/google/apis/agentidentity.md) - [All operations](https://skmtc.dev/google/apis/agentidentity/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/agentidentity/revisions/f532280f07f9?raw)
