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
- A Nextcloud account - create a Nextcloud account at nextcloud.com/.
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¶
-
Go to the Ibexa Connect and open the Nextcloud's Create a connection module.
-
In the Connection name field, enter a name for the connection.
-
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 ishttps://us.cloudamo.com
. -
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:
|
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:
|
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:
|
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, | 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
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: