1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. ZeroTrustAccessMtlsHostnameSettings
Cloudflare v6.0.1 published on Wednesday, Apr 16, 2025 by Pulumi

cloudflare.ZeroTrustAccessMtlsHostnameSettings

Explore with Pulumi AI

Example Usage

Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
resources:
  exampleZeroTrustAccessMtlsHostnameSettings:
    type: cloudflare:ZeroTrustAccessMtlsHostnameSettings
    name: example_zero_trust_access_mtls_hostname_settings
    properties:
      settings:
        - china_network: false
          client_certificate_forwarding: true
          hostname: admin.example.com
      zoneId: zone_id
Copy

Create ZeroTrustAccessMtlsHostnameSettings Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ZeroTrustAccessMtlsHostnameSettings(name: string, args: ZeroTrustAccessMtlsHostnameSettingsArgs, opts?: CustomResourceOptions);
@overload
def ZeroTrustAccessMtlsHostnameSettings(resource_name: str,
                                        args: ZeroTrustAccessMtlsHostnameSettingsArgs,
                                        opts: Optional[ResourceOptions] = None)

@overload
def ZeroTrustAccessMtlsHostnameSettings(resource_name: str,
                                        opts: Optional[ResourceOptions] = None,
                                        settings: Optional[Sequence[ZeroTrustAccessMtlsHostnameSettingsSettingArgs]] = None,
                                        account_id: Optional[str] = None,
                                        zone_id: Optional[str] = None)
func NewZeroTrustAccessMtlsHostnameSettings(ctx *Context, name string, args ZeroTrustAccessMtlsHostnameSettingsArgs, opts ...ResourceOption) (*ZeroTrustAccessMtlsHostnameSettings, error)
public ZeroTrustAccessMtlsHostnameSettings(string name, ZeroTrustAccessMtlsHostnameSettingsArgs args, CustomResourceOptions? opts = null)
public ZeroTrustAccessMtlsHostnameSettings(String name, ZeroTrustAccessMtlsHostnameSettingsArgs args)
public ZeroTrustAccessMtlsHostnameSettings(String name, ZeroTrustAccessMtlsHostnameSettingsArgs args, CustomResourceOptions options)
type: cloudflare:ZeroTrustAccessMtlsHostnameSettings
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ZeroTrustAccessMtlsHostnameSettingsArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ZeroTrustAccessMtlsHostnameSettingsArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ZeroTrustAccessMtlsHostnameSettingsArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ZeroTrustAccessMtlsHostnameSettingsArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ZeroTrustAccessMtlsHostnameSettingsArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var zeroTrustAccessMtlsHostnameSettingsResource = new Cloudflare.ZeroTrustAccessMtlsHostnameSettings("zeroTrustAccessMtlsHostnameSettingsResource", new()
{
    Settings = new[]
    {
        new Cloudflare.Inputs.ZeroTrustAccessMtlsHostnameSettingsSettingArgs
        {
            ChinaNetwork = false,
            ClientCertificateForwarding = false,
            Hostname = "string",
        },
    },
    AccountId = "string",
    ZoneId = "string",
});
Copy
example, err := cloudflare.NewZeroTrustAccessMtlsHostnameSettings(ctx, "zeroTrustAccessMtlsHostnameSettingsResource", &cloudflare.ZeroTrustAccessMtlsHostnameSettingsArgs{
	Settings: cloudflare.ZeroTrustAccessMtlsHostnameSettingsSettingArray{
		&cloudflare.ZeroTrustAccessMtlsHostnameSettingsSettingArgs{
			ChinaNetwork:                pulumi.Bool(false),
			ClientCertificateForwarding: pulumi.Bool(false),
			Hostname:                    pulumi.String("string"),
		},
	},
	AccountId: pulumi.String("string"),
	ZoneId:    pulumi.String("string"),
})
Copy
var zeroTrustAccessMtlsHostnameSettingsResource = new ZeroTrustAccessMtlsHostnameSettings("zeroTrustAccessMtlsHostnameSettingsResource", ZeroTrustAccessMtlsHostnameSettingsArgs.builder()
    .settings(ZeroTrustAccessMtlsHostnameSettingsSettingArgs.builder()
        .chinaNetwork(false)
        .clientCertificateForwarding(false)
        .hostname("string")
        .build())
    .accountId("string")
    .zoneId("string")
    .build());
Copy
zero_trust_access_mtls_hostname_settings_resource = cloudflare.ZeroTrustAccessMtlsHostnameSettings("zeroTrustAccessMtlsHostnameSettingsResource",
    settings=[{
        "china_network": False,
        "client_certificate_forwarding": False,
        "hostname": "string",
    }],
    account_id="string",
    zone_id="string")
Copy
const zeroTrustAccessMtlsHostnameSettingsResource = new cloudflare.ZeroTrustAccessMtlsHostnameSettings("zeroTrustAccessMtlsHostnameSettingsResource", {
    settings: [{
        chinaNetwork: false,
        clientCertificateForwarding: false,
        hostname: "string",
    }],
    accountId: "string",
    zoneId: "string",
});
Copy
type: cloudflare:ZeroTrustAccessMtlsHostnameSettings
properties:
    accountId: string
    settings:
        - chinaNetwork: false
          clientCertificateForwarding: false
          hostname: string
    zoneId: string
Copy

ZeroTrustAccessMtlsHostnameSettings Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The ZeroTrustAccessMtlsHostnameSettings resource accepts the following input properties:

Settings This property is required. List<ZeroTrustAccessMtlsHostnameSettingsSetting>
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.
Settings This property is required. []ZeroTrustAccessMtlsHostnameSettingsSettingArgs
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.
settings This property is required. List<ZeroTrustAccessMtlsHostnameSettingsSetting>
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.
settings This property is required. ZeroTrustAccessMtlsHostnameSettingsSetting[]
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.
settings This property is required. Sequence[ZeroTrustAccessMtlsHostnameSettingsSettingArgs]
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.
settings This property is required. List<Property Map>
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.

Outputs

All input properties are implicitly available as output properties. Additionally, the ZeroTrustAccessMtlsHostnameSettings resource produces the following output properties:

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.
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.
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.
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.
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.
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.

Look up Existing ZeroTrustAccessMtlsHostnameSettings Resource

Get an existing ZeroTrustAccessMtlsHostnameSettings resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ZeroTrustAccessMtlsHostnameSettingsState, opts?: CustomResourceOptions): ZeroTrustAccessMtlsHostnameSettings
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account_id: Optional[str] = None,
        china_network: Optional[bool] = None,
        client_certificate_forwarding: Optional[bool] = None,
        hostname: Optional[str] = None,
        settings: Optional[Sequence[ZeroTrustAccessMtlsHostnameSettingsSettingArgs]] = None,
        zone_id: Optional[str] = None) -> ZeroTrustAccessMtlsHostnameSettings
func GetZeroTrustAccessMtlsHostnameSettings(ctx *Context, name string, id IDInput, state *ZeroTrustAccessMtlsHostnameSettingsState, opts ...ResourceOption) (*ZeroTrustAccessMtlsHostnameSettings, error)
public static ZeroTrustAccessMtlsHostnameSettings Get(string name, Input<string> id, ZeroTrustAccessMtlsHostnameSettingsState? state, CustomResourceOptions? opts = null)
public static ZeroTrustAccessMtlsHostnameSettings get(String name, Output<String> id, ZeroTrustAccessMtlsHostnameSettingsState state, CustomResourceOptions options)
resources:  _:    type: cloudflare:ZeroTrustAccessMtlsHostnameSettings    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AccountId string
The Account ID to use for this endpoint. Mutually exclusive with the Zone 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.
Settings List<ZeroTrustAccessMtlsHostnameSettingsSetting>
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.
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.
Settings []ZeroTrustAccessMtlsHostnameSettingsSettingArgs
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.
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.
settings List<ZeroTrustAccessMtlsHostnameSettingsSetting>
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.
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.
settings ZeroTrustAccessMtlsHostnameSettingsSetting[]
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.
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.
settings Sequence[ZeroTrustAccessMtlsHostnameSettingsSettingArgs]
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.
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.
settings List<Property Map>
zoneId String
The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.

Supporting Types

ZeroTrustAccessMtlsHostnameSettingsSetting
, ZeroTrustAccessMtlsHostnameSettingsSettingArgs

ChinaNetwork This property is required. bool
Request client certificates for this hostname in China. Can only be set to true if this zone is china network enabled.
ClientCertificateForwarding This property is required. 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 This property is required. string
The hostname that these settings apply to.
ChinaNetwork This property is required. bool
Request client certificates for this hostname in China. Can only be set to true if this zone is china network enabled.
ClientCertificateForwarding This property is required. 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 This property is required. string
The hostname that these settings apply to.
chinaNetwork This property is required. Boolean
Request client certificates for this hostname in China. Can only be set to true if this zone is china network enabled.
clientCertificateForwarding This property is required. 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 This property is required. String
The hostname that these settings apply to.
chinaNetwork This property is required. boolean
Request client certificates for this hostname in China. Can only be set to true if this zone is china network enabled.
clientCertificateForwarding This property is required. 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 This property is required. string
The hostname that these settings apply to.
china_network This property is required. 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 This property is required. 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 This property is required. str
The hostname that these settings apply to.
chinaNetwork This property is required. Boolean
Request client certificates for this hostname in China. Can only be set to true if this zone is china network enabled.
clientCertificateForwarding This property is required. 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 This property is required. String
The hostname that these settings apply to.

Package Details

Repository
Cloudflare pulumi/pulumi-cloudflare
License
Apache-2.0
Notes
This Pulumi package is based on the cloudflare Terraform Provider.