cloudflare / cloudflare-go

The official Go library for the Cloudflare API
https://developers.cloudflare.com/api
BSD 3-Clause "New" or "Revised" License
1.44k stars 566 forks source link

Add API support to check if public access is allowed for a R2 bucket #1132

Open Subhajit97 opened 1 year ago

Subhajit97 commented 1 year ago

Current cloudflare-go version

Latest

Description

I am trying to fetch my R2 bucket details using the API and following the docs below. Configure aws-sdk-go for R2 S3 API compatibility

I am trying to get the bucket public access data but didn't find any API that gives any of this data. I have configured my bucket to allow public access. Is there any API using which we can say that the bucket allows public access or similar to that?

Use cases

I have configured my bucket to allow public access from the Cloudflare dashborad. There should be an API that will return if my bucket allows public access and the public bucket URL for that bucket.

Potential cloudflare-go usage

If you can add an API that returns some detail about public access and the public bucket URL of the bucket.

References

No response

jacobbednarz commented 1 year ago

there isn't a public API for this so it is not available to check at the moment.

Subhajit97 commented 1 year ago

Thanks, @jacobbednarz, for the update. Excited to see more API support in the upcoming releases 🙂.