Managed Service for YDB API, gRPC: DatabaseService.Move
- gRPC request
- MoveDatabaseRequest
- operation.Operation
- MoveDatabaseMetadata
- Database
- StorageConfig
- StorageOption
- ScalePolicy
- FixedScale
- AutoScale
- TargetTracking
- ZonalDatabase
- RegionalDatabase
- DedicatedDatabase
- ServerlessDatabase
- BackupConfig
- BackupSettings
- BackupSchedule
- DailyBackupSchedule
- WeeklyBackupSchedule
- DaysOfWeekBackupSchedule
- RecurringBackupSchedule
- MonitoringConfig
- Alert
- NotificationChannel
- AlertParameter
- DoubleParameterValue
- IntegerParameterValue
- TextParameterValue
- TextListParameterValue
- LabelListParameterValue
gRPC request
rpc Move (MoveDatabaseRequest) returns (operation.Operation)
MoveDatabaseRequest
{
"database_id": "string",
"destination_folder_id": "string"
}
Field |
Description |
database_id |
string Required field. ID of the YDB instance to move. |
destination_folder_id |
string Required field. ID of the destination folder. |
operation.Operation
{
"id": "string",
"description": "string",
"created_at": "google.protobuf.Timestamp",
"created_by": "string",
"modified_at": "google.protobuf.Timestamp",
"done": "bool",
"metadata": {
"database_id": "string",
"database_name": "string"
},
// Includes only one of the fields `error`, `response`
"error": "google.rpc.Status",
"response": {
"id": "string",
"folder_id": "string",
"created_at": "google.protobuf.Timestamp",
"name": "string",
"description": "string",
"status": "Status",
"endpoint": "string",
"resource_preset_id": "string",
"storage_config": {
"storage_options": [
{
"storage_type_id": "string",
"group_count": "int64"
}
],
"storage_size_limit": "int64"
},
"scale_policy": {
// Includes only one of the fields `fixed_scale`, `auto_scale`
"fixed_scale": {
"size": "int64"
},
"auto_scale": {
"min_size": "int64",
"max_size": "int64",
// Includes only one of the fields `target_tracking`
"target_tracking": {
// Includes only one of the fields `cpu_utilization_percent`
"cpu_utilization_percent": "int64"
// end of the list of possible fields
}
// end of the list of possible fields
}
// end of the list of possible fields
},
"network_id": "string",
"subnet_ids": [
"string"
],
// Includes only one of the fields `zonal_database`, `regional_database`, `dedicated_database`, `serverless_database`
"zonal_database": {
"zone_id": "string"
},
"regional_database": {
"region_id": "string"
},
"dedicated_database": {
"resource_preset_id": "string",
"storage_config": {
"storage_options": [
{
"storage_type_id": "string",
"group_count": "int64"
}
],
"storage_size_limit": "int64"
},
"scale_policy": {
// Includes only one of the fields `fixed_scale`, `auto_scale`
"fixed_scale": {
"size": "int64"
},
"auto_scale": {
"min_size": "int64",
"max_size": "int64",
// Includes only one of the fields `target_tracking`
"target_tracking": {
// Includes only one of the fields `cpu_utilization_percent`
"cpu_utilization_percent": "int64"
// end of the list of possible fields
}
// end of the list of possible fields
}
// end of the list of possible fields
},
"network_id": "string",
"subnet_ids": [
"string"
],
"assign_public_ips": "bool"
},
"serverless_database": {
"throttling_rcu_limit": "int64",
"storage_size_limit": "int64",
"enable_throttling_rcu_limit": "bool",
"provisioned_rcu_limit": "int64",
"topic_write_quota": "int64"
},
// end of the list of possible fields
"assign_public_ips": "bool",
"location_id": "string",
"labels": "map<string, string>",
"backup_config": {
"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"
}
]
},
"document_api_endpoint": "string",
"kinesis_api_endpoint": "string",
"kafka_api_endpoint": "string",
"monitoring_config": {
"alerts": [
{
"alert_id": "string",
"alert_template_id": "string",
"name": "string",
"description": "string",
"notification_channels": [
{
"notification_channel_id": "string",
"notify_about_statuses": [
"AlertEvaluationStatus"
],
"repeate_notify_delay_ms": "int64"
}
],
"alert_parameters": [
{
// Includes only one of the fields `double_parameter_value`, `integer_parameter_value`, `text_parameter_value`, `text_list_parameter_value`, `label_list_parameter_value`
"double_parameter_value": {
"name": "string",
"value": "double"
},
"integer_parameter_value": {
"name": "string",
"value": "int64"
},
"text_parameter_value": {
"name": "string",
"value": "string"
},
"text_list_parameter_value": {
"name": "string",
"values": [
"string"
]
},
"label_list_parameter_value": {
"name": "string",
"values": [
"string"
]
}
// end of the list of possible fields
}
],
"alert_thresholds": [
{
// Includes only one of the fields `double_parameter_value`, `integer_parameter_value`, `text_parameter_value`, `text_list_parameter_value`, `label_list_parameter_value`
"double_parameter_value": {
"name": "string",
"value": "double"
},
"integer_parameter_value": {
"name": "string",
"value": "int64"
},
"text_parameter_value": {
"name": "string",
"value": "string"
},
"text_list_parameter_value": {
"name": "string",
"values": [
"string"
]
},
"label_list_parameter_value": {
"name": "string",
"values": [
"string"
]
}
// end of the list of possible fields
}
]
}
]
},
"deletion_protection": "bool"
}
// end of the list of possible fields
}
An Operation resource. For more information, see Operation.
Field |
Description |
id |
string ID of the operation. |
description |
string Description of the operation. 0-256 characters long. |
created_at |
Creation timestamp. |
created_by |
string ID of the user or service account who initiated the operation. |
modified_at |
The time when the Operation resource was last modified. |
done |
bool If the value is |
metadata |
Service-specific metadata associated with the operation. |
error |
The error result of the operation in case of failure or cancellation. Includes only one of the fields The operation result. |
response |
The normal response of the operation in case of success. Includes only one of the fields The operation result. |
MoveDatabaseMetadata
Field |
Description |
database_id |
string |
database_name |
string |
Database
YDB database.
Field |
Description |
id |
string |
folder_id |
string |
created_at |
|
name |
string |
description |
string |
status |
enum Status
|
endpoint |
string |
resource_preset_id |
string |
storage_config |
|
scale_policy |
|
network_id |
string |
subnet_ids[] |
string |
zonal_database |
deprecated field Includes only one of the fields |
regional_database |
deprecated field Includes only one of the fields |
dedicated_database |
Includes only one of the fields |
serverless_database |
Includes only one of the fields |
assign_public_ips |
bool |
location_id |
string |
labels |
object (map<string, string>) |
backup_config |
|
document_api_endpoint |
string |
kinesis_api_endpoint |
string |
kafka_api_endpoint |
string |
monitoring_config |
|
deletion_protection |
bool |
StorageConfig
Field |
Description |
storage_options[] |
|
storage_size_limit |
int64 output only field: storage size limit of dedicated database. |
StorageOption
Field |
Description |
storage_type_id |
string |
group_count |
int64 |
ScalePolicy
Field |
Description |
fixed_scale |
Includes only one of the fields |
auto_scale |
Includes only one of the fields |
FixedScale
Field |
Description |
size |
int64 |
AutoScale
Scale policy that dynamically changes the number of database nodes within a user-defined range.
Field |
Description |
min_size |
int64 Minimum number of nodes to which autoscaling can scale the database. |
max_size |
int64 Maximum number of nodes to which autoscaling can scale the database. |
target_tracking |
Includes only one of the fields Type of autoscaling algorithm. |
TargetTracking
Autoscaling algorithm that tracks metric and reactively scale database nodes to keep metric
close to the specified target value.
Field |
Description |
cpu_utilization_percent |
int64 A percentage of database nodes average CPU utilization. Includes only one of the fields |
ZonalDatabase
Field |
Description |
zone_id |
string Required field. |
RegionalDatabase
Field |
Description |
region_id |
string Required field. |
DedicatedDatabase
Field |
Description |
resource_preset_id |
string |
storage_config |
|
scale_policy |
|
network_id |
string |
subnet_ids[] |
string |
assign_public_ips |
bool |
ServerlessDatabase
Field |
Description |
throttling_rcu_limit |
int64 Let's define 1 RU - 1 request unit |
storage_size_limit |
int64 Specify serverless database storage size limit. If zero, default value is applied. |
enable_throttling_rcu_limit |
bool If false, the database is throttled by cloud value. |
provisioned_rcu_limit |
int64 Specify the number of provisioned RCUs to pay less if the database has predictable load. |
topic_write_quota |
int64 write quota for topic service, defined in bytes per second. |
BackupConfig
Field |
Description |
backup_settings[] |
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 |
MonitoringConfig
Field |
Description |
alerts[] |
Alert
Field |
Description |
alert_id |
string output only field. |
alert_template_id |
string template of the alert. |
name |
string name of the alert. |
description |
string human readable description of the alert. |
notification_channels[] |
the notification channels of the alert. |
alert_parameters[] |
alert parameters to override. |
alert_thresholds[] |
alert paratemers to override. |
NotificationChannel
Field |
Description |
notification_channel_id |
string |
notify_about_statuses[] |
enum AlertEvaluationStatus
|
repeate_notify_delay_ms |
int64 |
AlertParameter
Field |
Description |
double_parameter_value |
Includes only one of the fields |
integer_parameter_value |
Includes only one of the fields |
text_parameter_value |
Includes only one of the fields |
text_list_parameter_value |
Includes only one of the fields |
label_list_parameter_value |
Includes only one of the fields |
DoubleParameterValue
Field |
Description |
name |
string Required. Parameter name |
value |
double Required. Parameter value |
IntegerParameterValue
Field |
Description |
name |
string Required. Parameter name |
value |
int64 Required. Parameter value |
TextParameterValue
Field |
Description |
name |
string Required. Parameter name |
value |
string Required. Parameter value |
TextListParameterValue
Field |
Description |
name |
string Required. Parameter name |
values[] |
string Required. Parameter value |
LabelListParameterValue
Field |
Description |
name |
string Required. Parameter name |
values[] |
string Required. Parameter value |