pypi cloudflare 5.11.0
v5.11.0

one hour ago

5.11.0 (2026-12-01)

Full Changelog: v5.10.0...v5.11.0

This release adds the Analytics Engine SQL, Workers Observability issues and agent
traces, Zero Trust regions and trust settings, Firewall payload logging, and Zone OHTTP
gateway APIs, plus new methods across AI Gateway, Realtime Kit, Workers for Platforms,
and Zero Trust devices. It also changes pagination for several list() methods, makes
Worker script content.get() return the script as a string, and removes or renames a
number of request and response fields. Review the breaking changes before upgrading.

See the v5.11.0 Migration Guide for upgrade examples.

Breaking Changes

  • cloudforce_one: client.cloudforce_one.threat_events.bulk_create_relationships() has been removed, along with
    the ThreatEventBulkCreateRelationshipsParams and ThreatEventBulkCreateRelationshipsResponse types.
    client.cloudforce_one.threat_signals.articles.list() and threat_signals.search.search() now take feed_id as a
    list of strings instead of a single string.
  • pagination: the following list() methods now return SyncV4PagePaginationArray instead of SyncSinglePage:
    client.hostnames.settings.tls, client.keyless_certificates, client.mtls_certificates,
    client.origin_tls_client_auth (and its hostname_certificates and zone_certificates sub-resources),
    client.pages.projects.domains, client.queues, and client.zero_trust.networks.virtual_networks.
    client.tenants.accounts.list() now returns SyncSinglePage[AccountListResponse] instead of
    SyncV4PagePaginationArray[AccountListResponse], and its page and per_page parameters were removed.
  • zero_trust: client.zero_trust.devices.deployment_groups.list() is no longer paginated and now returns
    DeploymentGroupListResponse (a List[DeploymentGroup]) instead of SyncV4PagePaginationArray[DeploymentGroup].
    The network parameter was removed from client.zero_trust.networks.subnets.warp.edit().
  • workers: client.workers.scripts.content.get() and
    client.workers_for_platforms.dispatch.namespaces.scripts.content.get() now return the script source as str
    instead of BinaryAPIResponse.
  • web3: client.web3.hostnames.ipfs_universal_paths.content_lists.entries.list() now returns EntryListResponse
    instead of Optional[EntryListResponse].
  • turnstile: the region parameter was removed from client.turnstile.widgets.update(); a widget's region can
    only be set when it is created. The unused direction, filter, order, page, and per_page parameters were
    removed from client.turnstile.widgets.create().
  • accounts: the type parameter was removed from client.accounts.update().
  • alerting: the url and secret parameters were removed from client.alerting.destinations.webhooks.update().
  • calls: the key field of TURNCreateResponse (client.calls.turn.create()) was renamed to secret.
  • dns: foundation_dns was removed from client.dns.settings.zone.edit() and client.dns.settings.account.edit()
    (zone_defaults) parameters and from their get() and edit() responses.
  • stream: client.stream.webhooks.update() now takes a single notification_url parameter, replacing
    body_notification_url_1 and body_notification_url_2.
  • security_txt: contact and expires are now required in client.security_txt.update() and are no longer
    optional in SecurityTXTGetResponse.
  • ssl: CertificatePackCreateResponse (client.ssl.certificate_packs.create()) no longer includes
    certificates, cloudflare_branding, dcv_delegation_records, primary_certificate, validation_errors, or
    validation_records, and the Certificate, CertificateGeoRestrictions, DCVDelegationRecord,
    ValidationError, and ValidationRecord classes were removed from that module. Use
    client.ssl.certificate_packs.get() for the full certificate pack.
  • custom_hostnames: custom_certificate and custom_key were removed from the ssl object in custom hostname
    create, edit, get, and list responses (and the certificate pack certificate update response).
  • network_interconnects: account and owner were removed from the physical and GCP partner interconnect
    bodies in client.network_interconnects.interconnects create, get, and list responses.
  • origin_ca_certificates: the limit and offset parameters were removed from
    client.origin_ca_certificates.list(). csr, hostnames, request_type, and requested_validity are now
    optional on OriginCACertificate.
  • realtime_kit: client.realtime_kit.active_session.kick_participants() now requires participant_ids, and the
    custom_participant_ids parameter was removed; the kicked participant entries in its response no longer include
    created_at, updated_at, email, name, or picture. Recording storage configuration unions (meetings and
    recordings) were restructured to add a cloudflare storage type, so the numbered ...StorageConfigUnionMemberN
    classes now refer to different providers.
  • url_scanner: CD, CW, GD, GU, HT, LR, MA, and MM are no longer accepted country values in
    client.url_scanner.scans.create().
  • pipelines: per_page in client.pipelines.list() is now a number instead of a string.
  • zero_trust: environment in client.zero_trust.casb.applications.list() is now
    Literal["fedramp", "standard"] instead of str.
  • zones: ZoneHold.include_subdomains (client.zones.holds) is now Optional[bool] instead of Optional[str].
  • response models: CustomTrustStore.updated_at (client.acm.custom_trust_store),
    Config.hide_original_ip (client.google_tag_gateway.config), ASN.confidence_level
    (client.radar.entities.asns.get()), and the end field of workflow instance steps are now optional.
    Event.event_details in client.zero_trust.risk_scoring.get() is now Optional[Dict[str, object]].
  • union types: union members were renumbered where new variants were added in the middle of a union:
    client.cloudforce_one.threat_events.list() search filters (new notIn and containsAny operators) and
    client.workflows.versions.graph() nodes (new step_runner and step_dynamic nodes). Code that imports the numbered
    ...UnionMemberN classes must be updated; code that passes plain dicts or matches on type is unaffected.

Features

  • analytics_engine: add top-level client.analytics_engine with sql.query()
  • workers: add client.workers.observability.issues (and its automations sub-resource) and
    client.workers.observability.agents.traces
  • zero_trust: add client.zero_trust.regions with update(), list(), delete(), and get()
  • zero_trust: add client.zero_trust.organizations.trust_settings with update(), delete(), get(), and
    replace()
  • zero_trust: add client.zero_trust.devices.override_codes.create() and
    client.zero_trust.tunnels.cloudflared.configurations.delete()
  • firewall: add client.firewall.payload_logging with update(), delete(), and get()
  • zones: add client.zones.ohttp_gateway with create(), delete(), and get(), and the avif zone setting
  • security_center: add client.security_center.state with update() and get()
  • addressing: add client.addressing.address_maps.zones with update() and delete()
  • alerting: add client.alerting.policies.test() and client.alerting.policies.email with details() and
    unsubscribe()
  • browser_rendering: add client.browser_rendering.script with create() and execute()
  • custom_pages: add client.custom_pages.preview_tokens.create()
  • ai_gateway: add eligibility(), get_eligibility(), and limits() to client.ai_gateway.billing.topup
  • containers: add client.containers.usage()
  • email_security: add client.email_security.submissions.create()
  • network_interconnects: add client.network_interconnects.interconnects.loa_default_name()
  • realtime_kit: add active_session.mute_participants() and mute_all_participants(),
    apps.get_app_by_id() and update_app_by_id(), livestreams.get_livestream_session_details_for_meeting() and
    get_livestream_sessions_for_session(), meetings.replace_participant() and revoke_participant_token(), and
    webhooks.get_all_webhooks(); recording storage now supports the cloudflare storage type
  • workers_for_platforms: add update() and edit() to client.workers_for_platforms.dispatch.namespaces
  • workers: add the worker_loader binding type
  • resource_tagging: add app_library_application tagged resources

New Resources

Analytics Engine (client.analytics_engine)

  • sql.query()

Workers Observability Issues (client.workers.observability.issues)

  • update(), list(), add(), get(), group(), notify(), occurrences(), remove(), summary(), and
    ungroup()
  • automations.create(), automations.update(), automations.list(), automations.delete(), and
    automations.get()

Workers Observability Agents (client.workers.observability.agents)

  • traces.list(), traces.events(), and traces.get()

Zero Trust Regions (client.zero_trust.regions)

  • update(), list(), delete(), and get()

Zero Trust Organization Trust Settings (client.zero_trust.organizations.trust_settings)

  • update(), delete(), get(), and replace()

Firewall Payload Logging (client.firewall.payload_logging)

  • update(), delete(), and get()

Zone OHTTP Gateway (client.zones.ohttp_gateway)

  • create(), delete(), and get()

Chores

  • internal: pin a stable Node.js runtime for pyright type checks (pyright[nodejs] dev dependency)

Don't miss a new cloudflare release

NewReleases is sending notifications on new releases.