Skip to content

Nextcloud

The Nextcloud modules allow you to monitor, create, update, send, retrieve, move, copy, download, and delete the files in your Nextcloud account.

Getting Started with Nextcloud

Prerequisites

Note

The module dialog fields that are displayed in bold (in the Ibexa Connect scenario, not in this documentation article) are mandatory!

Connecting Nextcloud to Ibexa Connect

  1. Go to the Ibexa Connect and open the Nextcloud's Create a connection module.

    61f274166a4e5.gif

  2. In the Connection name field, enter a name for the connection.

  3. In the Domain URL field, enter your Nextcloud account's URL address. For example, if your account access URL address is https://us.cloudamo.com/user, then your domain URL is https://us.cloudamo.com.

  4. In the Username and Password fields, enter your Nextcloud account credentials respectively and click Continue.

The connection has been established.

File/Folder

Watch Files

Triggers when a file is created and updated.

Location Select or map the location of the folder whose files you want to watch.
Limit Set the maximum number of files Ibexa Connect should return during one execution cycle.

List Files/Folders

Retrieves a list of files and folders.

Location Select or map the location of the folder whose files you want to list.
Limit Set the maximum number of files Ibexa Connect should return during one execution cycle.

Download a File

Downloads a file.

Location Select or map the path of the file you want to download. For example, /abc/xyz.txt.

Upload a File

Retrieves a list of files and folders.

File Name Enter (map) the file name with extension.
Data Enter (map) the file data.
Location Select or map the path to the file you want to upload. For example, /abc/xy.txt.

Create a Folder

Creates a new folder.

Folder Name Enter (map) a name for the folder.
Location Select the location or map the path for creating the folder.

Move a File/Folder

Moves a file or folder.

Select a Method

Select or map the option you want to move:

  • Move a File

  • Move a Folder

File Path

Select a location or enter the path of the file which you want to move.

Folder Path

Select a location or enter the path of the folder which you want to move.

Destination

Select a location or enter the path to where you want to move the file or the folder.

Overwrite an Existing File/Folder

Select the checkbox if you want to overwrite the existing file or folder.

Copy a File/Folder

Copies a file or folder.

Select a Method

Select or map the option you want to move:

  • Copy a File

  • Copy a Folder

File Path

Select a location or enter the path of the file or folder which you want to copy.

Destination

Select a location or enter the path of the folder or file to where you want to copy.

Overwrite an Existing File/Folder

Select the checkbox if you want to overwrite the existing file or folder.

Delete a File/Folder

Deletes a file or folder.

Copies a file or folder.

Select a Method

Select or map the option you want to move:

  • Delete a File

  • Delete a Folder

File Path

Select a location or enter the path of the file or folder which you want to delete.

Other

Make an API Call

Performs an arbitrary authorized API call.

URL

Enter a path relative to your Server URL address. For example, remote.php/dav/files/[username].

For the list of available endpoints, refer to the Nextcloud API Documentation.

Method

Select the HTTP method you want to use:

GET

to retrieve information for an entry.

POST

to create a new entry.

PUT

to update/replace an existing entry.

PATCH

to make a partial entry update.

DELETE

to delete an entry.

PROPFIND

to retrieve properties defined on the resource

MOVE

to move the specified resource.

COPY

to copy the specified resource.

MKCOL

to create a new resource at the specified location.

Headers

Enter the desired request headers. You don't have to add authorization headers; we already did that for you.

Query String

Enter the request query string.

Body

Enter the body content for your API call.

Example of Use - List Files

The following API call returns all the files from your Nextcloud account:

URL:

/remote.php/dav/files/[email protected]

Method

:GET

61f27418c91cb.png

Matches of the search can be found in the module's Output under Bundle > Body > d:multistatus > d:response.

In our example, 10 files were returned:

61f27419ed882.png