Skip to main content

agent_gateways

Creates, updates, deletes, gets or lists an agent_gateways resource.

Overview

Nameagent_gateways
TypeResource
Idgoogle.networkservices.agent_gateways

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. Name of the AgentGateway resource. It matches pattern projects/*/locations/*/agentGateways/.
agentGatewayCardobjectOutput only. Field for populated AgentGateway card. (id: AgentGatewayAgentGatewayOutputCard)
createTimestring (google-datetime)Output only. The timestamp when the resource was created.
descriptionstringOptional. A free-text description of the resource. Max length 1024 characters.
etagstringOptional. 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.
googleManagedobjectOptional. Proxy is orchestrated and managed by GoogleCloud in a tenant project. (id: AgentGatewayGoogleManaged)
labelsobjectOptional. Set of label tags associated with the AgentGateway resource.
networkConfigobjectOptional. Network configuration for the AgentGateway. (id: AgentGatewayNetworkConfig)
protocolsarrayOptional. Deprecated.
registriesarrayOptional. 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}/
selfManagedobjectOptional. Attach to existing Application Load Balancers or Secure Web Proxies. (id: AgentGatewaySelfManaged)
updateTimestring (google-datetime)Output only. The timestamp when the resource was updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, agentGatewaysIdGets details of a single AgentGateway.
listselectprojectsId, locationsIdpageSize, pageToken, returnPartialSuccessLists AgentGateways in a given project and location.
createinsertprojectsId, locationsIdagentGatewayIdCreates a new AgentGateway in a given project and location.
patchupdateprojectsId, locationsId, agentGatewaysIdupdateMaskUpdates the parameters of a single AgentGateway.
deletedeleteprojectsId, locationsId, agentGatewaysIdetagDeletes a single AgentGateway.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
agentGatewaysIdstring
locationsIdstring
projectsIdstring
agentGatewayIdstring
etagstring
pageSizeinteger (int32)
pageTokenstring
returnPartialSuccessboolean
updateMaskstring (google-fieldmask)

SELECT examples

Gets details of a single AgentGateway.

SELECT
name,
agentGatewayCard,
createTime,
description,
etag,
googleManaged,
labels,
networkConfig,
protocols,
registries,
selfManaged,
updateTime
FROM google.networkservices.agent_gateways
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND agentGatewaysId = '{{ agentGatewaysId }}' -- required
;

INSERT examples

Creates a new AgentGateway in a given project and location.

INSERT INTO google.networkservices.agent_gateways (
data__googleManaged,
data__selfManaged,
data__name,
data__labels,
data__description,
data__etag,
data__protocols,
data__registries,
data__networkConfig,
projectsId,
locationsId,
agentGatewayId
)
SELECT
'{{ googleManaged }}',
'{{ selfManaged }}',
'{{ name }}',
'{{ labels }}',
'{{ description }}',
'{{ etag }}',
'{{ protocols }}',
'{{ registries }}',
'{{ networkConfig }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ agentGatewayId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates the parameters of a single AgentGateway.

UPDATE google.networkservices.agent_gateways
SET
data__googleManaged = '{{ googleManaged }}',
data__selfManaged = '{{ selfManaged }}',
data__name = '{{ name }}',
data__labels = '{{ labels }}',
data__description = '{{ description }}',
data__etag = '{{ etag }}',
data__protocols = '{{ protocols }}',
data__registries = '{{ registries }}',
data__networkConfig = '{{ networkConfig }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND agentGatewaysId = '{{ agentGatewaysId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes a single AgentGateway.

DELETE FROM google.networkservices.agent_gateways
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND agentGatewaysId = '{{ agentGatewaysId }}' --required
AND etag = '{{ etag }}'
;