Reputation: 307
So, I have a bucket on IBM's Cloud Object Storage. In this bucket I have an file named 'test.png'.
What I need is an URL i can use to access this file directly. An URL that I can just write on browser and the image will open on my browser.
I've searched everywhere and could not find anything except for a "ObjectSQL URL" in this format:
cos://{Region}/{Bucket}/{File}
Upvotes: 4
Views: 4189
Reputation: 139
I know this is an old question, but I keep coming back to it for reference and have to find out the rest of the link.
The structure of the URL is:
https://s3.{region}.cloud-object-storage.appdomain.cloud/{bucket-name}/{filename-with-extension}
The region can be found in the details of an object, inside the Object SQL URL, as you mentioned, or in the list below:
regions:
cross-regional: [ap,eu,us]
regional: [au-syd, br-sao, ca-tor, eu-de, eu-gb, jp-osa, jp-tok, us-east, us-south]
single-site: [ams03, hkg02, sng01, mil01, sjc04, sao01, seo01, tor01]
Reference: https://www.ibm.com/docs/en/aspera-on-cloud?topic=basics-cloud-platforms-regions-supported
Upvotes: 1
Reputation: 867
Presuming that the bucket has public access enabled, the URL is just https://{endpoint}/{bucket}/{object}
(or https://{bucket}.{endpoint}/{object}
. So if your image is in a US Cross-Region bucket called 'images', the URL would be https://s3.us.cloud-object-storage.appdomain.cloud/images/test.png
(or https://images.s3.us.cloud-object-storage.appdomain.cloud/test.png
) and it would render in a browser (most of the time, different browsers have different behaviors).
Now, that assumes a public access bucket, where all data in the bucket is publicly accessible. If you want to just make a single object accessible for a limited time, you'd need to create a presigned URL using HMAC credentials.
Upvotes: 11