Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support regional tiered cache setting #1334

Closed
sbfaulkner opened this issue Jul 14, 2023 · 0 comments · Fixed by #1336
Closed

support regional tiered cache setting #1334

sbfaulkner opened this issue Jul 14, 2023 · 0 comments · Fixed by #1336

Comments

@sbfaulkner
Copy link
Contributor

Current cloudflare-go version

v0.72.0

Description

Cloudflare has introduced regional tiered caching, but the go package doesn't yet support the feature.

Use cases

Make it possible for clients (eg. terraform) to use the API to configure regional tiered caching.

Potential cloudflare-go usage

got, err := client.GetRegionalTieredCache(context.Background(), ZoneIdentifier(testZoneID))

settings := RegionalTieredCacheSettings { Value: "on" }

got, err := client.SetRegionalTieredCache(context.Background(), ZoneIdentifier(testZoneID), settings)

References

https://developers.cloudflare.com/api/operations/zone-cache-settings-get-regional-tiered-cache-setting
https://developers.cloudflare.com/api/operations/zone-cache-settings-change-regional-tiered-cache-setting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant