Hierarchical key for linode object storage

I am trying out linode object storage to store vagrant boxes. What I would like to do is to put an object at a url like https://foo.us-east-1.linodeobjects.com/vagrant/foo/debian10.

Is this currently possible?

1 Reply

Hey @dakimcharles - this is possible! Since all new objects in a bucket are set to private by default, you'll have to make an object public in order to generate a publicly accessible URL.

Rather than through the Cloud Manager, this can be done using the Linode CLI and the obj plugin (Configure the Object Storage plugin).

If you'd like to make an object public upon the initial upload, you can use the following syntax using the Linode CLI:

linode-cli obj put --acl-public example.txt my-example-bucket

This will make the object available at this example URL: http://my-example-bucket.us-east-1.linodeobjects.com/example.txt.

If you want to make an object public after it's already been uploaded, you'll need to adjust the ACL (Access Control List) parameters for the object itself:

linode-cli obj setacl --acl-public my-example-bucket example.txt

More on ACLs here: Enacting Access Control Lists (ACLs) and Bucket Policies with Linode Object Storage

There are some more examples of object management in our Object Storage guide: How to Use Linode Object Storage

And there's more info on file storage in our Use Cases guide: Use Cases for Linode Object Storage

Hope this helps!

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct