Skip to content
Start here

Certificate Authorities

Certificate AuthoritiesHostname Associations

resource cloudflare_certificate_authorities_hostname_associations

required Expand Collapse
zone_id: String

Identifier.

optional Expand Collapse
mtls_certificate_id?: String

The UUID for a certificate that was uploaded to the mTLS Certificate Management endpoint. If no mtls_certificate_id is given, the hostnames will be associated to your active Cloudflare Managed CA.

hostnames?: List[String]
computed Expand Collapse
id: String

Identifier.

cloudflare_certificate_authorities_hostname_associations

resource "cloudflare_certificate_authorities_hostname_associations" "example_certificate_authorities_hostname_associations" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  hostnames = ["api.example.com"]
  mtls_certificate_id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}

data cloudflare_certificate_authorities_hostname_associations

required Expand Collapse
zone_id: String

Identifier.

optional Expand Collapse
mtls_certificate_id?: String

The UUID to match against for a certificate that was uploaded to the mTLS Certificate Management endpoint. If no mtls_certificate_id is given, the results will be the hostnames associated to your active Cloudflare Managed CA.

computed Expand Collapse
id: String

Identifier.

hostnames: List[String]

cloudflare_certificate_authorities_hostname_associations

data "cloudflare_certificate_authorities_hostname_associations" "example_certificate_authorities_hostname_associations" {
  zone_id = "023e105f4ecef8ad9ca31a8372d0c353"
  mtls_certificate_id = "b2134436-2555-4acf-be5b-26c48136575e"
}