cloudflare/cloudflare-go v7.8.0
cloudflare/cloudflare-go
Captured source
source ↗published Jul 27, 2026seen 12hcaptured 12hhttp 200method plain
v7.8.0
Repository: cloudflare/cloudflare-go
Tag: v7.8.0
Published: 2026-07-27T14:45:11Z
Prerelease: no
Release notes:
7.8.0 (2026-07-24)
Breaking Changes
See the [v7.8.0 Migration Guide](./docs/migration-guides/v7.8.0-migration-guide.md) for before/after code examples and actions needed for each change.
- acm:
CertificateAuthorityparam and response type removed from theacmpackage. Callers referencing this type directly must update. - brand_protection:
V2.Queries.Get()return type changed from*[]V2QueryGetResponseto*V2QueryGetResponseUnion. TheV2QueryGetResponsetype is removed; use the new union type and handle variants via.AsUnion(). - certificate_authorities:
HostnameAssociationParamandHostnameAssociationtypes removed. UseTLSHostnameAssociationParamand the per-method response types instead. - cloudforce_one:
ThreatEvents.IndicatorTypessub-resource relocated toThreatEvents.Indicators.Types. The endpoint path changed from/events/indicatorTypesto/events/indicator-types. The type nameThreatEventIndicatorTypeListResponseis unchanged. - custom_certificates:
Statusresponse type removed from thecustom_certificatespackage. - hyperdrive:
Configs.List()pagination type changed fromSinglePage[Hyperdrive]toV4PagePaginationArray[Hyperdrive]. The second parameter name changed fromquerytoparams. - moq:
Relays.Tokens.Rotate()method removed along withRelayTokenRotateResponseandRelayTokenRotateParams. Replaced by full CRUD:Tokens.New(),Tokens.List(),Tokens.Delete(). - mtls_certificates: shared
MTLSCertificateresponse type removed.List(),Delete(), andGet()now returnMTLSCertificateListResponse,MTLSCertificateDeleteResponse, andMTLSCertificateGetResponserespectively. - ssl:
HostParam,Host,Status, andValidationMethodtypes removed from thesslpackage. - zero_trust:
Casb.Applications.SetupFlowssub-resource renamed toCasb.Applications.AuthMethods. TheCasbApplicationSetupFlowListResponsetype is replaced byCasbApplicationAuthMethodListResponse. The path parameter onApplications.Get()changed fromslug(CasbApplicationGetParamsSlug) toapplicationID(CasbApplicationGetParamsApplicationID).
Features
- NEW SERVICE: `registrar_sandbox` -- test domain registration flows without buying real domains
client.RegistrarSandbox.Check,client.RegistrarSandbox.SearchRegistrations.{New,List,Edit,Get}RegistrationStatus.Get,UpdateStatus.GetExtensions.{List,Get}- NEW SERVICE: `AnalyticsQuery` -- analytics query API at the top-level client
client.AnalyticsQuery.Summary,client.AnalyticsQuery.Timeseries,client.AnalyticsQuery.TopNDataSecurity.ContentFindings.TopNDataSecurity.Findings.{Summary,Timeseries}- ai_audit: add
Robots.BulkGetandRobots.Getmethods - billing: add
Usage.PaygoInfomethod (GET /accounts/{account_id}/paygo-usage-info) - cloudforce_one: major expansion of
ThreatEventssub-resources: Aggregate.List,Graphql.New,Graph.ListQueries.{New,List,Delete,Edit,Get}Relationships.ListIndicators.{List,Aggregate,ByDataset,ByDataset.Tags}Categories.Catalog.ListDatasets.{Delete,Events.Get}Tags.{List,Delete,Edit}+Tags.Categories.{New,Update,List,Delete,Get}+Tags.Indicators,Tags.Indicators.ByDatasetTargetIndustries.{ByDataset.List,Catalog.List}- email_routing: add
Update,Editmethods on the root service; addRules.ListandAccountRules.Listmethods - email_security: add
Settings.Domains.BulkDeletemethod - magic_transit: add
Connectors.Interruptssub-resource (New,List) - moq: add
Relays.Tokens.{New,List,Delete}methods (replacingRotate) - registrar: add
Extensionssub-resource (List,Get) - zero_trust: add
Casb.Posturesub-resource tree (~40 new methods): Findings.{List,Export,Get,Ignore,ResetSeverity,TuneSeverity,Unignore}Findings.Instances.{List,Archive,Export,Get,Unarchive}Exports.{List,Get}FindingTypes.{List,Get}+FindingTypes.RemediationTypes.ListContent.{List,Export}Remediations.Jobs.{New,List,Export}Webhooks.{New,Update,List,Delete,Evaluate,EvaluateExisting,Get}+Webhooks.Jobs.New- accounts:
Subscriptions.NewandSubscriptions.Getnow support both account-level and zone-level paths (/{accounts_or_zones}/{account_or_zone_id}/subscriptions). Params accept bothAccountIDandZoneID(mutually exclusive); existingAccountID-only callers are unaffected. - load_balancers: endpoints now support both account-level and zone-level paths (
/{accounts_or_zones}/{account_or_zone_id}/load_balancers). Params accept bothAccountIDandZoneID; existingZoneID-only callers are unaffected.