target_ssl_proxies
Creates, updates, deletes, gets or lists a target_ssl_proxies resource.
Overview
| Name | target_ssl_proxies |
| Type | Resource |
| Id | google.compute.target_ssl_proxies |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
id | string (uint64) | [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 withRFC1035. 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](?:[-a-z0-9]{0,61}[a-z0-9])?) |
certificateMap | string | URL 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}. |
creationTimestamp | string | Output only. [Output Only] Creation timestamp inRFC3339 text format. |
description | string | An optional description of this resource. Provide this property when you create the resource. |
kind | string | Output only. [Output Only] Type of the resource. Alwayscompute#targetSslProxy for target SSL proxies. (default: compute#targetSslProxy) |
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. (NONE, PROXY_V1) |
selfLink | string | [Output Only] Server-defined URL for the resource. |
service | string | URL to the BackendService resource. |
sslCertificates | array | URLs 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. |
sslPolicy | string | URL of SslPolicy resource that will be associated with the TargetSslProxy resource. If not set, the TargetSslProxy resource will not have any SSL policy configured. |
| Name | Datatype | Description |
|---|---|---|
id | string | [Output Only] Unique identifier for the resource; defined by the server. |
items | array | A list of TargetSslProxy resources. |
kind | string | Output only. Type of resource. (default: compute#targetSslProxyList) |
nextPageToken | string | [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger thanmaxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. |
selfLink | string | Output only. [Output Only] Server-defined URL for this resource. |
warning | object | [Output Only] Informational warning message. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | project, targetSslProxy | Returns the specified TargetSslProxy resource. | |
list | select | project | maxResults, pageToken, filter, orderBy, returnPartialSuccess | Retrieves the list of TargetSslProxy resources available to the specified project. |
insert | insert | project | requestId | Creates a TargetSslProxy resource in the specified project using the data included in the request. |
delete | delete | project, targetSslProxy | requestId | Deletes the specified TargetSslProxy resource. |
set_ssl_certificates | exec | project, targetSslProxy | requestId | Changes SslCertificates for TargetSslProxy. |
set_backend_service | exec | project, targetSslProxy | requestId | Changes the BackendService for TargetSslProxy. |
set_proxy_header | exec | project, targetSslProxy | requestId | Changes the ProxyHeaderType for TargetSslProxy. |
set_ssl_policy | exec | project, targetSslProxy | requestId | Sets 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. |
set_certificate_map | exec | project, targetSslProxy | requestId | Changes the Certificate Map for TargetSslProxy. |
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.
| Name | Datatype | Description |
|---|---|---|
project | string | |
targetSslProxy | string | |
filter | string | |
maxResults | integer (uint32) | |
orderBy | string | |
pageToken | string | |
requestId | string | |
returnPartialSuccess | boolean |
SELECT examples
- get
- list
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
;
Retrieves the list of TargetSslProxy resources
available to the specified project.
SELECT
id,
items,
kind,
nextPageToken,
selfLink,
warning
FROM google.compute.target_ssl_proxies
WHERE project = '{{ project }}' -- required
AND maxResults = '{{ maxResults }}'
AND pageToken = '{{ pageToken }}'
AND filter = '{{ filter }}'
AND orderBy = '{{ orderBy }}'
AND returnPartialSuccess = '{{ returnPartialSuccess }}'
;
INSERT examples
- insert
- Manifest
Creates a TargetSslProxy resource in the specified project using
the data included in the request.
INSERT INTO google.compute.target_ssl_proxies (
data__sslCertificates,
data__id,
data__selfLink,
data__description,
data__certificateMap,
data__proxyHeader,
data__name,
data__sslPolicy,
data__service,
project,
requestId
)
SELECT
'{{ sslCertificates }}',
'{{ id }}',
'{{ selfLink }}',
'{{ description }}',
'{{ certificateMap }}',
'{{ proxyHeader }}',
'{{ name }}',
'{{ sslPolicy }}',
'{{ service }}',
'{{ project }}',
'{{ requestId }}'
RETURNING
id,
name,
clientOperationId,
creationTimestamp,
description,
endTime,
error,
getVersionOperationMetadata,
httpErrorMessage,
httpErrorStatusCode,
insertTime,
instancesBulkInsertOperationMetadata,
kind,
operationGroupId,
operationType,
progress,
region,
selfLink,
setCommonInstanceMetadataOperationMetadata,
startTime,
status,
statusMessage,
targetId,
targetLink,
user,
warnings,
zone
;
# Description fields are for documentation purposes
- name: target_ssl_proxies
props:
- name: project
value: "{{ project }}"
description: Required parameter for the target_ssl_proxies resource.
- name: sslCertificates
value:
- "{{ sslCertificates }}"
description: |
URLs 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.
- name: id
value: "{{ id }}"
description: |
[Output Only] The unique identifier for the resource. This identifier is
defined by the server.
- name: selfLink
value: "{{ selfLink }}"
description: |
[Output Only] Server-defined URL for the resource.
- name: description
value: "{{ description }}"
description: |
An optional description of this resource. Provide this property when you
create the resource.
- name: certificateMap
value: "{{ certificateMap }}"
description: |
URL 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}.
- name: proxyHeader
value: "{{ proxyHeader }}"
description: |
Specifies the type of proxy header to append before sending data to the
backend, either NONE or PROXY_V1. The default
is NONE.
valid_values: ['NONE', 'PROXY_V1']
- name: name
value: "{{ name }}"
description: |
Name of the resource. Provided by the client when the resource is created.
The name must be 1-63 characters long, and comply withRFC1035.
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.
- name: sslPolicy
value: "{{ sslPolicy }}"
description: |
URL of SslPolicy resource that will be associated with the TargetSslProxy
resource. If not set, the TargetSslProxy resource will not have any
SSL policy configured.
- name: service
value: "{{ service }}"
description: |
URL to the BackendService resource.
- name: requestId
value: "{{ requestId }}"
DELETE examples
- delete
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
- set_ssl_certificates
- set_backend_service
- set_proxy_header
- set_ssl_policy
- set_certificate_map
Changes SslCertificates for TargetSslProxy.
EXEC google.compute.target_ssl_proxies.set_ssl_certificates
@project='{{ project }}' --required,
@targetSslProxy='{{ targetSslProxy }}' --required,
@requestId='{{ requestId }}'
@@json=
'{
"sslCertificates": "{{ sslCertificates }}"
}'
;
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 }}"
}'
;
Changes the ProxyHeaderType for TargetSslProxy.
EXEC google.compute.target_ssl_proxies.set_proxy_header
@project='{{ project }}' --required,
@targetSslProxy='{{ targetSslProxy }}' --required,
@requestId='{{ requestId }}'
@@json=
'{
"proxyHeader": "{{ proxyHeader }}"
}'
;
Sets 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.
EXEC google.compute.target_ssl_proxies.set_ssl_policy
@project='{{ project }}' --required,
@targetSslProxy='{{ targetSslProxy }}' --required,
@requestId='{{ requestId }}'
@@json=
'{
"sslPolicy": "{{ sslPolicy }}"
}'
;
Changes the Certificate Map for TargetSslProxy.
EXEC google.compute.target_ssl_proxies.set_certificate_map
@project='{{ project }}' --required,
@targetSslProxy='{{ targetSslProxy }}' --required,
@requestId='{{ requestId }}'
@@json=
'{
"certificateMap": "{{ certificateMap }}"
}'
;