nextcloud-server
- Description:
Empower your data with Nextcloud! Securely store, sync, and share your files, contacts, and calendars across devices. With robust security, expandability, and ease of use, your data thrives effortlessly.
- Copyright:
- 2025 Eyevinn Technology AB
Methods
(async, static) createNextcloudServerInstance(context, body) → {NextcloudServer}
- Description:
Create a new Nextcloud instance
Example
import { Context } from '@osaas/client-core';
import { createNextcloudServerInstance } from '@osaas/client-services';
const ctx = new Context();
const body: NextcloudServerConfig = { name: 'myinstance', ... };
const instance = await createNextcloudServerInstance(ctx, body);
console.log(instance.url);
Parameters:
| Name | Type | Description |
|---|---|---|
context |
Context | Open Source Cloud configuration context |
body |
NextcloudServerConfig | Service instance configuration |
Returns:
- Service instance
- Type
- NextcloudServer
(async, static) getNextcloudServerInstance(context, name) → {NextcloudServer}
- Description:
Get a Nextcloud instance
Example
import { Context } from '@osaas/client-core';
import { getNextcloudServerInstance } from '@osaas/client-services';
const ctx = new Context();
const instance = await getNextcloudServerInstance(ctx, 'myinstance');
console.log(instance.url);
Parameters:
| Name | Type | Description |
|---|---|---|
context |
Context | Open Source Cloud configuration context |
name |
string | Name of the server to be retrieved |
Returns:
- Service instance
- Type
- NextcloudServer
(async, static) removeNextcloudServerInstance(context, name)
- Description:
Remove a Nextcloud instance
Parameters:
| Name | Type | Description |
|---|---|---|
context |
Context | Open Source Cloud configuration context |
name |
string | Name of the server to be removed |