Skip to main content

region_target_tcp_proxies

Creates, updates, deletes, gets or lists a region_target_tcp_proxies resource.

Overview

Nameregion_target_tcp_proxies
TypeResource
Idgoogle.compute.region_target_tcp_proxies

Fields

NameDatatypeDescription
idstring[Output Only] The unique identifier for the resource. This identifier is defined by the server.
namestringName of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
descriptionstringAn optional description of this resource. Provide this property when you create the resource.
creationTimestampstring[Output Only] Creation timestamp in RFC3339 text format.
kindstring[Output Only] Type of the resource. Always compute#targetTcpProxy for target TCP proxies.
proxyBindbooleanThis field only applies when the forwarding rule that references this target proxy has a loadBalancingScheme set to INTERNAL_SELF_MANAGED. When this field is set to true, Envoy proxies set up inbound traffic interception and bind to the IP address and port specified in the forwarding rule. This is generally useful when using Traffic Director to configure Envoy as a gateway or middle proxy (in other words, not a sidecar proxy). The Envoy proxy listens for inbound requests and handles requests when it receives them. The default is false.
proxyHeaderstringSpecifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
regionstring[Output Only] URL of the region where the regional TCP proxy resides. This field is not applicable to global TCP proxy.
selfLinkstring[Output Only] Server-defined URL for the resource.
servicestringURL to the BackendService resource.

Methods

NameAccessible byRequired ParamsDescription
getSELECTproject, region, targetTcpProxyReturns the specified TargetTcpProxy resource.
listSELECTproject, regionRetrieves a list of TargetTcpProxy resources available to the specified project in a given region.
insertINSERTproject, regionCreates a TargetTcpProxy resource in the specified project and region using the data included in the request.
deleteDELETEproject, region, targetTcpProxyDeletes the specified TargetTcpProxy resource.

SELECT examples

Retrieves a list of TargetTcpProxy resources available to the specified project in a given region.

SELECT
id,
name,
description,
creationTimestamp,
kind,
proxyBind,
proxyHeader,
region,
selfLink,
service
FROM google.compute.region_target_tcp_proxies
WHERE project = '{{ project }}'
AND region = '{{ region }}';

INSERT example

Use the following StackQL query and manifest file to create a new region_target_tcp_proxies resource.

/*+ create */
INSERT INTO google.compute.region_target_tcp_proxies (
project,
region,
name,
description,
service,
proxyHeader,
proxyBind,
region
)
SELECT
'{{ project }}',
'{{ region }}',
'{{ name }}',
'{{ description }}',
'{{ service }}',
'{{ proxyHeader }}',
{{ proxyBind }},
'{{ region }}'
;

DELETE example

Deletes the specified region_target_tcp_proxies resource.

/*+ delete */
DELETE FROM google.compute.region_target_tcp_proxies
WHERE project = '{{ project }}'
AND region = '{{ region }}'
AND targetTcpProxy = '{{ targetTcpProxy }}';