Skip to content
Start here

Certificate Authorities

Certificate AuthoritiesHostname Associations

List Hostname Associations
client.certificateAuthorities.hostnameAssociations.get(HostnameAssociationGetParams { zone_id, mtls_certificate_id } params, RequestOptionsoptions?): HostnameAssociationGetResponse { hostnames }
GET/zones/{zone_id}/certificate_authorities/hostname_associations
Replace Hostname Associations
client.certificateAuthorities.hostnameAssociations.update(HostnameAssociationUpdateParams { zone_id, hostnames, mtls_certificate_id } params, RequestOptionsoptions?): HostnameAssociationUpdateResponse { hostnames }
PUT/zones/{zone_id}/certificate_authorities/hostname_associations
ModelsExpand Collapse
HostnameAssociation = string
TLSHostnameAssociation { hostnames, mtls_certificate_id }
hostnames?: Array<HostnameAssociation>
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.

maxLength36
minLength36
HostnameAssociationGetResponse { hostnames }
hostnames?: Array<HostnameAssociation>
HostnameAssociationUpdateResponse { hostnames }
hostnames?: Array<HostnameAssociation>