Programatically configuring external storage

Ask all your questions regarding OC 8.0 and 8.1 Please read the Support Forum Rules
Forum rules
The forums were migrated over to https://central.owncloud.org which is based on the forum software Discourse. The forums here is put into read-only mode starting from today.

More background information about this move and the reasoning behind it is available in this blogpost:

https://daniel.molkentin.net/2016/07/20 ... d-central/
HarryStine
Newbie
Posts: 7
Joined: Thu Mar 31, 2016 1:43 am
ownCloud version: 8.1.5
OS: Linux

Programatically configuring external storage

Postby HarryStine » Mon Apr 11, 2016 6:43 pm

Here is something I am trying to do. If anyone here has figured it out already, I would love to learn how. Otherwise, I will update in this thread what, if anything, I figure out.

I am attempting to create a client application for owncloud that will interface openstack and amazon s3 through owncloud. I want to make this application such that it approximates a connection to S3 and Openstack as closely as possible. For that I am looking to find a way to create and remove buckets/containers in S3 and Openstack.

Unfortunately, the way owncloud external storage seems to work involves connecting to a specific bucket or container and not openstack or s3 as a whole.

So, what I am trying to do is find a way to tell owncloud (through an API and not the GUI) to set up external storage with a container/bucket located in amazon or on openstack. A plus would be to somehow get owncloud to communicate with amazon or openstack to create the container or bucket, but perhaps the only thing to be done here would be to communicate with amazon/openstack directly.

At present I am looking at webdav and OCS to see if either of those interfaces allow for configuring external storage. Also, I am looking at them to see if either of them allow for creating a bucket/container in an external storage device.

Does anyone here already know a way to do this?

Thank you for any assistance you can offer.

v/r,
Harry Stine

RealRancor
ownCloud master
Posts: 17381
Joined: Sat May 26, 2012 3:00 pm
ownCloud version: 9.0.2
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7.0.x

Re: Programatically configuring external storage

Postby RealRancor » Mon Apr 11, 2016 6:48 pm

Hi,

starting with oC9 you can do that via the occ command line tool:

https://doc.owncloud.org/server/9.0/adm ... ation.html

According to:

https://doc.owncloud.org/server/9.0/adm ... stack.html

the bucket will be created by oC if it doesn't exist.
*gone*

HarryStine
Newbie
Posts: 7
Joined: Thu Mar 31, 2016 1:43 am
ownCloud version: 8.1.5
OS: Linux

Re: Programatically configuring external storage

Postby HarryStine » Mon Apr 11, 2016 6:58 pm

Awesome!

Unfortunately, I am not using Owncloud 9, but I will certainly take a look to know what is available.


  • Similar Topics
    Replies
    Views
    Last post

Return to “ownCloud Server 8.0 and 8.1”

Who is online

Users browsing this forum: No registered users and 0 guests