URL Endpoint #16

Closed
freshface opened this Issue Nov 12, 2011 · 6 comments

Comments

Projects
None yet
2 participants

Is it possible to get the bucket and file endpoint url thru the api?

Owner

tpyo commented Nov 12, 2011

Not sure what you mean?

I want to know the public url of a bucket or file:
For example: https://s3-eu-west-1.amazonaws.com/dzazadazdzadzadazdza/figure8.png

Owner

tpyo commented Nov 12, 2011

It doesn't do that. Why not just use parse_url()? http://php.net/parse_url

tpyo closed this Nov 12, 2011

I create a bucket or file via the api.
And ofter that i want to know the url thru the api.
Because i can set the region of a bucket (us, eu, …) the url of a file or bucket is different.

Owner

tpyo commented Nov 12, 2011

You could use getBucketLocation() to retrieve a bucket's location. But it would be better to just keep track of which regions buckets are created in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment