target_tcp_proxies
Creates, updates, deletes, gets or lists a target_tcp_proxies
resource.
Overview
Name | target_tcp_proxies |
Type | Resource |
Id | google.compute.target_tcp_proxies |
Fields
Name | Datatype | Description |
---|---|---|
id | string | [Output Only] The unique identifier for the resource. This identifier is defined by the server. |
name | string | Name 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. |
description | string | An optional description of this resource. Provide this property when you create the resource. |
creationTimestamp | string | [Output Only] Creation timestamp in RFC3339 text format. |
kind | string | [Output Only] Type of the resource. Always compute#targetTcpProxy for target TCP proxies. |
proxyBind | boolean | This 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. |
proxyHeader | string | Specifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE. |
region | string | [Output Only] URL of the region where the regional TCP proxy resides. This field is not applicable to global TCP proxy. |
selfLink | string | [Output Only] Server-defined URL for the resource. |
service | string | URL to the BackendService resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | project, targetTcpProxy | Returns the specified TargetTcpProxy resource. |
list | SELECT | project | Retrieves the list of TargetTcpProxy resources available to the specified project. |
insert | INSERT | project | Creates a TargetTcpProxy resource in the specified project using the data included in the request. |
delete | DELETE | project, targetTcpProxy | Deletes the specified TargetTcpProxy resource. |
set_backend_service | EXEC | project, targetTcpProxy | Changes the BackendService for TargetTcpProxy. |
set_proxy_header | EXEC | project, targetTcpProxy | Changes the ProxyHeaderType for TargetTcpProxy. |
SELECT
examples
Retrieves the list of TargetTcpProxy resources available to the specified project.
SELECT
id,
name,
description,
creationTimestamp,
kind,
proxyBind,
proxyHeader,
region,
selfLink,
service
FROM google.compute.target_tcp_proxies
WHERE project = '{{ project }}';
INSERT
example
Use the following StackQL query and manifest file to create a new target_tcp_proxies
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.compute.target_tcp_proxies (
project,
name,
description,
service,
proxyHeader,
proxyBind,
region
)
SELECT
'{{ project }}',
'{{ name }}',
'{{ description }}',
'{{ service }}',
'{{ proxyHeader }}',
{{ proxyBind }},
'{{ region }}'
;
- name: your_resource_model_name
props:
- name: kind
value: string
- name: id
value: string
- name: creationTimestamp
value: string
- name: name
value: string
- name: description
value: string
- name: selfLink
value: string
- name: service
value: string
- name: proxyHeader
value: string
- name: proxyBind
value: boolean
- name: region
value: string
DELETE
example
Deletes the specified target_tcp_proxies
resource.
/*+ delete */
DELETE FROM google.compute.target_tcp_proxies
WHERE project = '{{ project }}'
AND targetTcpProxy = '{{ targetTcpProxy }}';