Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
google-native.networksecurity/v1beta1.getServerTlsPolicy
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
Gets details of a single ServerTlsPolicy.
Using getServerTlsPolicy
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getServerTlsPolicy(args: GetServerTlsPolicyArgs, opts?: InvokeOptions): Promise<GetServerTlsPolicyResult>
function getServerTlsPolicyOutput(args: GetServerTlsPolicyOutputArgs, opts?: InvokeOptions): Output<GetServerTlsPolicyResult>
def get_server_tls_policy(location: Optional[str] = None,
project: Optional[str] = None,
server_tls_policy_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetServerTlsPolicyResult
def get_server_tls_policy_output(location: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
server_tls_policy_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetServerTlsPolicyResult]
func LookupServerTlsPolicy(ctx *Context, args *LookupServerTlsPolicyArgs, opts ...InvokeOption) (*LookupServerTlsPolicyResult, error)
func LookupServerTlsPolicyOutput(ctx *Context, args *LookupServerTlsPolicyOutputArgs, opts ...InvokeOption) LookupServerTlsPolicyResultOutput
> Note: This function is named LookupServerTlsPolicy
in the Go SDK.
public static class GetServerTlsPolicy
{
public static Task<GetServerTlsPolicyResult> InvokeAsync(GetServerTlsPolicyArgs args, InvokeOptions? opts = null)
public static Output<GetServerTlsPolicyResult> Invoke(GetServerTlsPolicyInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetServerTlsPolicyResult> getServerTlsPolicy(GetServerTlsPolicyArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: google-native:networksecurity/v1beta1:getServerTlsPolicy
arguments:
# arguments dictionary
The following arguments are supported:
- Location string
- Server
Tls stringPolicy Id - Project string
- Location string
- Server
Tls stringPolicy Id - Project string
- location String
- server
Tls StringPolicy Id - project String
- location string
- server
Tls stringPolicy Id - project string
- location str
- server_
tls_ strpolicy_ id - project str
- location String
- server
Tls StringPolicy Id - project String
getServerTlsPolicy Result
The following output properties are available:
- Allow
Open bool - This field applies only for Traffic Director policies. It is must be set to false for external HTTPS 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
andmtls_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. - Create
Time string - The timestamp when the resource was created.
- Description string
- Free-text description of the resource.
- Labels Dictionary<string, string>
- Set of label tags associated with the resource.
- Mtls
Policy Pulumi.Google Native. Network Security. V1Beta1. Outputs. MTLSPolicy Response - This field is required if the policy is used with external HTTPS 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
andmtls_policy
are set, server allows both plain text and mTLS connections. - Name string
- Name of the ServerTlsPolicy resource. It matches the pattern
projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}
- Server
Certificate Pulumi.Google Native. Network Security. V1Beta1. Outputs. Google Cloud Networksecurity V1beta1Certificate Provider Response - Optional if policy is to be used with Traffic Director. For external HTTPS load balancer 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. - Update
Time string - The timestamp when the resource was updated.
- Allow
Open bool - This field applies only for Traffic Director policies. It is must be set to false for external HTTPS 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
andmtls_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. - Create
Time string - The timestamp when the resource was created.
- Description string
- Free-text description of the resource.
- Labels map[string]string
- Set of label tags associated with the resource.
- Mtls
Policy MTLSPolicyResponse - This field is required if the policy is used with external HTTPS 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
andmtls_policy
are set, server allows both plain text and mTLS connections. - Name string
- Name of the ServerTlsPolicy resource. It matches the pattern
projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}
- Server
Certificate GoogleCloud Networksecurity V1beta1Certificate Provider Response - Optional if policy is to be used with Traffic Director. For external HTTPS load balancer 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. - Update
Time string - The timestamp when the resource was updated.
- allow
Open Boolean - This field applies only for Traffic Director policies. It is must be set to false for external HTTPS 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
andmtls_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. - create
Time String - The timestamp when the resource was created.
- description String
- Free-text description of the resource.
- labels Map<String,String>
- Set of label tags associated with the resource.
- mtls
Policy MTLSPolicyResponse - This field is required if the policy is used with external HTTPS 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
andmtls_policy
are set, server allows both plain text and mTLS connections. - name String
- Name of the ServerTlsPolicy resource. It matches the pattern
projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}
- server
Certificate GoogleCloud Networksecurity V1beta1Certificate Provider Response - Optional if policy is to be used with Traffic Director. For external HTTPS load balancer 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. - update
Time String - The timestamp when the resource was updated.
- allow
Open boolean - This field applies only for Traffic Director policies. It is must be set to false for external HTTPS 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
andmtls_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. - create
Time string - The timestamp when the resource was created.
- description string
- Free-text description of the resource.
- labels {[key: string]: string}
- Set of label tags associated with the resource.
- mtls
Policy MTLSPolicyResponse - This field is required if the policy is used with external HTTPS 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
andmtls_policy
are set, server allows both plain text and mTLS connections. - name string
- Name of the ServerTlsPolicy resource. It matches the pattern
projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}
- server
Certificate GoogleCloud Networksecurity V1beta1Certificate Provider Response - Optional if policy is to be used with Traffic Director. For external HTTPS load balancer 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. - update
Time string - The timestamp when the resource was updated.
- allow_
open bool - This field applies only for Traffic Director policies. It is must be set to false for external HTTPS 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
andmtls_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. - create_
time str - The timestamp when the resource was created.
- description str
- Free-text description of the resource.
- labels Mapping[str, str]
- Set of label tags associated with the resource.
- mtls_
policy MTLSPolicyResponse - This field is required if the policy is used with external HTTPS 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
andmtls_policy
are set, server allows both plain text and mTLS connections. - name str
- Name of the ServerTlsPolicy resource. It matches the pattern
projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}
- server_
certificate GoogleCloud Networksecurity V1beta1Certificate Provider Response - Optional if policy is to be used with Traffic Director. For external HTTPS load balancer 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. - update_
time str - The timestamp when the resource was updated.
- allow
Open Boolean - This field applies only for Traffic Director policies. It is must be set to false for external HTTPS 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
andmtls_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. - create
Time String - The timestamp when the resource was created.
- description String
- Free-text description of the resource.
- labels Map<String>
- Set of label tags associated with the resource.
- mtls
Policy Property Map - This field is required if the policy is used with external HTTPS 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
andmtls_policy
are set, server allows both plain text and mTLS connections. - name String
- Name of the ServerTlsPolicy resource. It matches the pattern
projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}
- server
Certificate Property Map - Optional if policy is to be used with Traffic Director. For external HTTPS load balancer 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. - update
Time String - The timestamp when the resource was updated.
Supporting Types
CertificateProviderInstanceResponse
- Plugin
Instance string - Plugin instance name, used to locate and load CertificateProvider instance configuration. Set to "google_cloud_private_spiffe" to use Certificate Authority Service certificate provider instance.
- Plugin
Instance string - Plugin instance name, used to locate and load CertificateProvider instance configuration. Set to "google_cloud_private_spiffe" to use Certificate Authority Service certificate provider instance.
- plugin
Instance String - Plugin instance name, used to locate and load CertificateProvider instance configuration. Set to "google_cloud_private_spiffe" to use Certificate Authority Service certificate provider instance.
- plugin
Instance string - Plugin instance name, used to locate and load CertificateProvider instance configuration. Set to "google_cloud_private_spiffe" to use Certificate Authority Service certificate provider instance.
- plugin_
instance str - Plugin instance name, used to locate and load CertificateProvider instance configuration. Set to "google_cloud_private_spiffe" to use Certificate Authority Service certificate provider instance.
- plugin
Instance String - Plugin instance name, used to locate and load CertificateProvider instance configuration. Set to "google_cloud_private_spiffe" to use Certificate Authority Service certificate provider instance.
GoogleCloudNetworksecurityV1beta1CertificateProviderResponse
- Certificate
Provider Pulumi.Instance Google Native. Network Security. V1Beta1. Inputs. Certificate Provider Instance Response - The certificate provider instance specification that will be passed to the data plane, which will be used to load necessary credential information.
- Grpc
Endpoint Pulumi.Google Native. Network Security. V1Beta1. Inputs. Google Cloud Networksecurity V1beta1Grpc Endpoint Response - gRPC specific configuration to access the gRPC server to obtain the cert and private key.
- Certificate
Provider CertificateInstance Provider Instance Response - The certificate provider instance specification that will be passed to the data plane, which will be used to load necessary credential information.
- Grpc
Endpoint GoogleCloud Networksecurity V1beta1Grpc Endpoint Response - gRPC specific configuration to access the gRPC server to obtain the cert and private key.
- certificate
Provider CertificateInstance Provider Instance Response - The certificate provider instance specification that will be passed to the data plane, which will be used to load necessary credential information.
- grpc
Endpoint GoogleCloud Networksecurity V1beta1Grpc Endpoint Response - gRPC specific configuration to access the gRPC server to obtain the cert and private key.
- certificate
Provider CertificateInstance Provider Instance Response - The certificate provider instance specification that will be passed to the data plane, which will be used to load necessary credential information.
- grpc
Endpoint GoogleCloud Networksecurity V1beta1Grpc Endpoint Response - gRPC specific configuration to access the gRPC server to obtain the cert and private key.
- certificate_
provider_ Certificateinstance Provider Instance Response - The certificate provider instance specification that will be passed to the data plane, which will be used to load necessary credential information.
- grpc_
endpoint GoogleCloud Networksecurity V1beta1Grpc Endpoint Response - gRPC specific configuration to access the gRPC server to obtain the cert and private key.
- certificate
Provider Property MapInstance - The certificate provider instance specification that will be passed to the data plane, which will be used to load necessary credential information.
- grpc
Endpoint Property Map - gRPC specific configuration to access the gRPC server to obtain the cert and private key.
GoogleCloudNetworksecurityV1beta1GrpcEndpointResponse
- Target
Uri string - The target URI of the gRPC endpoint. Only UDS path is supported, and should start with "unix:".
- Target
Uri string - The target URI of the gRPC endpoint. Only UDS path is supported, and should start with "unix:".
- target
Uri String - The target URI of the gRPC endpoint. Only UDS path is supported, and should start with "unix:".
- target
Uri string - The target URI of the gRPC endpoint. Only UDS path is supported, and should start with "unix:".
- target_
uri str - The target URI of the gRPC endpoint. Only UDS path is supported, and should start with "unix:".
- target
Uri String - The target URI of the gRPC endpoint. Only UDS path is supported, and should start with "unix:".
MTLSPolicyResponse
- Client
Validation List<Pulumi.Ca Google Native. Network Security. V1Beta1. Inputs. Validation CAResponse> - Required if the policy is to be used with Traffic Director. For external HTTPS load balancers it must be empty. Defines the mechanism to obtain the Certificate Authority certificate to validate the client certificate.
- Client
Validation stringMode - When the client presents an invalid certificate or no certificate to the load balancer, the
client_validation_mode
specifies how the client connection is handled. Required if the policy is to be used with the external HTTPS load balancing. For Traffic Director it must be empty. - Client
Validation stringTrust Config - Reference to the TrustConfig from certificatemanager.googleapis.com namespace. If specified, the chain validation will be performed against certificates configured in the given TrustConfig. Allowed only if the policy is to be used with external HTTPS load balancers.
- Client
Validation []ValidationCa CAResponse - Required if the policy is to be used with Traffic Director. For external HTTPS load balancers it must be empty. Defines the mechanism to obtain the Certificate Authority certificate to validate the client certificate.
- Client
Validation stringMode - When the client presents an invalid certificate or no certificate to the load balancer, the
client_validation_mode
specifies how the client connection is handled. Required if the policy is to be used with the external HTTPS load balancing. For Traffic Director it must be empty. - Client
Validation stringTrust Config - Reference to the TrustConfig from certificatemanager.googleapis.com namespace. If specified, the chain validation will be performed against certificates configured in the given TrustConfig. Allowed only if the policy is to be used with external HTTPS load balancers.
- client
Validation List<ValidationCa CAResponse> - Required if the policy is to be used with Traffic Director. For external HTTPS load balancers it must be empty. Defines the mechanism to obtain the Certificate Authority certificate to validate the client certificate.
- client
Validation StringMode - When the client presents an invalid certificate or no certificate to the load balancer, the
client_validation_mode
specifies how the client connection is handled. Required if the policy is to be used with the external HTTPS load balancing. For Traffic Director it must be empty. - client
Validation StringTrust Config - Reference to the TrustConfig from certificatemanager.googleapis.com namespace. If specified, the chain validation will be performed against certificates configured in the given TrustConfig. Allowed only if the policy is to be used with external HTTPS load balancers.
- client
Validation ValidationCa CAResponse[] - Required if the policy is to be used with Traffic Director. For external HTTPS load balancers it must be empty. Defines the mechanism to obtain the Certificate Authority certificate to validate the client certificate.
- client
Validation stringMode - When the client presents an invalid certificate or no certificate to the load balancer, the
client_validation_mode
specifies how the client connection is handled. Required if the policy is to be used with the external HTTPS load balancing. For Traffic Director it must be empty. - client
Validation stringTrust Config - Reference to the TrustConfig from certificatemanager.googleapis.com namespace. If specified, the chain validation will be performed against certificates configured in the given TrustConfig. Allowed only if the policy is to be used with external HTTPS load balancers.
- client_
validation_ Sequence[Validationca CAResponse] - Required if the policy is to be used with Traffic Director. For external HTTPS load balancers it must be empty. Defines the mechanism to obtain the Certificate Authority certificate to validate the client certificate.
- client_
validation_ strmode - When the client presents an invalid certificate or no certificate to the load balancer, the
client_validation_mode
specifies how the client connection is handled. Required if the policy is to be used with the external HTTPS load balancing. For Traffic Director it must be empty. - client_
validation_ strtrust_ config - Reference to the TrustConfig from certificatemanager.googleapis.com namespace. If specified, the chain validation will be performed against certificates configured in the given TrustConfig. Allowed only if the policy is to be used with external HTTPS load balancers.
- client
Validation List<Property Map>Ca - Required if the policy is to be used with Traffic Director. For external HTTPS load balancers it must be empty. Defines the mechanism to obtain the Certificate Authority certificate to validate the client certificate.
- client
Validation StringMode - When the client presents an invalid certificate or no certificate to the load balancer, the
client_validation_mode
specifies how the client connection is handled. Required if the policy is to be used with the external HTTPS load balancing. For Traffic Director it must be empty. - client
Validation StringTrust Config - Reference to the TrustConfig from certificatemanager.googleapis.com namespace. If specified, the chain validation will be performed against certificates configured in the given TrustConfig. Allowed only if the policy is to be used with external HTTPS load balancers.
ValidationCAResponse
- Certificate
Provider Pulumi.Instance Google Native. Network Security. V1Beta1. Inputs. Certificate Provider Instance Response - The certificate provider instance specification that will be passed to the data plane, which will be used to load necessary credential information.
- Grpc
Endpoint Pulumi.Google Native. Network Security. V1Beta1. Inputs. Google Cloud Networksecurity V1beta1Grpc Endpoint Response - gRPC specific configuration to access the gRPC server to obtain the CA certificate.
- Certificate
Provider CertificateInstance Provider Instance Response - The certificate provider instance specification that will be passed to the data plane, which will be used to load necessary credential information.
- Grpc
Endpoint GoogleCloud Networksecurity V1beta1Grpc Endpoint Response - gRPC specific configuration to access the gRPC server to obtain the CA certificate.
- certificate
Provider CertificateInstance Provider Instance Response - The certificate provider instance specification that will be passed to the data plane, which will be used to load necessary credential information.
- grpc
Endpoint GoogleCloud Networksecurity V1beta1Grpc Endpoint Response - gRPC specific configuration to access the gRPC server to obtain the CA certificate.
- certificate
Provider CertificateInstance Provider Instance Response - The certificate provider instance specification that will be passed to the data plane, which will be used to load necessary credential information.
- grpc
Endpoint GoogleCloud Networksecurity V1beta1Grpc Endpoint Response - gRPC specific configuration to access the gRPC server to obtain the CA certificate.
- certificate_
provider_ Certificateinstance Provider Instance Response - The certificate provider instance specification that will be passed to the data plane, which will be used to load necessary credential information.
- grpc_
endpoint GoogleCloud Networksecurity V1beta1Grpc Endpoint Response - gRPC specific configuration to access the gRPC server to obtain the CA certificate.
- certificate
Provider Property MapInstance - The certificate provider instance specification that will be passed to the data plane, which will be used to load necessary credential information.
- grpc
Endpoint Property Map - gRPC specific configuration to access the gRPC server to obtain the CA certificate.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi