Skip to main content

agent_connectivity_templates

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

Overview​

Nameagent_connectivity_templates
TypeResource
Idgoogle.networkservices.agent_connectivity_templates

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringIdentifier. Name of the AgentConnectivityTemplate resource. It matches pattern projects/*/locations/*/agentConnectivityTemplates/.
accessPathstringRequired. 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. (ACCESS_PATH_UNSPECIFIED, CLIENT_TO_AGENT, AGENT_TO_ANYWHERE)
accessTypesarrayOptional. The types of network access provided to the gateway. Both PUBLIC and PRIVATE can be configured.
agentComputestringOptional. The compute environment where the agent is hosted. Exactly one type of compute must be chosen. (AGENT_COMPUTE_UNSPECIFIED, GKE, CLOUD_RUN, BORG)
createTimestring (google-datetime)Output only. The timestamp when the resource was created.
deploymentModelstringRequired. The deployment model for the gateway. (DEPLOYMENT_MODEL_UNSPECIFIED, CENTRALIZED, AMBIENT)
descriptionstringOptional. A free-text description of the resource. Max length 1024 characters.
egressNetworkConfigobjectOptional. Configuration for egress network traffic. (id: EgressNetworkConfig)
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.
labelsobjectOptional. Set of label tags associated with the AgentConnectivityTemplate resource.
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, agentConnectivityTemplatesIdGets details of a single AgentConnectivityTemplate.
listselectprojectsId, locationsIdpageSize, pageToken, returnPartialSuccessLists AgentConnectivityTemplates in a given project and location.
createinsertprojectsId, locationsIdagentConnectivityTemplateIdCreates a new AgentConnectivityTemplate in a given project and location.
patchupdateprojectsId, locationsId, agentConnectivityTemplatesIdupdateMaskUpdates the parameters of a single AgentConnectivityTemplate.
deletedeleteprojectsId, locationsId, agentConnectivityTemplatesIdetagDeletes a single AgentConnectivityTemplate.

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
agentConnectivityTemplatesIdstring
locationsIdstring
projectsIdstring
agentConnectivityTemplateIdstring
etagstring
pageSizeinteger (int32)
pageTokenstring
returnPartialSuccessboolean
updateMaskstring (google-fieldmask)

SELECT examples​

Gets details of a single AgentConnectivityTemplate.

SELECT
name,
accessPath,
accessTypes,
agentCompute,
createTime,
deploymentModel,
description,
egressNetworkConfig,
etag,
labels,
updateTime
FROM google.networkservices.agent_connectivity_templates
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND agentConnectivityTemplatesId = '{{ agentConnectivityTemplatesId }}' -- required
;

INSERT examples​

Creates a new AgentConnectivityTemplate in a given project and location.

INSERT INTO google.networkservices.agent_connectivity_templates (
data__accessPath,
data__accessTypes,
data__agentCompute,
data__deploymentModel,
data__description,
data__egressNetworkConfig,
data__etag,
data__labels,
data__name,
projectsId,
locationsId,
agentConnectivityTemplateId
)
SELECT
'{{ accessPath }}',
'{{ accessTypes }}',
'{{ agentCompute }}',
'{{ deploymentModel }}',
'{{ description }}',
'{{ egressNetworkConfig }}',
'{{ etag }}',
'{{ labels }}',
'{{ name }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ agentConnectivityTemplateId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples​

Updates the parameters of a single AgentConnectivityTemplate.

UPDATE google.networkservices.agent_connectivity_templates
SET
data__accessPath = '{{ accessPath }}',
data__accessTypes = '{{ accessTypes }}',
data__agentCompute = '{{ agentCompute }}',
data__deploymentModel = '{{ deploymentModel }}',
data__description = '{{ description }}',
data__egressNetworkConfig = '{{ egressNetworkConfig }}',
data__etag = '{{ etag }}',
data__labels = '{{ labels }}',
data__name = '{{ name }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND agentConnectivityTemplatesId = '{{ agentConnectivityTemplatesId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples​

Deletes a single AgentConnectivityTemplate.

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