Class ServerTlsPolicy
ServerTlsPolicy is a resource that specifies how a server should authenticate incoming requests. This resource
itself does not affect configuration unless it is attached to a target HTTPS proxy or endpoint config selector
resource. ServerTlsPolicy in the form accepted by Application Load Balancers can be attached only to
TargetHttpsProxy with an EXTERNAL
, EXTERNAL_MANAGED
or INTERNAL_MANAGED
load balancing scheme. Traffic
Director compatible ServerTlsPolicies can be attached to EndpointPolicy and TargetHttpsProxy with Traffic
Director INTERNAL_SELF_MANAGED
load balancing scheme.
Implements
Inherited Members
Namespace: Google.Apis.NetworkSecurity.v1.Data
Assembly: Google.Apis.NetworkSecurity.v1.dll
Syntax
public class ServerTlsPolicy : IDirectResponseSchema
Properties
AllowOpen
This field applies only for Traffic Director policies. It is must be set to false for Application Load
Balancer policies. Determines if server allows plaintext connections. If set to true, server allows plain
text connections. By default, it is set to false. This setting is not exclusive of other encryption modes.
For example, if allow_open
and mtls_policy
are set, server allows both plain text and mTLS connections.
See documentation of other encryption modes to confirm compatibility. Consider using it if you wish to
upgrade in place your deployment to TLS while having mixed TLS and non-TLS traffic reaching port :80.
Declaration
[JsonProperty("allowOpen")]
public virtual bool? AllowOpen { get; set; }
Property Value
Type | Description |
---|---|
bool? |
CreateTime
object representation of CreateTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use CreateTimeDateTimeOffset instead.")]
public virtual object CreateTime { get; set; }
Property Value
Type | Description |
---|---|
object |
CreateTimeDateTimeOffset
DateTimeOffset representation of CreateTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? CreateTimeDateTimeOffset { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset? |
CreateTimeRaw
Output only. The timestamp when the resource was created.
Declaration
[JsonProperty("createTime")]
public virtual string CreateTimeRaw { get; set; }
Property Value
Type | Description |
---|---|
string |
Description
Free-text description of the resource.
Declaration
[JsonProperty("description")]
public virtual string Description { get; set; }
Property Value
Type | Description |
---|---|
string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Labels
Set of label tags associated with the resource.
Declaration
[JsonProperty("labels")]
public virtual IDictionary<string, string> Labels { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<string, string> |
MtlsPolicy
This field is required if the policy is used with Application Load Balancers. This field can be empty for
Traffic Director. Defines a mechanism to provision peer validation certificates for peer to peer
authentication (Mutual TLS - mTLS). If not specified, client certificate will not be requested. The
connection is treated as TLS and not mTLS. If allow_open
and mtls_policy
are set, server allows both
plain text and mTLS connections.
Declaration
[JsonProperty("mtlsPolicy")]
public virtual MTLSPolicy MtlsPolicy { get; set; }
Property Value
Type | Description |
---|---|
MTLSPolicy |
Name
Required. Name of the ServerTlsPolicy resource. It matches the pattern
projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
ServerCertificate
Optional if policy is to be used with Traffic Director. For Application Load Balancers must be empty.
Defines a mechanism to provision server identity (public and private keys). Cannot be combined with
allow_open
as a permissive mode that allows both plain text and TLS is not supported.
Declaration
[JsonProperty("serverCertificate")]
public virtual GoogleCloudNetworksecurityV1CertificateProvider ServerCertificate { get; set; }
Property Value
Type | Description |
---|---|
GoogleCloudNetworksecurityV1CertificateProvider |
UpdateTime
object representation of UpdateTimeRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use UpdateTimeDateTimeOffset instead.")]
public virtual object UpdateTime { get; set; }
Property Value
Type | Description |
---|---|
object |
UpdateTimeDateTimeOffset
DateTimeOffset representation of UpdateTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? UpdateTimeDateTimeOffset { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset? |
UpdateTimeRaw
Output only. The timestamp when the resource was updated.
Declaration
[JsonProperty("updateTime")]
public virtual string UpdateTimeRaw { get; set; }
Property Value
Type | Description |
---|---|
string |