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

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

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

## Request

- Base URL: `https://networkservices.googleapis.com`
- URL: `https://networkservices.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/agentConnectivityTemplates`
- 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 AgentConnectivityTemplates 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
- `pageSize` integer
- `pageToken` string
- `returnPartialSuccess` boolean

## Response `200`

Successful response

- ListAgentConnectivityTemplatesResponse: Response returned by the ListAgentConnectivityTemplates method.
  - `agentConnectivityTemplates` AgentConnectivityTemplate[]: List of AgentConnectivityTemplate resources.
    - `accessPath` 'ACCESS_PATH_UNSPECIFIED' | 'CLIENT_TO_AGENT' | 'AGENT_TO_ANYWHERE': Optional. Immutable. The path of the access. Maps roughly to ingress/egress, though we keep CLIENT_TO_AGENT and AGENT_TO_ANYWHERE as carryovers from Agent Gateway's original resource model. The path is immutable once set. Exactly one path can be set.
    - `accessTypes` string[]: Optional. The types of network access provided to the gateway. Both PUBLIC and PRIVATE can be configured.
    - `agentCompute` 'AGENT_COMPUTE_UNSPECIFIED' | 'GKE' | 'CLOUD_RUN' | 'BORG' | 'GCE_VM': Optional. The compute environment where the agent is hosted. Exactly one type of compute must be chosen.
    - `createTime` string, google-datetime: Output only. The timestamp when the resource was created.
    - `deploymentModel` 'DEPLOYMENT_MODEL_UNSPECIFIED' | 'CENTRALIZED' | 'AMBIENT': Optional. The deployment model for the gateway.
    - `description` string: Optional. A free-text description of the resource. Max length 1024 characters.
    - `egressNetworkConfig` EgressNetworkConfig: Egress network config
      - `dnsPeeringConfig` DnsPeeringConfig: DNS Peering configuration.
        - `domain` string: Optional. Deprecated: Use `domains` instead. The domain to peer.
        - `domains` string[]: Optional. The domains to peer.
        - `targetNetwork` string: Optional. The target network resource name for DNS peering. Format: projects/{project}/global/networks/{network_id}
      - `networkAttachment` string: Optional. The network attachment resource name. Format: projects/{project}/regions/{region}/networkAttachments/{network_attachment_id}
      - `tlsConfig` EgressNetworkConfigTlsConfig: Configuration for TLS connections.
        - `additionalRoots` 'ADDITIONAL_ROOTS_UNSPECIFIED' | 'NO_ADDITIONAL_ROOTS' | 'PUBLICLY_TRUSTED_ROOTS': Optional. The additional roots to trust.
        - `trustConfig` string: Optional. The trust config resource name. Format: projects/{project}/locations/{location}/trustConfigs/{trust_config}
      - `trustConfig` string: Optional. Deprecated: Use tls_config instead. The trust config resource name. Format: projects/{project}/locations/{location}/trustConfigs/{trust_config}
      - `vpcEgress` 'VPC_EGRESS_UNSPECIFIED' | 'ALL_TRAFFIC' | 'PRIVATE_RANGES_ONLY': Optional. The VPC egress setting.
    - `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.
    - `labels` object: Optional. Set of label tags associated with the AgentConnectivityTemplate resource.
    - `name` string: Identifier. Name of the AgentConnectivityTemplate resource. It matches pattern `projects/*/locations/*/agentConnectivityTemplates/`.
    - `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[]: Unordered list. 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)
