Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex Managed Service for YDB
  • Getting started
  • Access management
    • Overview
    • API authentication
      • Overview
        • Overview
        • Get
        • List
        • Create
        • Update
        • Start
        • Stop
        • Move
        • ListAccessBindings
        • SetAccessBindings
        • UpdateAccessBindings
        • Delete
        • Restore
        • Backup
  • Monitoring metrics
  • Audit Trails events
  • FAQ
  • Public materials

In this article:

  • gRPC request
  • StopDatabaseRequest
  • operation.Operation
  • StopDatabaseMetadata
  • 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
  1. Yandex Cloud API reference for Managed Service for YDB
  2. gRPC
  3. Database
  4. Stop

Managed Service for YDB API, gRPC: DatabaseService.Stop

Written by
Yandex Cloud
Updated at April 24, 2025
  • gRPC request
  • StopDatabaseRequest
  • operation.Operation
  • StopDatabaseMetadata
  • 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

Stops the specified database.

gRPC requestgRPC request

rpc Stop (StopDatabaseRequest) returns (operation.Operation)

StopDatabaseRequestStopDatabaseRequest

{
  "database_id": "string"
}

Field

Description

database_id

string

Required field.

operation.Operationoperation.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",
      "security_group_ids": [
        "string"
      ]
    },
    "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",
    "security_group_ids": [
      "string"
    ]
  }
  // 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

google.protobuf.Timestamp

Creation timestamp.

created_by

string

ID of the user or service account who initiated the operation.

modified_at

google.protobuf.Timestamp

The time when the Operation resource was last modified.

done

bool

If the value is false, it means the operation is still in progress.
If true, the operation is completed, and either error or response is available.

metadata

StopDatabaseMetadata

Service-specific metadata associated with the operation.
It typically contains the ID of the target resource that the operation is performed on.
Any method that returns a long-running operation should document the metadata type, if any.

error

google.rpc.Status

The error result of the operation in case of failure or cancellation.

Includes only one of the fields error, response.

The operation result.
If done == false and there was no failure detected, neither error nor response is set.
If done == false and there was a failure detected, error is set.
If done == true, exactly one of error or response is set.

response

Database

The normal response of the operation in case of success.
If the original method returns no data on success, such as Delete,
the response is google.protobuf.Empty.
If the original method is the standard Create/Update,
the response should be the target resource of the operation.
Any method that returns a long-running operation should document the response type, if any.

Includes only one of the fields error, response.

The operation result.
If done == false and there was no failure detected, neither error nor response is set.
If done == false and there was a failure detected, error is set.
If done == true, exactly one of error or response is set.

StopDatabaseMetadataStopDatabaseMetadata

Field

Description

database_id

string

database_name

string

DatabaseDatabase

YDB database.

Field

Description

id

string

folder_id

string

created_at

google.protobuf.Timestamp

name

string

description

string

status

enum Status

  • STATUS_UNSPECIFIED
  • PROVISIONING
  • RUNNING
  • UPDATING
  • ERROR
  • DELETING
  • STARTING
  • STOPPED

endpoint

string

resource_preset_id

string

storage_config

StorageConfig

scale_policy

ScalePolicy

network_id

string

subnet_ids[]

string

zonal_database

ZonalDatabase

deprecated field

Includes only one of the fields zonal_database, regional_database, dedicated_database, serverless_database.

regional_database

RegionalDatabase

deprecated field

Includes only one of the fields zonal_database, regional_database, dedicated_database, serverless_database.

dedicated_database

DedicatedDatabase

Includes only one of the fields zonal_database, regional_database, dedicated_database, serverless_database.

serverless_database

ServerlessDatabase

Includes only one of the fields zonal_database, regional_database, dedicated_database, serverless_database.

assign_public_ips

bool

location_id

string

labels

object (map<string, string>)

backup_config

BackupConfig

document_api_endpoint

string

kinesis_api_endpoint

string

kafka_api_endpoint

string

monitoring_config

MonitoringConfig

deletion_protection

bool

security_group_ids[]

string

StorageConfigStorageConfig

Field

Description

storage_options[]

StorageOption

storage_size_limit

int64

output only field: storage size limit of dedicated database.

StorageOptionStorageOption

Field

Description

storage_type_id

string

group_count

int64

ScalePolicyScalePolicy

Field

Description

fixed_scale

FixedScale

Includes only one of the fields fixed_scale, auto_scale.

auto_scale

AutoScale

Includes only one of the fields fixed_scale, auto_scale.

FixedScaleFixedScale

Field

Description

size

int64

AutoScaleAutoScale

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

TargetTracking

Includes only one of the fields target_tracking.

Type of autoscaling algorithm.

TargetTrackingTargetTracking

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 cpu_utilization_percent.

ZonalDatabaseZonalDatabase

Field

Description

zone_id

string

Required field.

RegionalDatabaseRegionalDatabase

Field

Description

region_id

string

Required field.

DedicatedDatabaseDedicatedDatabase

Field

Description

resource_preset_id

string

storage_config

StorageConfig

scale_policy

ScalePolicy

network_id

string

subnet_ids[]

string

assign_public_ips

bool

security_group_ids[]

string

ServerlessDatabaseServerlessDatabase

Field

Description

throttling_rcu_limit

int64

Let's define 1 RU - 1 request unit
Let's define 1 RCU - 1 request capacity unit, which is 1 RU per second.
If enable_throttling_rcu_limit flag is true, the database will be throttled using throttling_rcu_limit value.
Otherwise, the database is throttled using the cloud quotas.
If zero, all requests will be blocked until non zero value is set.

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.
You will be charged for the provisioned capacity regularly even if this capacity is not fully consumed.
You will be charged for the on-demand consumption only if provisioned capacity is consumed.

topic_write_quota

int64

write quota for topic service, defined in bytes per second.

BackupConfigBackupConfig

Field

Description

backup_settings[]

BackupSettings

BackupSettingsBackupSettings

Field

Description

name

string

name of backup settings

description

string

human readable description.

backup_schedule

BackupSchedule

provide schedule. if empty, backup will be disabled.

backup_time_to_live

google.protobuf.Duration

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.
Each directory (or database) will be traversed recursively and all childs of directory will be included to backup.
By default, backup will be created for full database.

source_paths_to_exclude[]

string

provide a list of paths to exclude from backup.
Each path is a directory, table, or database.
Each directory (or database) will be traversed recursively and all childs of directory will be excluded.

type

enum Type

  • TYPE_UNSPECIFIED
  • SYSTEM
  • USER

storage_class

enum StorageClass

  • STORAGE_CLASS_UNSPECIFIED
  • STANDARD
  • REDUCED_REDUNDANCY
  • STANDARD_IA
  • ONEZONE_IA
  • INTELLIGENT_TIERING
  • GLACIER
  • DEEP_ARCHIVE
  • OUTPOSTS

BackupScheduleBackupSchedule

Field

Description

daily_backup_schedule

DailyBackupSchedule

Includes only one of the fields daily_backup_schedule, weekly_backup_schedule, recurring_backup_schedule.

weekly_backup_schedule

WeeklyBackupSchedule

Includes only one of the fields daily_backup_schedule, weekly_backup_schedule, recurring_backup_schedule.

recurring_backup_schedule

RecurringBackupSchedule

Includes only one of the fields daily_backup_schedule, weekly_backup_schedule, recurring_backup_schedule.

next_execute_time

google.protobuf.Timestamp

output only field: when next backup will be executed
using provided schedule.

DailyBackupScheduleDailyBackupSchedule

Field

Description

execute_time

google.type.TimeOfDay

Required field.

WeeklyBackupScheduleWeeklyBackupSchedule

Field

Description

days_of_week[]

DaysOfWeekBackupSchedule

DaysOfWeekBackupScheduleDaysOfWeekBackupSchedule

Field

Description

days[]

enum DayOfWeek

  • DAY_OF_WEEK_UNSPECIFIED: The unspecified day-of-week.
  • MONDAY: The day-of-week of Monday.
  • TUESDAY: The day-of-week of Tuesday.
  • WEDNESDAY: The day-of-week of Wednesday.
  • THURSDAY: The day-of-week of Thursday.
  • FRIDAY: The day-of-week of Friday.
  • SATURDAY: The day-of-week of Saturday.
  • SUNDAY: The day-of-week of Sunday.

execute_time

google.type.TimeOfDay

Required field.

RecurringBackupScheduleRecurringBackupSchedule

Field

Description

start_time

google.protobuf.Timestamp

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
this backup reccurs.
The FREQ values of MINUTELY, and SECONDLY are not supported.

MonitoringConfigMonitoringConfig

Field

Description

alerts[]

Alert

AlertAlert

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[]

NotificationChannel

the notification channels of the alert.

alert_parameters[]

AlertParameter

alert parameters to override.

alert_thresholds[]

AlertParameter

alert paratemers to override.

NotificationChannelNotificationChannel

Field

Description

notification_channel_id

string

notify_about_statuses[]

enum AlertEvaluationStatus

  • ALERT_EVALUATION_STATUS_UNSPECIFIED
  • ALERT_EVALUATION_STATUS_OK
  • ALERT_EVALUATION_STATUS_NO_DATA
  • ALERT_EVALUATION_STATUS_ERROR
  • ALERT_EVALUATION_STATUS_ALARM
  • ALERT_EVALUATION_STATUS_WARN

repeate_notify_delay_ms

int64

AlertParameterAlertParameter

Field

Description

double_parameter_value

DoubleParameterValue

Includes only one of the fields double_parameter_value, integer_parameter_value, text_parameter_value, text_list_parameter_value, label_list_parameter_value.

integer_parameter_value

IntegerParameterValue

Includes only one of the fields double_parameter_value, integer_parameter_value, text_parameter_value, text_list_parameter_value, label_list_parameter_value.

text_parameter_value

TextParameterValue

Includes only one of the fields double_parameter_value, integer_parameter_value, text_parameter_value, text_list_parameter_value, label_list_parameter_value.

text_list_parameter_value

TextListParameterValue

Includes only one of the fields double_parameter_value, integer_parameter_value, text_parameter_value, text_list_parameter_value, label_list_parameter_value.

label_list_parameter_value

LabelListParameterValue

Includes only one of the fields double_parameter_value, integer_parameter_value, text_parameter_value, text_list_parameter_value, label_list_parameter_value.

DoubleParameterValueDoubleParameterValue

Field

Description

name

string

Required. Parameter name

value

double

Required. Parameter value

IntegerParameterValueIntegerParameterValue

Field

Description

name

string

Required. Parameter name

value

int64

Required. Parameter value

TextParameterValueTextParameterValue

Field

Description

name

string

Required. Parameter name

value

string

Required. Parameter value

TextListParameterValueTextListParameterValue

Field

Description

name

string

Required. Parameter name

values[]

string

Required. Parameter value

LabelListParameterValueLabelListParameterValue

Field

Description

name

string

Required. Parameter name

values[]

string

Required. Parameter value

Was the article helpful?

Previous
Start
Next
Move
© 2025 Direct Cursus Technology L.L.C.