1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. getZeroTrustAccessMtlsHostnameSettings
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

cloudflare.getZeroTrustAccessMtlsHostnameSettings

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleZeroTrustAccessMtlsHostnameSettings = cloudflare.getZeroTrustAccessMtlsHostnameSettings({
        accountId: "account_id",
        zoneId: "zone_id",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_zero_trust_access_mtls_hostname_settings = cloudflare.get_zero_trust_access_mtls_hostname_settings(account_id="account_id",
        zone_id="zone_id")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudflare.LookupZeroTrustAccessMtlsHostnameSettings(ctx, &cloudflare.LookupZeroTrustAccessMtlsHostnameSettingsArgs{
    			AccountId: pulumi.StringRef("account_id"),
    			ZoneId:    pulumi.StringRef("zone_id"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cloudflare = Pulumi.Cloudflare;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleZeroTrustAccessMtlsHostnameSettings = Cloudflare.GetZeroTrustAccessMtlsHostnameSettings.Invoke(new()
        {
            AccountId = "account_id",
            ZoneId = "zone_id",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.CloudflareFunctions;
    import com.pulumi.cloudflare.inputs.GetZeroTrustAccessMtlsHostnameSettingsArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var exampleZeroTrustAccessMtlsHostnameSettings = CloudflareFunctions.getZeroTrustAccessMtlsHostnameSettings(GetZeroTrustAccessMtlsHostnameSettingsArgs.builder()
                .accountId("account_id")
                .zoneId("zone_id")
                .build());
    
        }
    }
    
    variables:
      exampleZeroTrustAccessMtlsHostnameSettings:
        fn::invoke:
          function: cloudflare:getZeroTrustAccessMtlsHostnameSettings
          arguments:
            accountId: account_id
            zoneId: zone_id
    

    Using getZeroTrustAccessMtlsHostnameSettings

    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 getZeroTrustAccessMtlsHostnameSettings(args: GetZeroTrustAccessMtlsHostnameSettingsArgs, opts?: InvokeOptions): Promise<GetZeroTrustAccessMtlsHostnameSettingsResult>
    function getZeroTrustAccessMtlsHostnameSettingsOutput(args: GetZeroTrustAccessMtlsHostnameSettingsOutputArgs, opts?: InvokeOptions): Output<GetZeroTrustAccessMtlsHostnameSettingsResult>
    def get_zero_trust_access_mtls_hostname_settings(account_id: Optional[str] = None,
                                                     zone_id: Optional[str] = None,
                                                     opts: Optional[InvokeOptions] = None) -> GetZeroTrustAccessMtlsHostnameSettingsResult
    def get_zero_trust_access_mtls_hostname_settings_output(account_id: Optional[pulumi.Input[str]] = None,
                                                     zone_id: Optional[pulumi.Input[str]] = None,
                                                     opts: Optional[InvokeOptions] = None) -> Output[GetZeroTrustAccessMtlsHostnameSettingsResult]
    func LookupZeroTrustAccessMtlsHostnameSettings(ctx *Context, args *LookupZeroTrustAccessMtlsHostnameSettingsArgs, opts ...InvokeOption) (*LookupZeroTrustAccessMtlsHostnameSettingsResult, error)
    func LookupZeroTrustAccessMtlsHostnameSettingsOutput(ctx *Context, args *LookupZeroTrustAccessMtlsHostnameSettingsOutputArgs, opts ...InvokeOption) LookupZeroTrustAccessMtlsHostnameSettingsResultOutput

    > Note: This function is named LookupZeroTrustAccessMtlsHostnameSettings in the Go SDK.

    public static class GetZeroTrustAccessMtlsHostnameSettings 
    {
        public static Task<GetZeroTrustAccessMtlsHostnameSettingsResult> InvokeAsync(GetZeroTrustAccessMtlsHostnameSettingsArgs args, InvokeOptions? opts = null)
        public static Output<GetZeroTrustAccessMtlsHostnameSettingsResult> Invoke(GetZeroTrustAccessMtlsHostnameSettingsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetZeroTrustAccessMtlsHostnameSettingsResult> getZeroTrustAccessMtlsHostnameSettings(GetZeroTrustAccessMtlsHostnameSettingsArgs args, InvokeOptions options)
    public static Output<GetZeroTrustAccessMtlsHostnameSettingsResult> getZeroTrustAccessMtlsHostnameSettings(GetZeroTrustAccessMtlsHostnameSettingsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getZeroTrustAccessMtlsHostnameSettings:getZeroTrustAccessMtlsHostnameSettings
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AccountId string
    The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
    ZoneId string
    The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
    AccountId string
    The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
    ZoneId string
    The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
    accountId String
    The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
    zoneId String
    The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
    accountId string
    The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
    zoneId string
    The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
    account_id str
    The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
    zone_id str
    The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
    accountId String
    The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
    zoneId String
    The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.

    getZeroTrustAccessMtlsHostnameSettings Result

    The following output properties are available:

    ChinaNetwork bool
    Request client certificates for this hostname in China. Can only be set to true if this zone is china network enabled.
    ClientCertificateForwarding bool
    Client Certificate Forwarding is a feature that takes the client cert provided by the eyeball to the edge, and forwards it to the origin as a HTTP header to allow logging on the origin.
    Hostname string
    The hostname that these settings apply to.
    Id string
    The provider-assigned unique ID for this managed resource.
    AccountId string
    The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
    ZoneId string
    The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
    ChinaNetwork bool
    Request client certificates for this hostname in China. Can only be set to true if this zone is china network enabled.
    ClientCertificateForwarding bool
    Client Certificate Forwarding is a feature that takes the client cert provided by the eyeball to the edge, and forwards it to the origin as a HTTP header to allow logging on the origin.
    Hostname string
    The hostname that these settings apply to.
    Id string
    The provider-assigned unique ID for this managed resource.
    AccountId string
    The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
    ZoneId string
    The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
    chinaNetwork Boolean
    Request client certificates for this hostname in China. Can only be set to true if this zone is china network enabled.
    clientCertificateForwarding Boolean
    Client Certificate Forwarding is a feature that takes the client cert provided by the eyeball to the edge, and forwards it to the origin as a HTTP header to allow logging on the origin.
    hostname String
    The hostname that these settings apply to.
    id String
    The provider-assigned unique ID for this managed resource.
    accountId String
    The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
    zoneId String
    The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
    chinaNetwork boolean
    Request client certificates for this hostname in China. Can only be set to true if this zone is china network enabled.
    clientCertificateForwarding boolean
    Client Certificate Forwarding is a feature that takes the client cert provided by the eyeball to the edge, and forwards it to the origin as a HTTP header to allow logging on the origin.
    hostname string
    The hostname that these settings apply to.
    id string
    The provider-assigned unique ID for this managed resource.
    accountId string
    The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
    zoneId string
    The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
    china_network bool
    Request client certificates for this hostname in China. Can only be set to true if this zone is china network enabled.
    client_certificate_forwarding bool
    Client Certificate Forwarding is a feature that takes the client cert provided by the eyeball to the edge, and forwards it to the origin as a HTTP header to allow logging on the origin.
    hostname str
    The hostname that these settings apply to.
    id str
    The provider-assigned unique ID for this managed resource.
    account_id str
    The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
    zone_id str
    The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
    chinaNetwork Boolean
    Request client certificates for this hostname in China. Can only be set to true if this zone is china network enabled.
    clientCertificateForwarding Boolean
    Client Certificate Forwarding is a feature that takes the client cert provided by the eyeball to the edge, and forwards it to the origin as a HTTP header to allow logging on the origin.
    hostname String
    The hostname that these settings apply to.
    id String
    The provider-assigned unique ID for this managed resource.
    accountId String
    The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
    zoneId String
    The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi