Skip to content

Commit

Permalink
apidoc@feature-6974-1 #699
Browse files Browse the repository at this point in the history
  • Loading branch information
nethbot committed Sep 2, 2024
0 parents commit 8249623
Show file tree
Hide file tree
Showing 992 changed files with 32,537 additions and 0 deletions.
569 changes: 569 additions & 0 deletions core/README.md

Large diffs are not rendered by default.

15 changes: 15 additions & 0 deletions core/add-backup-input-properties-backup-name.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Backup name Schema

```txt
http://schema.nethserver.org/cluster/add-backup-input.json#/properties/name
```

If set to empty, a default name is set (e.g. `Backup 3`)

| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------ |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [add-backup-input.json\*](cluster/add-backup-input.json "open original schema") |

## name Type

`string` ([Backup name](add-backup-input-properties-backup-name.md))
19 changes: 19 additions & 0 deletions core/add-backup-input-properties-backup-retention.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Backup retention Schema

```txt
http://schema.nethserver.org/cluster/add-backup-input.json#/properties/retention
```

Number of backup snapshots to store before automatic deletion

| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------ |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [add-backup-input.json\*](cluster/add-backup-input.json "open original schema") |

## retention Type

`integer` ([Backup retention](add-backup-input-properties-backup-retention.md))

## retention Constraints

**minimum**: the value of this number must greater than or equal to: `1`
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Enabled/disabled status. If \`false\` the backup is stopped. Schema

```txt
http://schema.nethserver.org/cluster/add-backup-input.json#/properties/enabled
```



| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------ |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [add-backup-input.json\*](cluster/add-backup-input.json "open original schema") |

## enabled Type

`boolean` ([Enabled/disabled status. If \`false\` the backup is stopped.](add-backup-input-properties-enableddisabled-status-if-false-the-backup-is-stopped.md))
19 changes: 19 additions & 0 deletions core/add-backup-input-properties-module-instances-items.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Untitled string in add-backup input Schema

```txt
http://schema.nethserver.org/cluster/add-backup-input.json#/properties/instances/items
```



| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------ |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [add-backup-input.json\*](cluster/add-backup-input.json "open original schema") |

## items Type

`string`

## items Constraints

**minimum length**: the minimum number of characters for this string is: `1`
15 changes: 15 additions & 0 deletions core/add-backup-input-properties-module-instances.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Module instances Schema

```txt
http://schema.nethserver.org/cluster/add-backup-input.json#/properties/instances
```

Identifiers of module instances included in the backup

| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------ |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [add-backup-input.json\*](cluster/add-backup-input.json "open original schema") |

## instances Type

`string[]`
25 changes: 25 additions & 0 deletions core/add-backup-input-properties-repository-uuid-reference.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Repository UUID reference Schema

```txt
http://schema.nethserver.org/cluster/add-backup-input.json#/properties/repository
```



| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------ |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [add-backup-input.json\*](cluster/add-backup-input.json "open original schema") |

## repository Type

`string` ([Repository UUID reference](add-backup-input-properties-repository-uuid-reference.md))

## repository Constraints

**pattern**: the string must match the following regular expression: 

```regexp
^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
```

[try pattern](https://regexr.com/?expression=%5E%5B0-9a-f%5D%7B8%7D-%5B0-9a-f%5D%7B4%7D-%5B0-9a-f%5D%7B4%7D-%5B0-9a-f%5D%7B4%7D-%5B0-9a-f%5D%7B12%7D%24 "try regular expression with regexr.com")
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Schedule expression hint for UI Schema

```txt
http://schema.nethserver.org/cluster/add-backup-input.json#/properties/schedule_hint
```

Store arbitrary object to ease parsing of `schedule` value

| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------ |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [add-backup-input.json\*](cluster/add-backup-input.json "open original schema") |

## schedule\_hint Type

`object` ([Schedule expression hint for UI](add-backup-input-properties-schedule-expression-hint-for-ui.md))
21 changes: 21 additions & 0 deletions core/add-backup-input-properties-time-schedule-expression.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Time schedule expression Schema

```txt
http://schema.nethserver.org/cluster/add-backup-input.json#/properties/schedule
```

The string format must be compatible with Calendar Events, described in `systemd.timer` man page

| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------ |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [add-backup-input.json\*](cluster/add-backup-input.json "open original schema") |

## schedule Type

`string` ([Time schedule expression](add-backup-input-properties-time-schedule-expression.md))

## schedule Constraints

**maximum length**: the maximum number of characters for this string is: `64`

**minimum length**: the minimum number of characters for this string is: `1`
1 change: 1 addition & 0 deletions core/add-backup-input.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"$schema":"http://json-schema.org/draft-07/schema#","title":"add-backup input","$id":"http://schema.nethserver.org/cluster/add-backup-input.json","description":"Configure a new backup instance","examples":[{"name":"BB daily","repository":"6a2a6208-7d4f-5915-9419-e4f1faaa1c76","schedule":"daily","schedule_hint":{},"retention":"7d","instances":["dokuwiki1","nextcloud1"],"enabled":true}],"type":"object","required":["name","instances","repository","schedule","retention","enabled"],"properties":{"instances":{"title":"Module instances","description":"Identifiers of module instances included in the backup","type":"array","items":{"type":"string","minLength":1}},"repository":{"title":"Repository UUID reference","type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"},"schedule":{"title":"Time schedule expression","description":"The string format must be compatible with Calendar Events, described in `systemd.timer` man page","type":"string","minLength":1,"maxLength":64},"schedule_hint":{"title":"Schedule expression hint for UI","description":"Store arbitrary object to ease parsing of `schedule` value","type":"object"},"retention":{"title":"Backup retention","description":"Number of backup snapshots to store before automatic deletion","type":"integer","minimum":1},"name":{"title":"Backup name","description":"If set to empty, a default name is set (e.g. `Backup 3`)","type":"string"},"enabled":{"type":"boolean","title":"Enabled/disabled status. If `false` the backup is stopped."}}}
190 changes: 190 additions & 0 deletions core/add-backup-input.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,190 @@
# add-backup input Schema

```txt
http://schema.nethserver.org/cluster/add-backup-input.json
```

Configure a new backup instance

| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :------------------ | :--------- | :------------- | :----------- | :---------------- | :-------------------- | :------------------ | :---------------------------------------------------------------------------- |
| Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | [add-backup-input.json](cluster/add-backup-input.json "open original schema") |

## add-backup input Type

`object` ([add-backup input](add-backup-input.md))

## add-backup input Examples

```json
{
"name": "BB daily",
"repository": "6a2a6208-7d4f-5915-9419-e4f1faaa1c76",
"schedule": "daily",
"schedule_hint": {},
"retention": "7d",
"instances": [
"dokuwiki1",
"nextcloud1"
],
"enabled": true
}
```

# add-backup input Properties

| Property | Type | Required | Nullable | Defined by |
| :------------------------------- | :-------- | :------- | :------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [instances](#instances) | `array` | Required | cannot be null | [add-backup input](add-backup-input-properties-module-instances.md "http://schema.nethserver.org/cluster/add-backup-input.json#/properties/instances") |
| [repository](#repository) | `string` | Required | cannot be null | [add-backup input](add-backup-input-properties-repository-uuid-reference.md "http://schema.nethserver.org/cluster/add-backup-input.json#/properties/repository") |
| [schedule](#schedule) | `string` | Required | cannot be null | [add-backup input](add-backup-input-properties-time-schedule-expression.md "http://schema.nethserver.org/cluster/add-backup-input.json#/properties/schedule") |
| [schedule\_hint](#schedule_hint) | `object` | Optional | cannot be null | [add-backup input](add-backup-input-properties-schedule-expression-hint-for-ui.md "http://schema.nethserver.org/cluster/add-backup-input.json#/properties/schedule_hint") |
| [retention](#retention) | `integer` | Required | cannot be null | [add-backup input](add-backup-input-properties-backup-retention.md "http://schema.nethserver.org/cluster/add-backup-input.json#/properties/retention") |
| [name](#name) | `string` | Required | cannot be null | [add-backup input](add-backup-input-properties-backup-name.md "http://schema.nethserver.org/cluster/add-backup-input.json#/properties/name") |
| [enabled](#enabled) | `boolean` | Required | cannot be null | [add-backup input](add-backup-input-properties-enableddisabled-status-if-false-the-backup-is-stopped.md "http://schema.nethserver.org/cluster/add-backup-input.json#/properties/enabled") |

## instances

Identifiers of module instances included in the backup

`instances`

* is required

* Type: `string[]`

* cannot be null

* defined in: [add-backup input](add-backup-input-properties-module-instances.md "http://schema.nethserver.org/cluster/add-backup-input.json#/properties/instances")

### instances Type

`string[]`

## repository



`repository`

* is required

* Type: `string` ([Repository UUID reference](add-backup-input-properties-repository-uuid-reference.md))

* cannot be null

* defined in: [add-backup input](add-backup-input-properties-repository-uuid-reference.md "http://schema.nethserver.org/cluster/add-backup-input.json#/properties/repository")

### repository Type

`string` ([Repository UUID reference](add-backup-input-properties-repository-uuid-reference.md))

### repository Constraints

**pattern**: the string must match the following regular expression: 

```regexp
^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
```

[try pattern](https://regexr.com/?expression=%5E%5B0-9a-f%5D%7B8%7D-%5B0-9a-f%5D%7B4%7D-%5B0-9a-f%5D%7B4%7D-%5B0-9a-f%5D%7B4%7D-%5B0-9a-f%5D%7B12%7D%24 "try regular expression with regexr.com")

## schedule

The string format must be compatible with Calendar Events, described in `systemd.timer` man page

`schedule`

* is required

* Type: `string` ([Time schedule expression](add-backup-input-properties-time-schedule-expression.md))

* cannot be null

* defined in: [add-backup input](add-backup-input-properties-time-schedule-expression.md "http://schema.nethserver.org/cluster/add-backup-input.json#/properties/schedule")

### schedule Type

`string` ([Time schedule expression](add-backup-input-properties-time-schedule-expression.md))

### schedule Constraints

**maximum length**: the maximum number of characters for this string is: `64`

**minimum length**: the minimum number of characters for this string is: `1`

## schedule\_hint

Store arbitrary object to ease parsing of `schedule` value

`schedule_hint`

* is optional

* Type: `object` ([Schedule expression hint for UI](add-backup-input-properties-schedule-expression-hint-for-ui.md))

* cannot be null

* defined in: [add-backup input](add-backup-input-properties-schedule-expression-hint-for-ui.md "http://schema.nethserver.org/cluster/add-backup-input.json#/properties/schedule_hint")

### schedule\_hint Type

`object` ([Schedule expression hint for UI](add-backup-input-properties-schedule-expression-hint-for-ui.md))

## retention

Number of backup snapshots to store before automatic deletion

`retention`

* is required

* Type: `integer` ([Backup retention](add-backup-input-properties-backup-retention.md))

* cannot be null

* defined in: [add-backup input](add-backup-input-properties-backup-retention.md "http://schema.nethserver.org/cluster/add-backup-input.json#/properties/retention")

### retention Type

`integer` ([Backup retention](add-backup-input-properties-backup-retention.md))

### retention Constraints

**minimum**: the value of this number must greater than or equal to: `1`

## name

If set to empty, a default name is set (e.g. `Backup 3`)

`name`

* is required

* Type: `string` ([Backup name](add-backup-input-properties-backup-name.md))

* cannot be null

* defined in: [add-backup input](add-backup-input-properties-backup-name.md "http://schema.nethserver.org/cluster/add-backup-input.json#/properties/name")

### name Type

`string` ([Backup name](add-backup-input-properties-backup-name.md))

## enabled



`enabled`

* is required

* Type: `boolean` ([Enabled/disabled status. If \`false\` the backup is stopped.](add-backup-input-properties-enableddisabled-status-if-false-the-backup-is-stopped.md))

* cannot be null

* defined in: [add-backup input](add-backup-input-properties-enableddisabled-status-if-false-the-backup-is-stopped.md "http://schema.nethserver.org/cluster/add-backup-input.json#/properties/enabled")

### enabled Type

`boolean` ([Enabled/disabled status. If \`false\` the backup is stopped.](add-backup-input-properties-enableddisabled-status-if-false-the-backup-is-stopped.md))
1 change: 1 addition & 0 deletions core/add-backup-output.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"$schema":"http://json-schema.org/draft-07/schema#","title":"add-backup output","$id":"http://schema.nethserver.org/cluster/add-backup-output.json","description":"The add-backup action returns the backup ID of the added item","examples":[1],"type":"integer","minimum":1}
25 changes: 25 additions & 0 deletions core/add-backup-output.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# add-backup output Schema

```txt
http://schema.nethserver.org/cluster/add-backup-output.json
```

The add-backup action returns the backup ID of the added item

| Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
| :------------------ | :--------- | :------------- | :---------------------- | :---------------- | :-------------------- | :------------------ | :------------------------------------------------------------------------------ |
| Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | [add-backup-output.json](cluster/add-backup-output.json "open original schema") |

## add-backup output Type

`integer` ([add-backup output](add-backup-output.md))

## add-backup output Constraints

**minimum**: the value of this number must greater than or equal to: `1`

## add-backup output Examples

```json
1
```
Loading

0 comments on commit 8249623

Please sign in to comment.