Repository navigation
5.10.0 (2026-11-05)
Full Changelog: v5.9.0...v5.10.0
This release adds the K2 streaming, Monetization, Zero Trust CWS, and Billing
Spend Policies APIs, plus Zero Trust Access user populations and MFA catalog
resources. It also removes the Magic Cloud Networking and Tenant Custom
Nameservers resources and changes several pagination and response types. Review
the breaking changes before upgrading.
See the v5.10.0 Migration Guide for upgrade examples.
Breaking Changes
- magic_cloud_networking:
client.magic_cloud_networkinghas been removed entirely, including thecatalog_syncs
(andprebuilt_policies),on_ramps(andaddress_spaces),cloud_integrations, andresourcessub-resources
and allcloudflare.types.magic_cloud_networkingexports. - tenant_custom_nameservers:
client.tenant_custom_nameservershas been removed, along with itscreate(),
delete(), andget()methods and theTenantCustomNameserverCreateResponse,TenantCustomNameserverDeleteResponse,
andTenantCustomNameserverGetResponsetypes. - tenants:
client.tenants.get()has been removed, along with theaccount_types,entitlements, and
membershipssub-resources and theTenantandTenantAccounttypes.client.tenants.accounts.list()now returns
SyncV4PagePaginationArray[AccountListResponse]instead ofSyncSinglePage[TenantAccount]. - user:
client.user.tenants.list()now returnsSyncSinglePage[TenantListResponse]instead of
SyncSinglePage[Organization], and theOrganizationtype was removed fromcloudflare.types.user. - accounts: the
client.accounts.pay_bad_debtsub-resource has been removed.client.accounts.subscriptions.bulk.create()
now returnsBulkCreateResponseinstead ofOptional[BulkCreateResponse]. - registrar: the
client.registrar.domainssub-resource has been removed. - browser_rendering:
client.browser_rendering.devtools.browser.connect()andlaunch()have been removed, along
with thedevtools.browser.pagesub-resource. - aisearch: the instance path identifier was renamed from
nametonamespaceacross every
client.aisearch.namespaces.instancesmethod and itsitemsandjobssub-resources. Callers passingname=must
switch tonamespace=. - rulesets:
client.rulesets.list()is no longer paginated and now returnsRulesetListResponsedirectly (was
SyncCursorPagination[RulesetListResponse]).client.rulesets.versions.list()and
client.rulesets.phases.versions.list()likewise now returnVersionListResponseinstead of
SyncSinglePage[VersionListResponse]. - pagination:
client.zero_trust.resource_library.applications.list()andcategories.list()now return
SyncCursorPaginationAfterinstead ofSyncSinglePage.client.diagnostics.endpoint_healthchecks.list()now returns
SyncSinglePage[EndpointHealthcheckListResponse]instead ofOptional[EndpointHealthcheckListResponse]. - vectorize:
client.vectorize.indexes.get_by_ids()now usesGETand returns
SyncSinglePage[IndexGetByIDsResponse]instead of issuingPOSTand returningobject. - response models:
client.zero_trust.access.users.last_seen_identity.get()now returns
Optional[LastSeenIdentityGetResponse]and theIdentitytype was removed.
client.workers_for_platforms.dispatch.namespaces.scripts.tags.delete()now returnsTagDeleteResponseinstead of
object. - removed types: the shared
LoadBalancerPreviewtype was removed, along with
magic_transit.WANStaticAddressingParam,organizations.OrganizationProfileParam, and
precursor.EnforcementRuleParam.
Features
- k2: add top-level
client.k2withstreamsandstreams.subscriptionsAPIs - monetization: add top-level
client.monetizationwith zone-level monetizationrulesAPIs - zero_trust: add
client.zero_trust.cwswithbasic_auth_credentials(andsecrets),deployments,
domain_acls,policies,policy_sets,rego_metadata,rego_modules,tenant_structures(andnodes), and
workloadsAPIs - billing: add
client.billing.spend_policieswithcreate(),update(),list(),delete(), andget(),
plusactivityandauditlisting sub-resources - zero_trust: add
client.zero_trust.access.user_populations(and itsuserssub-resource) with full CRUD - zero_trust: add
client.zero_trust.access.mfa.authenticator_catalogandclient.zero_trust.access.logs.jit_requests - zero_trust: add
mfa_authenticatorsandpasskeysdelete sub-resources toclient.zero_trust.access.users - zero_trust: add
client.zero_trust.casb.posture.asset_schemas; addcreate(),update(),delete(), and
validate()toclient.zero_trust.casb.posture.finding_types - zero_trust: add
client.zero_trust.dlp.validators(and itsproximity_wordssub-resource) - zero_trust: add
client.zero_trust.gateway.dns_destination_ips - zero_trust: add
delete()andget()toclient.zero_trust.identity_providers.scim.groupsandscim.users - dns: add
client.dns.settings.account.nameserver_setswithcreate(),list(),delete(), andget() - r2: add
client.r2.buckets.jobswithcreate(),list(), andget() - aisearch: add
client.aisearch.namespaces.instances.move() - api_gateway: add
client.api_gateway.discovery.operations.edit() - d1: add
client.d1.database.undelete() - workers: add
client.workers.beta.workers.versions.profile() - zero_trust: add
client.zero_trust.access.custom_pages.validate()
New Resources
K2 (client.k2)
streams.create(),streams.update(),streams.list(),streams.delete(), andstreams.get()streams.subscriptions.list()
Monetization (client.monetization)
rules.update(),rules.delete(),rules.delete_rule(),rules.edit_rule(),rules.get(), andrules.get_rule()
Zero Trust CWS (client.zero_trust.cws)
basic_auth_credentials.create(),list(),delete(),get(), andbasic_auth_credentials.secrets.*deployments.create(),update(),list(),delete(), andget()domain_acls.create(),update(),list(),delete(), andget()policies.create(),update(),list(),delete(), andget()policy_sets.create(),update(),list(),delete(), andget()rego_metadata.create(),update(),list(),delete(), andget()rego_modules.create(),update(),list(),delete(), andget()tenant_structures.create(),update(),list(),delete(),get(), andtenant_structures.nodes.*workloads.create(),update(),list(),delete(), andget()
Billing Spend Policies (client.billing.spend_policies)
create(),update(),list(),delete(), andget()activity.list()andaudit.list()
Zero Trust Access User Populations (client.zero_trust.access.user_populations)
create(),update(),list(),delete(), andget()users.create(),users.update(),users.list(),users.delete(),users.get(), andusers.replace()