Managed Service for YDB API, gRPC: BackupService.List
Retrieves a list of backups.
gRPC request
rpc List (ListBackupsRequest) returns (ListBackupsResponse)
ListBackupsRequest
{
"folder_id": "string",
"page_size": "int64",
"page_token": "string"
}
Field |
Description |
folder_id |
string |
page_size |
int64 The maximum number of results per page that should be returned. If the number of available |
page_token |
string Page token. Set |
ListBackupsResponse
{
"backups": [
{
"id": "string",
"name": "string",
"folder_id": "string",
"database_id": "string",
"description": "string",
"created_at": "google.protobuf.Timestamp",
"started_at": "google.protobuf.Timestamp",
"completed_at": "google.protobuf.Timestamp",
"status": "Status",
"backup_settings": {
"name": "string",
"description": "string",
"backup_schedule": {
// Includes only one of the fields `daily_backup_schedule`, `weekly_backup_schedule`, `recurring_backup_schedule`
"daily_backup_schedule": {
"execute_time": "google.type.TimeOfDay"
},
"weekly_backup_schedule": {
"days_of_week": [
{
"days": [
"DayOfWeek"
],
"execute_time": "google.type.TimeOfDay"
}
]
},
"recurring_backup_schedule": {
"start_time": "google.protobuf.Timestamp",
"recurrence": "string"
},
// end of the list of possible fields
"next_execute_time": "google.protobuf.Timestamp"
},
"backup_time_to_live": "google.protobuf.Duration",
"source_paths": [
"string"
],
"source_paths_to_exclude": [
"string"
],
"type": "Type",
"storage_class": "StorageClass"
},
"type": "Type",
"size": "int64"
}
],
"next_page_token": "string"
}
Field |
Description |
backups[] |
|
next_page_token |
string This token allows you to get the next page of results for ListBackups requests, |
Backup
Field |
Description |
id |
string |
name |
string human readable backup name. |
folder_id |
string |
database_id |
string |
description |
string description of backup. |
created_at |
|
started_at |
indicates when backup started. |
completed_at |
indicates when backup completed. |
status |
enum Status
|
backup_settings |
settings used to make backup. |
type |
enum Type
|
size |
int64 size of backup in bytes. |
BackupSettings
Field |
Description |
name |
string name of backup settings |
description |
string human readable description. |
backup_schedule |
provide schedule. if empty, backup will be disabled. |
backup_time_to_live |
provide time to live of backup. |
source_paths[] |
string provide a list of source paths. Each path can be directory, table or even database itself. |
source_paths_to_exclude[] |
string provide a list of paths to exclude from backup. |
type |
enum Type
|
storage_class |
enum StorageClass
|
BackupSchedule
Field |
Description |
daily_backup_schedule |
Includes only one of the fields |
weekly_backup_schedule |
Includes only one of the fields |
recurring_backup_schedule |
Includes only one of the fields |
next_execute_time |
output only field: when next backup will be executed |
DailyBackupSchedule
Field |
Description |
execute_time |
Required field. |
WeeklyBackupSchedule
Field |
Description |
days_of_week[] |
DaysOfWeekBackupSchedule
Field |
Description |
days[] |
enum DayOfWeek
|
execute_time |
Required field. |
RecurringBackupSchedule
Field |
Description |
start_time |
Required field. Timestamp of the first recurrence. |
recurrence |
string Required field. An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how |