Skip to content

Cloudflare

lacme.challenges.providers.cloudflare

Cloudflare DNS provider for DNS-01 challenges.

Uses the Cloudflare REST API v4 via :mod:httpx to create and delete TXT records in a specified zone.

CloudflareDNSProvider

DNS provider backed by the Cloudflare API.

Satisfies :class:~lacme.challenges.dns01.DNSProvider. Reuses a single :class:httpx.AsyncClient for connection pooling.

close async
close() -> None

Close the underlying HTTP client.

create_txt_record async
create_txt_record(domain: str, value: str) -> None

Create a TXT record via the Cloudflare API.

delete_txt_record async
delete_txt_record(domain: str, value: str) -> None

Delete a TXT record via the Cloudflare API.