Skip to main content

target_ssl_proxies

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

Overview

Nametarget_ssl_proxies
TypeResource
Idgoogle.compute.target_ssl_proxies

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
idstring (uint64)[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. (pattern: a-z?)
certificateMapstringURL of a certificate map that identifies a certificate map associated with the given target proxy. This field can only be set for global target proxies. If set, sslCertificates will be ignored. Accepted format is //certificatemanager.googleapis.com/projects/{project }/locations/{location}/certificateMaps/{resourceName}.
creationTimestampstring[Output Only] Creation timestamp in RFC3339 text format.
descriptionstringAn optional description of this resource. Provide this property when you create the resource.
kindstring[Output Only] Type of the resource. Always compute#targetSslProxy for target SSL proxies. (default: compute#targetSslProxy)
proxyHeaderstringSpecifies the type of proxy header to append before sending data to the backend, either NONE or PROXY_V1. The default is NONE.
selfLinkstring[Output Only] Server-defined URL for the resource.
servicestringURL to the BackendService resource.
sslCertificatesarrayURLs to SslCertificate resources that are used to authenticate connections to Backends. At least one SSL certificate must be specified. Currently, you may specify up to 15 SSL certificates. sslCertificates do not apply when the load balancing scheme is set to INTERNAL_SELF_MANAGED.
sslPolicystringURL of SslPolicy resource that will be associated with the TargetSslProxy resource. If not set, the TargetSslProxy resource will not have any SSL policy configured.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectproject, targetSslProxyReturns the specified TargetSslProxy resource.
listselectprojectfilter, maxResults, orderBy, pageToken, returnPartialSuccessRetrieves the list of TargetSslProxy resources available to the specified project.
insertinsertprojectrequestIdCreates a TargetSslProxy resource in the specified project using the data included in the request.
deletedeleteproject, targetSslProxyrequestIdDeletes the specified TargetSslProxy resource.
set_backend_serviceexecproject, targetSslProxyrequestIdChanges the BackendService for TargetSslProxy.
set_ssl_certificatesexecproject, targetSslProxyrequestIdChanges SslCertificates for TargetSslProxy.
set_certificate_mapexecproject, targetSslProxyrequestIdChanges the Certificate Map for TargetSslProxy.
set_proxy_headerexecproject, targetSslProxyrequestIdChanges the ProxyHeaderType for TargetSslProxy.
set_ssl_policyexecproject, targetSslProxyrequestIdSets the SSL policy for TargetSslProxy. The SSL policy specifies the server-side support for SSL features. This affects connections between clients and the load balancer. They do not affect the connection between the load balancer and the backends.

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
projectstring
targetSslProxystring
filterstring
maxResultsinteger (uint32)
orderBystring
pageTokenstring
requestIdstring
returnPartialSuccessboolean

SELECT examples

Returns the specified TargetSslProxy resource.

SELECT
id,
name,
certificateMap,
creationTimestamp,
description,
kind,
proxyHeader,
selfLink,
service,
sslCertificates,
sslPolicy
FROM google.compute.target_ssl_proxies
WHERE project = '{{ project }}' -- required
AND targetSslProxy = '{{ targetSslProxy }}' -- required;

INSERT examples

Creates a TargetSslProxy resource in the specified project using the data included in the request.

INSERT INTO google.compute.target_ssl_proxies (
data__kind,
data__id,
data__creationTimestamp,
data__name,
data__description,
data__selfLink,
data__service,
data__sslCertificates,
data__certificateMap,
data__proxyHeader,
data__sslPolicy,
project,
requestId
)
SELECT
'{{ kind }}',
'{{ id }}',
'{{ creationTimestamp }}',
'{{ name }}',
'{{ description }}',
'{{ selfLink }}',
'{{ service }}',
'{{ sslCertificates }}',
'{{ certificateMap }}',
'{{ proxyHeader }}',
'{{ sslPolicy }}',
'{{ project }}',
'{{ requestId }}'
RETURNING
id,
name,
clientOperationId,
creationTimestamp,
description,
endTime,
error,
httpErrorMessage,
httpErrorStatusCode,
insertTime,
instancesBulkInsertOperationMetadata,
kind,
operationGroupId,
operationType,
progress,
region,
selfLink,
setCommonInstanceMetadataOperationMetadata,
startTime,
status,
statusMessage,
targetId,
targetLink,
user,
warnings,
zone
;

DELETE examples

Deletes the specified TargetSslProxy resource.

DELETE FROM google.compute.target_ssl_proxies
WHERE project = '{{ project }}' --required
AND targetSslProxy = '{{ targetSslProxy }}' --required
AND requestId = '{{ requestId }}';

Lifecycle Methods

Changes the BackendService for TargetSslProxy.

EXEC google.compute.target_ssl_proxies.set_backend_service 
@project='{{ project }}' --required,
@targetSslProxy='{{ targetSslProxy }}' --required,
@requestId='{{ requestId }}'
@@json=
'{
"service": "{{ service }}"
}';