-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 8249623
Showing
992 changed files
with
32,537 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` |
15 changes: 15 additions & 0 deletions
15
...ackup-input-properties-enableddisabled-status-if-false-the-backup-is-stopped.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
19
core/add-backup-input-properties-module-instances-items.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
25
core/add-backup-input-properties-repository-uuid-reference.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
15 changes: 15 additions & 0 deletions
15
core/add-backup-input-properties-schedule-expression-hint-for-ui.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
21
core/add-backup-input-properties-time-schedule-expression.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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."}}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |
Oops, something went wrong.