github cloudflare/cloudflare-go v7.11.0

5 hours ago

7.11.0 (2026-09-24)

Breaking Changes

  • addressing: AddressMaps.Accounts.Update() and AddressMaps.Accounts.Delete() now require an explicit memberAccountID string path parameter. The endpoint path was corrected from {account_id} to {member_account_id}. Callers must add the member account ID as a new positional argument.
  • cache: State type removed from the cache package.
  • cache: OriginCloudRegions return type consolidation: Update() now returns *OriginCloudRegionUpdateResponse (was *OriginCloudRegion); List() now returns V4PagePaginationArray[OriginCloudRegionListResponse] (was [OriginCloudRegion]); Get() now returns *OriginCloudRegionGetResponse (was *OriginCloudRegion). The shared OriginCloudRegion type is removed.
  • firewall: WAF.Overrides methods (New, Update, List, Delete, Get) now return only error instead of typed responses. Types Override, OverrideURL, RewriteAction, WAFRule, and WAFOverrideDeleteResponse are removed from the firewall package.
  • firewall: WAF.Packages.Get() return type changed from *WAFPackageGetResponse to *interface{}. The WAFPackageGetResponse type is removed.
  • hyperdrive: The shared Hyperdrive response type is removed. All Configs methods now return per-method response types: New() returns *ConfigNewResponse, Update() returns *ConfigUpdateResponse, List() returns V4PagePaginationArray[ConfigListResponse], Edit() returns *ConfigEditResponse, Get() returns *ConfigGetResponse.
  • rate_limits: All methods (New, List, Delete, Edit, Get) now return only error. The RateLimit and RateLimitDeleteResponse types are removed.
  • snippets: Rules.Update(), Rules.List(), Rules.Delete(), and Rules.Get() return types changed to *pagination.SinglePage[Rule*Response] instead of the previous direct *Rule*Response types.
  • ssl: VerificationValidationMethod type and its constants (VerificationValidationMethodHTTP, VerificationValidationMethodCNAME, VerificationValidationMethodTXT) removed. Verification.ValidationMethod field type changed from VerificationValidationMethod to the shared ValidationMethod type. Use ssl.ValidationMethodHTTP, ssl.ValidationMethodCNAME, ssl.ValidationMethodTXT instead.
  • user: Tokens.Value.Update() signature changed: the body TokenValueUpdateParams parameter is removed. Callers must remove the body argument from call sites.
  • workers: Scripts.Deployments.List() return type changed from *ScriptDeploymentListResponse to *pagination.V4PagePagination[ScriptDeploymentListResponse]. Callers using ListAutoPaging() are unaffected; callers referencing the return value by type must update.

Features

  • NEW SERVICE: managed_defense -- Managed Defense vulnerability discovery management
    • VulnerabilityDiscovery.Repositories.New(), List(), Get()
    • VulnerabilityDiscovery.Scans.New(), List(), Get(), GetReport()
    • VulnerabilityDiscovery.Reports.Get()
  • NEW SERVICE: field_extractors -- Field extractor configuration
    • Update() - PUT /accounts/{account_id}/field_extractors/{extractor}
    • Delete() - DELETE /accounts/{account_id}/field_extractors/{extractor}
    • Get() - GET /accounts/{account_id}/field_extractors/{extractor}
  • accounts: add Entitlements.List() method (GET /accounts/{account_id}/entitlements)
  • hyperdrive: add Configs.Restart() method (POST /accounts/{account_id}/hyperdrive/configs/{hyperdrive_id}/restart)
  • magic_transit: add BGPFilterProfiles sub-resource with New(), Update(), List(), Delete(), Get() methods (/accounts/{account_id}/magic/bgp/filter_profiles)
  • pipelines: add shared ListField, SourceField, and StructField types (and corresponding param variants)
  • registrar: add TransferIn.New() method (POST /accounts/{account_id}/registrar/registrations/{domain_name}/transfer-in)
  • registrar: add TransferInStatus.Get() method (GET /accounts/{account_id}/registrar/registrations/{domain_name}/transfer-in-status)
  • zero_trust: add Casb.Posture.Policies sub-resource with New(), Update(), List(), Delete(), Get() methods
  • zones: add Entitlements.List() method (GET /zones/{zone_id}/entitlements)
  • zones: add Observability.Tracing.Settings sub-resource with Update(), Delete(), Get() methods
  • zones: add Observability.Tracing.Rules sub-resource with Update(), Delete(), Get() methods

Don't miss a new cloudflare-go release

NewReleases is sending notifications on new releases.