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

# GET /v1/projects/{projectsId}/locations/{locationsId}/agentGateways

`GET /v1/projects/{projectsId}/locations/{locationsId}/agentGateways`

## Request

- Base URL: `https://networkservices.googleapis.com`
- URL: `https://networkservices.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/agentGateways`
- 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`

Lists AgentGateways in a given project and location.

## 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
- `filter` string
- `pageSize` integer
- `pageToken` string
- `returnPartialSuccess` boolean

## Response `200`

Successful response

- ListAgentGatewaysResponse: Response returned by the ListAgentGateways method.
  - `agentGateways` AgentGateway[]: List of AgentGateway resources.
    - `agentConnectivityTemplate` string: Optional. The resource name of the AgentConnectivityTemplate. Format: projects/{project}/locations/{location}/agentConnectivityTemplates/{template}
    - `agentGatewayCard` AgentGatewayAgentGatewayOutputCard: AgentGatewayOutputCard contains informational output-only fields
      - `mtlsEndpoint` string: Output only. mTLS Endpoint associated with this AgentGateway
      - `rootCertificates` string[]: Output only. Root Certificates for Agents to validate this AgentGateway
      - `serviceExtensionsServiceAccount` string: Output only. Service Account used by Service Extensions to operate.
    - `createTime` string, google-datetime: Output only. The timestamp when the resource was created.
    - `description` string: Optional. A free-text description of the resource. Max length 1024 characters.
    - `etag` string: Optional. Etag of the resource. If this is provided, it must match the server's etag. If the provided etag does not match the server's etag, the request will fail with a 409 ABORTED error.
    - `googleManaged` AgentGatewayGoogleManaged: Configuration for Google Managed deployment mode. Proxy is orchestrated and managed by GoogleCloud in a tenant project.
      - `governedAccessPath` 'GOVERNED_ACCESS_PATH_UNSPECIFIED' | 'AGENT_TO_ANYWHERE' | 'CLIENT_TO_AGENT': Optional. Operating Mode of Agent Gateway.
    - `labels` object: Optional. Set of label tags associated with the AgentGateway resource.
    - `name` string: Identifier. Name of the AgentGateway resource. It matches pattern `projects/*/locations/*/agentGateways/`.
    - `networkConfig` AgentGatewayNetworkConfig: NetworkConfig contains network configurations for the AgentGateway.
      - `dnsPeeringConfig` AgentGatewayNetworkConfigDnsPeeringConfig: DNS peering config for the user VPC network.
        - `domains` string[]: Required. Domain names for which DNS queries should be forwarded to the target network.
        - `targetNetwork` string: Required. Target network in 'target project' to which DNS queries should be forwarded to. Must be in format of `projects/{project}/global/networks/{network}`.
        - `targetProject` string: Required. Target project ID to which DNS queries should be forwarded to. This can be the same project that contains the AgentGateway or a different project.
      - `egress` AgentGatewayNetworkConfigEgress: Configuration for Egress
        - `networkAttachment` string: Optional. The URI of the Network Attachment resource.
    - `protocols` string[]: Optional. Deprecated.
    - `registries` string[]: Optional. A list of Agent registries containing the agents, MCP servers and tools governed by the Agent Gateway. Note: Currently limited to project-scoped registries Must be of format `//agentregistry.googleapis.com/projects/{project}/locations/{location}/`
    - `selfManaged` AgentGatewaySelfManaged: Configuration for Self Managed deployment mode. Attach to existing Application Load Balancers or Secure Web Proxies.
      - `resourceUri` string: Optional. A supported Google Cloud networking proxy in the Project and Location
      - `resourceUris` string[]: Optional. List of supported Google Cloud networking proxies in the Project and Location. resource_uris is mutually exclusive with resource_uri.
    - `updateTime` string, google-datetime: Output only. The timestamp when the resource was updated.
  - `nextPageToken` string: If there might be more results than those appearing in this response, then `next_page_token` is included. To get the next set of results, call this method again using the value of `next_page_token` as `page_token`.
  - `unreachable` string[]: Unreachable resources. Populated when the request attempts to list all resources across all supported locations, while some locations are temporarily unavailable.

---

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