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

# PATCH /v1/projects/{projectsId}/locations/{locationsId}/agentConnectivityTemplates/{agentConnectivityTemplatesId}

`PATCH /v1/projects/{projectsId}/locations/{locationsId}/agentConnectivityTemplates/{agentConnectivityTemplatesId}`

## Request

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

Updates the parameters of a single AgentConnectivityTemplate.

## Path parameters

- `projectsId` string, required
- `locationsId` string, required
- `agentConnectivityTemplatesId` 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
- `updateMask` string, google-fieldmask

## Request body

- AgentConnectivityTemplate: AgentConnectivityTemplate represents a reusable network configuration.
  - `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.

## Response `200`

Successful response

- Operation: This resource represents a long-running operation that is the result of a network API call.
  - `done` boolean: If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
  - `error` Status: The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
    - `code` integer: The status code, which should be an enum value of google.rpc.Code.
    - `details` object[]: A list of messages that carry the error details. There is a common set of message types for APIs to use.
    - `message` string: A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
  - `metadata` object: Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
  - `name` string: The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
  - `response` object: The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.

---

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