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)
public static Output<GetServerTlsPolicyResult> getServerTlsPolicy(GetServerTlsPolicyArgs args, InvokeOptions options)
fn::invoke:
  function: google-native:networksecurity/v1beta1:getServerTlsPolicy
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Location string
- ServerTls stringPolicy Id 
- Project string
- Location string
- ServerTls stringPolicy Id 
- Project string
- location String
- serverTls StringPolicy Id 
- project String
- location string
- serverTls stringPolicy Id 
- project string
- location str
- server_tls_ strpolicy_ id 
- project str
- location String
- serverTls StringPolicy Id 
- project String
getServerTlsPolicy Result
The following output properties are available:
- AllowOpen 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_openandmtls_policyare 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.
- CreateTime 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.
- MtlsPolicy 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_openandmtls_policyare 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}
- ServerCertificate 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_openas a permissive mode that allows both plain text and TLS is not supported.
- UpdateTime string
- The timestamp when the resource was updated.
- AllowOpen 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_openandmtls_policyare 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.
- CreateTime 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.
- MtlsPolicy 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_openandmtls_policyare 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}
- ServerCertificate 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_openas a permissive mode that allows both plain text and TLS is not supported.
- UpdateTime string
- The timestamp when the resource was updated.
- allowOpen 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_openandmtls_policyare 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.
- createTime 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.
- mtlsPolicy 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_openandmtls_policyare 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}
- serverCertificate 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_openas a permissive mode that allows both plain text and TLS is not supported.
- updateTime String
- The timestamp when the resource was updated.
- allowOpen 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_openandmtls_policyare 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.
- createTime 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.
- mtlsPolicy 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_openandmtls_policyare 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}
- serverCertificate 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_openas a permissive mode that allows both plain text and TLS is not supported.
- updateTime 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_openandmtls_policyare 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_openandmtls_policyare 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_openas a permissive mode that allows both plain text and TLS is not supported.
- update_time str
- The timestamp when the resource was updated.
- allowOpen 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_openandmtls_policyare 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.
- createTime 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.
- mtlsPolicy 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_openandmtls_policyare 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}
- serverCertificate 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_openas a permissive mode that allows both plain text and TLS is not supported.
- updateTime String
- The timestamp when the resource was updated.
Supporting Types
CertificateProviderInstanceResponse   
- PluginInstance 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.
- PluginInstance 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.
- pluginInstance 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.
- pluginInstance 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.
- pluginInstance 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     
- CertificateProvider 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.
- GrpcEndpoint 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.
- CertificateProvider 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.
- GrpcEndpoint GoogleCloud Networksecurity V1beta1Grpc Endpoint Response 
- gRPC specific configuration to access the gRPC server to obtain the cert and private key.
- certificateProvider 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.
- grpcEndpoint GoogleCloud Networksecurity V1beta1Grpc Endpoint Response 
- gRPC specific configuration to access the gRPC server to obtain the cert and private key.
- certificateProvider 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.
- grpcEndpoint 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.
- certificateProvider Property MapInstance 
- The certificate provider instance specification that will be passed to the data plane, which will be used to load necessary credential information.
- grpcEndpoint Property Map
- gRPC specific configuration to access the gRPC server to obtain the cert and private key.
GoogleCloudNetworksecurityV1beta1GrpcEndpointResponse     
- TargetUri string
- The target URI of the gRPC endpoint. Only UDS path is supported, and should start with "unix:".
- TargetUri string
- The target URI of the gRPC endpoint. Only UDS path is supported, and should start with "unix:".
- targetUri String
- The target URI of the gRPC endpoint. Only UDS path is supported, and should start with "unix:".
- targetUri 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:".
- targetUri String
- The target URI of the gRPC endpoint. Only UDS path is supported, and should start with "unix:".
MTLSPolicyResponse 
- ClientValidation 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.
- ClientValidation stringMode 
- When the client presents an invalid certificate or no certificate to the load balancer, the client_validation_modespecifies 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.
- ClientValidation 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.
- ClientValidation []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.
- ClientValidation stringMode 
- When the client presents an invalid certificate or no certificate to the load balancer, the client_validation_modespecifies 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.
- ClientValidation 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.
- clientValidation 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.
- clientValidation StringMode 
- When the client presents an invalid certificate or no certificate to the load balancer, the client_validation_modespecifies 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.
- clientValidation 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.
- clientValidation 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.
- clientValidation stringMode 
- When the client presents an invalid certificate or no certificate to the load balancer, the client_validation_modespecifies 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.
- clientValidation 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_modespecifies 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.
- clientValidation 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.
- clientValidation StringMode 
- When the client presents an invalid certificate or no certificate to the load balancer, the client_validation_modespecifies 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.
- clientValidation 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 
- CertificateProvider 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.
- GrpcEndpoint 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.
- CertificateProvider 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.
- GrpcEndpoint GoogleCloud Networksecurity V1beta1Grpc Endpoint Response 
- gRPC specific configuration to access the gRPC server to obtain the CA certificate.
- certificateProvider 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.
- grpcEndpoint GoogleCloud Networksecurity V1beta1Grpc Endpoint Response 
- gRPC specific configuration to access the gRPC server to obtain the CA certificate.
- certificateProvider 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.
- grpcEndpoint 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.
- certificateProvider Property MapInstance 
- The certificate provider instance specification that will be passed to the data plane, which will be used to load necessary credential information.
- grpcEndpoint 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