-
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.
Showing
16 changed files
with
1,013 additions
and
384 deletions.
There are no files selected for viewing
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
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
123 changes: 104 additions & 19 deletions
123
...mageroot/var/lib/nethserver/cluster/actions/read-backup-repositories/validate-output.json
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 |
---|---|---|
@@ -1,22 +1,107 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "read-backup-repositories output", | ||
"$id": "http://schema.nethserver.org/cluster/read-backup-repositories-output.json", | ||
"description": "Read the content of all backup repositories", | ||
"examples": [ | ||
[ | ||
{ | ||
"name": "dokuwiki", | ||
"path": "dokuwiki/dokuwiki1@cc7335d7-4d67-408c-8c35-42257667e51b", | ||
"uuid": "cc7335d7-4d67-408c-8c35-42257667e51b", | ||
"timestamp": 1644403745, | ||
"repository_id": "e181c936-1bc3-5032-a809-d8b0551eebe9", | ||
"repository_name": "B2 repo", | ||
"repository_provider": "backblaze", | ||
"repository_url": "b2:giacomons8", | ||
"installed_instance": "dokuwiki4", | ||
"installed_instance_ui_name": "My Dokuwiki" | ||
} | ||
] | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "read-backup-repositories output", | ||
"$id": "http://schema.nethserver.org/cluster/read-backup-repositories-output.json", | ||
"description": "Look up Restic repositories inside all backup destinations and return a list of them.", | ||
"examples": [ | ||
[ | ||
{ | ||
"module_id": "loki1", | ||
"module_ui_name": "My Loki", | ||
"node_fqdn": "rl1.dp.nethserver.net", | ||
"path": "loki/35f45b73-f81e-467b-b622-96ec3b7fec19", | ||
"name": "loki", | ||
"uuid": "35f45b73-f81e-467b-b622-96ec3b7fec19", | ||
"timestamp": 1721405723, | ||
"repository_id": "14030a59-a4e6-54cc-b8ea-cd5f97fe44c8", | ||
"repository_name": "BackBlaze repo1", | ||
"repository_provider": "backblaze", | ||
"repository_url": "b2:ns8-davidep", | ||
"installed_instance": "loki1", | ||
"installed_instance_ui_name": "My Loki", | ||
"is_generated_locally": true | ||
} | ||
] | ||
], | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"module_id": { | ||
"type": "string", | ||
"description": "Original module ID value." | ||
}, | ||
"module_ui_name": { | ||
"type": "string", | ||
"description": "Original module label, assigned by the user." | ||
}, | ||
"node_fqdn": { | ||
"type": "string", | ||
"description": "The FQDN of the node where the module of the backup is hosted." | ||
}, | ||
"path": { | ||
"type": "string", | ||
"description": "Path of the repository, relative to the backup destination." | ||
}, | ||
"name": { | ||
"type": "string", | ||
"description": "Name of the module. It is equal to the module image name." | ||
}, | ||
"uuid": { | ||
"type": "string", | ||
"description": "Universal, unique identifier of the module instance." | ||
}, | ||
"timestamp": { | ||
"type": "integer", | ||
"description": "Unix timestamp of the last backup run." | ||
}, | ||
"repository_id": { | ||
"type": "string", | ||
"description": "UUID of the backup destination." | ||
}, | ||
"repository_name": { | ||
"type": "string", | ||
"description": "Human readable name of the backup destination." | ||
}, | ||
"repository_provider": { | ||
"type": "string", | ||
"description": "Type of backup destination provider, e.g. SMB, S3..." | ||
}, | ||
"repository_url": { | ||
"type": "string", | ||
"description": "Restic URL of the backup destination." | ||
}, | ||
"installed_instance": { | ||
"type": "string", | ||
"description": "If the backup belongs to an installed module instance this is its module ID." | ||
}, | ||
"installed_instance_ui_name": { | ||
"type": "string", | ||
"description": "If the backup belongs to an installed module instance this is its module friendly name." | ||
}, | ||
"is_generated_locally": { | ||
"type": [ | ||
"boolean", | ||
"null" | ||
], | ||
"description": "Tells if the backup originates from the local cluster or from another cluster. The null value is returned if this information is missing completely, as it happens in old backups." | ||
} | ||
}, | ||
"required": [ | ||
"module_id", | ||
"module_ui_name", | ||
"node_fqdn", | ||
"path", | ||
"name", | ||
"uuid", | ||
"timestamp", | ||
"repository_id", | ||
"repository_name", | ||
"repository_provider", | ||
"repository_url", | ||
"installed_instance", | ||
"installed_instance_ui_name", | ||
"is_generated_locally" | ||
] | ||
} | ||
} |
Oops, something went wrong.