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
Replace Hostname Associations -> Envelope<{ hostnames }>
put/zones/{zone_id}/certificate_authorities/hostname_associations
Replace 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
Response fields
success: true
Whether the API call was successful
result: { hostnames }
Optional
Request example
curl https://api.cloudflare.com/client/v4/zones/$ZONE_ID/certificate_authorities/hostname_associations \
-X PUT \
-H 'Content-Type: application/json' \
-H "X-Auth-Email: $CLOUDFLARE_EMAIL" \
-H "X-Auth-Key: $CLOUDFLARE_API_KEY" \
-d '{}'
200Example
{
"errors": [
{
"code": 1000,
"message": "message"
}
],
"messages": [
{
"code": 1000,
"message": "message"
}
],
"success": true,
"result": {
"hostnames": [
"api.example.com"
]
}
}
Domain types
HostnameAssociation = string
TLSHostnameAssociation = { hostnames, mtls_certificate_id }