Certificate Authorities

certificate_authorities

Certificate Authorities

Hostname Associations

certificate_authorities.hostname_associations

Methods

List Hostname Associations -> Envelope<{ hostnames }>
get/zones/{zone_id}/certificate_authorities/hostname_associations

List Hostname Associations

Security
API Email + API Key

The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

Example: X-Auth-Email: user@example.com

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

Example: X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194

Parameters
zone_id: string

Identifier

mtls_certificate_id: string
Optional

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.

Response fields
errors: Array<>
messages: Array<>
success: true

Whether the API call was successful

result: { hostnames }
Optional
Request example
200Example
Replace Hostname Associations -> Envelope<{ hostnames }>
put/zones/{zone_id}/certificate_authorities/hostname_associations

Replace Hostname Associations

Domain types

HostnameAssociation = string
TLSHostnameAssociation = { hostnames, mtls_certificate_id }