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

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

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

## Request

- Base URL: `https://agentidentity.googleapis.com`
- URL: `https://agentidentity.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/authProviders:query`
- 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 auth providers are used by a given workload ID.

## Path parameters

- `projectsId` string, required
- `locationsId` 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
- `workloadId` string

## Response `200`

Successful response

- QueryAuthProvidersResponse: Response message for `QueryAuthProviders`.
  - `authProviderNames` string[]: The unique list of auth provider resource names used by the workload.
  - `nextPageToken` string: A token identifying a page of results the server should return. If this field is omitted, there are no subsequent pages.

---

[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)
