Yandex Cloud
Поиск
Связаться с намиПодключиться
  • Документация
  • Блог
  • Все сервисы
  • Статус работы сервисов
    • Популярные
    • Инфраструктура и сеть
    • Платформа данных
    • Контейнеры
    • Инструменты разработчика
    • Бессерверные вычисления
    • Безопасность
    • Мониторинг и управление ресурсами
    • Машинное обучение
    • Бизнес-инструменты
  • Все решения
    • По отраслям
    • По типу задач
    • Экономика платформы
    • Безопасность
    • Техническая поддержка
    • Каталог партнёров
    • Обучение и сертификация
    • Облако для стартапов
    • Облако для крупного бизнеса
    • Центр технологий для общества
    • Облако для интеграторов
    • Поддержка IT-бизнеса
    • Облако для фрилансеров
    • Обучение и сертификация
    • Блог
    • Документация
    • Контент-программа
    • Мероприятия и вебинары
    • Контакты, чаты и сообщества
    • Идеи
    • Истории успеха
    • Тарифы Yandex Cloud
    • Промоакции и free tier
    • Правила тарификации
  • Документация
  • Блог
Проект Яндекса
© 2025 ООО «Яндекс.Облако»
Yandex Managed Service for PostgreSQL
  • Начало работы
  • Управление доступом
  • Правила тарификации
  • Справочник Terraform
    • Аутентификация в API
      • Overview
        • Overview
        • Get
        • List
        • Create
        • Update
        • Delete
        • Start
        • Stop
        • Move
        • Backup
        • Restore
        • RescheduleMaintenance
        • StartFailover
        • ListLogs
        • StreamLogs
        • ListOperations
        • ListBackups
        • ListHosts
        • AddHosts
        • DeleteHosts
        • UpdateHosts
  • Метрики Monitoring
  • Аудитные логи Audit Trails
  • Публичные материалы
  • История изменений
  • Обучающие курсы

В этой статье:

  • gRPC request
  • RestoreClusterRequest
  • ConfigSpec
  • ConnectionPoolerConfig
  • Resources
  • Access
  • PerformanceDiagnostics
  • DiskSizeAutoscaling
  • HostSpec
  • ConfigHostSpec
  • operation.Operation
  • RestoreClusterMetadata
  • Cluster
  • Monitoring
  • ClusterConfig
  • ConnectionPoolerConfig
  • Resources
  • Access
  • PerformanceDiagnostics
  • DiskSizeAutoscaling
  • MaintenanceWindow
  • AnytimeMaintenanceWindow
  • WeeklyMaintenanceWindow
  • MaintenanceOperation
  1. Справочник API
  2. gRPC (англ.)
  3. Cluster
  4. Restore

Managed Service for PostgreSQL API, gRPC: ClusterService.Restore

Статья создана
Yandex Cloud
Обновлена 17 декабря 2024 г.
  • gRPC request
  • RestoreClusterRequest
  • ConfigSpec
  • ConnectionPoolerConfig
  • Resources
  • Access
  • PerformanceDiagnostics
  • DiskSizeAutoscaling
  • HostSpec
  • ConfigHostSpec
  • operation.Operation
  • RestoreClusterMetadata
  • Cluster
  • Monitoring
  • ClusterConfig
  • ConnectionPoolerConfig
  • Resources
  • Access
  • PerformanceDiagnostics
  • DiskSizeAutoscaling
  • MaintenanceWindow
  • AnytimeMaintenanceWindow
  • WeeklyMaintenanceWindow
  • MaintenanceOperation

Creates a new PostgreSQL cluster using the specified backup.

gRPC requestgRPC request

rpc Restore (RestoreClusterRequest) returns (operation.Operation)

RestoreClusterRequestRestoreClusterRequest

{
  "backup_id": "string",
  "time": "google.protobuf.Timestamp",
  "time_inclusive": "bool",
  "name": "string",
  "description": "string",
  "labels": "map<string, string>",
  "environment": "Environment",
  "config_spec": {
    "version": "string",
    // Includes only one of the fields `postgresql_config_9_6`, `postgresql_config_10_1c`, `postgresql_config_10`, `postgresql_config_11`, `postgresql_config_11_1c`, `postgresql_config_12`, `postgresql_config_12_1c`, `postgresql_config_13`, `postgresql_config_13_1c`, `postgresql_config_14`, `postgresql_config_14_1c`, `postgresql_config_15`, `postgresql_config_15_1c`, `postgresql_config_16`, `postgresql_config_16_1c`, `postgresql_config_17`, `postgresql_config_17_1c`
    "postgresql_config_9_6": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig9_6",
    "postgresql_config_10_1c": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_1C",
    "postgresql_config_10": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10",
    "postgresql_config_11": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig11",
    "postgresql_config_11_1c": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig11_1C",
    "postgresql_config_12": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig12",
    "postgresql_config_12_1c": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig12_1C",
    "postgresql_config_13": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig13",
    "postgresql_config_13_1c": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig13_1C",
    "postgresql_config_14": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig14",
    "postgresql_config_14_1c": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig14_1C",
    "postgresql_config_15": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig15",
    "postgresql_config_15_1c": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig15_1C",
    "postgresql_config_16": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig16",
    "postgresql_config_16_1c": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig16_1C",
    "postgresql_config_17": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig17",
    "postgresql_config_17_1c": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig17_1C",
    // end of the list of possible fields
    "pooler_config": {
      "pooling_mode": "PoolingMode",
      "pool_discard": "google.protobuf.BoolValue"
    },
    "resources": {
      "resource_preset_id": "string",
      "disk_size": "int64",
      "disk_type_id": "string"
    },
    "autofailover": "google.protobuf.BoolValue",
    "backup_window_start": "google.type.TimeOfDay",
    "backup_retain_period_days": "google.protobuf.Int64Value",
    "access": {
      "data_lens": "bool",
      "web_sql": "bool",
      "serverless": "bool",
      "data_transfer": "bool",
      "yandex_query": "bool"
    },
    "performance_diagnostics": {
      "enabled": "bool",
      "sessions_sampling_interval": "int64",
      "statements_sampling_interval": "int64"
    },
    "disk_size_autoscaling": {
      "planned_usage_threshold": "int64",
      "emergency_usage_threshold": "int64",
      "disk_size_limit": "int64"
    }
  },
  "host_specs": [
    {
      "zone_id": "string",
      "subnet_id": "string",
      "assign_public_ip": "bool",
      "replication_source": "string",
      "priority": "google.protobuf.Int64Value",
      "config_spec": {
        // Includes only one of the fields `postgresql_config_9_6`, `postgresql_config_10_1c`, `postgresql_config_10`, `postgresql_config_11`, `postgresql_config_11_1c`, `postgresql_config_12`, `postgresql_config_12_1c`, `postgresql_config_13`, `postgresql_config_13_1c`, `postgresql_config_14`, `postgresql_config_14_1c`, `postgresql_config_15`, `postgresql_config_15_1c`, `postgresql_config_16`, `postgresql_config_16_1c`, `postgresql_config_17`, `postgresql_config_17_1c`
        "postgresql_config_9_6": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig9_6",
        "postgresql_config_10_1c": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10_1C",
        "postgresql_config_10": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10",
        "postgresql_config_11": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig11",
        "postgresql_config_11_1c": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig11_1C",
        "postgresql_config_12": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12",
        "postgresql_config_12_1c": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12_1C",
        "postgresql_config_13": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig13",
        "postgresql_config_13_1c": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig13_1C",
        "postgresql_config_14": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig14",
        "postgresql_config_14_1c": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig14_1C",
        "postgresql_config_15": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig15",
        "postgresql_config_15_1c": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig15_1C",
        "postgresql_config_16": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig16",
        "postgresql_config_16_1c": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig16_1C",
        "postgresql_config_17": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig17",
        "postgresql_config_17_1c": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig17_1C"
        // end of the list of possible fields
      }
    }
  ],
  "network_id": "string",
  "folder_id": "string",
  "security_group_ids": [
    "string"
  ],
  "deletion_protection": "bool",
  "host_group_ids": [
    "string"
  ]
}

Field

Description

backup_id

string

Required field. ID of the backup to create a cluster from.
To get the backup ID, use a ClusterService.ListBackups request.

time

google.protobuf.Timestamp

Timestamp of the moment to which the PostgreSQL cluster should be restored.

time_inclusive

bool

Flag that indicates whether a database should be restored to the first backup point
available just after the timestamp specified in the time field instead of just before.

Possible values:

  • false (default) - the restore point refers to the first backup moment before time.
  • true - the restore point refers to the first backup point after time.

name

string

Required field. Name of the new PostgreSQL cluster. The name must be unique within the folder.

description

string

Description of the new PostgreSQL cluster.

labels

object (map<string, string>)

Custom labels for the PostgreSQL cluster as key:value pairs. Maximum 64 per resource.
For example, "project": "mvp" or "source": "dictionary".

environment

enum Environment

Required field. Deployment environment of the new PostgreSQL cluster.

  • ENVIRONMENT_UNSPECIFIED
  • PRODUCTION: Stable environment with a conservative update policy:
    only hotfixes are applied during regular maintenance.
  • PRESTABLE: Environment with more aggressive update policy: new versions
    are rolled out irrespective of backward compatibility.

config_spec

ConfigSpec

Required field. Configuration for the PostgreSQL cluster to be created.

host_specs[]

HostSpec

Configurations for PostgreSQL hosts that should be created for
the cluster that is being created from the backup.

network_id

string

Required field. ID of the network to create the PostgreSQL cluster in.

folder_id

string

ID of the folder to create the PostgreSQL cluster in.

security_group_ids[]

string

User security groups

deletion_protection

bool

Deletion Protection inhibits deletion of the cluster

host_group_ids[]

string

Host groups hosting VMs of the cluster.

ConfigSpecConfigSpec

Field

Description

version

string

Version of PostgreSQL used in the cluster.
Possible values: 9.6, 10, 10_1c, 11, 12, 13, 14, 15, 16, 17

postgresql_config_9_6

yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig9_6

Configuration for a PostgreSQL 9.6 cluster.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

Configuration of a PostgreSQL cluster.

postgresql_config_10_1c

yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10_1C

Configuration for a PostgreSQL 10 1C cluster.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

Configuration of a PostgreSQL cluster.

postgresql_config_10

yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig10

Configuration for a PostgreSQL 10 cluster.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

Configuration of a PostgreSQL cluster.

postgresql_config_11

yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig11

Configuration for a PostgreSQL 11 cluster.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

Configuration of a PostgreSQL cluster.

postgresql_config_11_1c

yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig11_1C

Configuration for a PostgreSQL 11 1C cluster.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

Configuration of a PostgreSQL cluster.

postgresql_config_12

yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig12

Configuration for a PostgreSQL 12 cluster.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

Configuration of a PostgreSQL cluster.

postgresql_config_12_1c

yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig12_1C

Configuration for a PostgreSQL 12 1C cluster.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

Configuration of a PostgreSQL cluster.

postgresql_config_13

yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig13

Configuration for a PostgreSQL 13 cluster.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

Configuration of a PostgreSQL cluster.

postgresql_config_13_1c

yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig13_1C

Configuration for a PostgreSQL 13 1C cluster.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

Configuration of a PostgreSQL cluster.

postgresql_config_14

yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig14

Configuration for a PostgreSQL 14 cluster.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

Configuration of a PostgreSQL cluster.

postgresql_config_14_1c

yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig14_1C

Configuration for a PostgreSQL 14 1C cluster.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

Configuration of a PostgreSQL cluster.

postgresql_config_15

yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig15

Configuration for a PostgreSQL 15 cluster.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

Configuration of a PostgreSQL cluster.

postgresql_config_15_1c

yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig15_1C

Configuration for a PostgreSQL 15 1C cluster.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

Configuration of a PostgreSQL cluster.

postgresql_config_16

yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig16

Configuration for a PostgreSQL 16 cluster.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

Configuration of a PostgreSQL cluster.

postgresql_config_16_1c

yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig16_1C

Configuration for a PostgreSQL 16 1C cluster.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

Configuration of a PostgreSQL cluster.

postgresql_config_17

yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig17

Configuration for a PostgreSQL 17 cluster.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

Configuration of a PostgreSQL cluster.

postgresql_config_17_1c

yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfig17_1C

Configuration for a PostgreSQL 17 1C cluster.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

Configuration of a PostgreSQL cluster.

pooler_config

ConnectionPoolerConfig

Configuration of the connection pooler.

resources

Resources

Resources allocated to PostgreSQL hosts.

autofailover

google.protobuf.BoolValue

Configuration setting which enables/disables autofailover in cluster.

backup_window_start

google.type.TimeOfDay

Time to start the daily backup, in the UTC timezone.

backup_retain_period_days

google.protobuf.Int64Value

Retention policy of automated backups.

access

Access

Access policy to DB

performance_diagnostics

PerformanceDiagnostics

Configuration of the performance diagnostics service.

disk_size_autoscaling

DiskSizeAutoscaling

Disk size autoscaling

ConnectionPoolerConfigConnectionPoolerConfig

Field

Description

pooling_mode

enum PoolingMode

Mode that the connection pooler is working in.
See descriptions of all modes in the documentation for PgBouncer.

  • POOLING_MODE_UNSPECIFIED
  • SESSION: Session pooling mode.
  • TRANSACTION: Transaction pooling mode.
  • STATEMENT: Statement pooling mode.

pool_discard

google.protobuf.BoolValue

Setting server_reset_query_always parameter in PgBouncer.

ResourcesResources

Field

Description

resource_preset_id

string

ID of the preset for computational resources available to a host (CPU, memory etc.).
All available presets are listed in the documentation.

disk_size

int64

Volume of the storage available to a host, in bytes.

disk_type_id

string

Type of the storage environment for the host.
Possible values:

  • network-hdd - network HDD drive,
  • network-ssd - network SSD drive,
  • local-ssd - local SSD storage.

AccessAccess

Field

Description

data_lens

bool

Allow access for DataLens

web_sql

bool

Allow SQL queries to the cluster databases from the management console.

See SQL queries in the management console for more details.

serverless

bool

Allow access for Serverless

data_transfer

bool

Allow access for DataTransfer.

yandex_query

bool

Allow access for YandexQuery.

PerformanceDiagnosticsPerformanceDiagnostics

Field

Description

enabled

bool

Configuration setting which enables/disables performance diagnostics service in cluster.

sessions_sampling_interval

int64

Interval (in seconds) for pg_stat_activity sampling

statements_sampling_interval

int64

Interval (in seconds) for pg_stat_statements sampling

DiskSizeAutoscalingDiskSizeAutoscaling

Field

Description

planned_usage_threshold

int64

Threshold of storage usage (in percent) that triggers automatic scaling of the storage during the maintenance window. Zero value means disabled threshold.

emergency_usage_threshold

int64

Threshold of storage usage (in percent) that triggers immediate automatic scaling of the storage. Zero value means disabled threshold.

disk_size_limit

int64

New storage size (in bytes) that is set when one of the thresholds is achieved.

HostSpecHostSpec

Field

Description

zone_id

string

ID of the availability zone where the host resides.
To get a list of available zones, use the yandex.cloud.compute.v1.ZoneService.List request.

subnet_id

string

ID of the subnet that the host should belong to. This subnet should be a part
of the network that the cluster belongs to.
The ID of the network is set in the field Cluster.network_id.

assign_public_ip

bool

Whether the host should get a public IP address on creation.

After a host has been created, this setting cannot be changed. To remove an assigned public IP, or to assign
a public IP to a host without one, recreate the host with assign_public_ip set as needed.

Possible values:

  • false - don't assign a public IP to the host.
  • true - the host should have a public IP address.

replication_source

string

Host.name of the host to be used as the replication source (for cascading replication).

priority

google.protobuf.Int64Value

Priority of the host as a replica. A higher value corresponds to higher priority.

The host with the highest priority is the synchronous replica. All others are asynchronous.
The synchronous replica replaces the master when needed.

When a replica becomes the master, its priority is ignored.

config_spec

ConfigHostSpec

Configuration of a PostgreSQL server for the host.

ConfigHostSpecConfigHostSpec

Field

Description

postgresql_config_9_6

yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig9_6

Configuration for a host with PostgreSQL 9.6 server deployed.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

postgresql_config_10_1c

yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10_1C

Configuration for a host with PostgreSQL 10 1C server deployed.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

postgresql_config_10

yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig10

Configuration for a host with PostgreSQL 10 server deployed.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

postgresql_config_11

yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig11

Configuration for a host with PostgreSQL 11 server deployed.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

postgresql_config_11_1c

yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig11_1C

Configuration for a host with PostgreSQL 11 1C server deployed.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

postgresql_config_12

yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12

Configuration for a host with PostgreSQL 12 server deployed.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

postgresql_config_12_1c

yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig12_1C

Configuration for a host with PostgreSQL 12 1C server deployed.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

postgresql_config_13

yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig13

Configuration for a host with PostgreSQL 13 server deployed.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

postgresql_config_13_1c

yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig13_1C

Configuration for a host with PostgreSQL 13 1C server deployed.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

postgresql_config_14

yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig14

Configuration for a host with PostgreSQL 14 server deployed.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

postgresql_config_14_1c

yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig14_1C

Configuration for a host with PostgreSQL 14 1C server deployed.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

postgresql_config_15

yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig15

Configuration for a host with PostgreSQL 15 server deployed.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

postgresql_config_15_1c

yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig15_1C

Configuration for a host with PostgreSQL 15 1C server deployed.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

postgresql_config_16

yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig16

Configuration for a host with PostgreSQL 16 server deployed.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

postgresql_config_16_1c

yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig16_1C

Configuration for a host with PostgreSQL 16 1C server deployed.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

postgresql_config_17

yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig17

Configuration for a host with PostgreSQL 17 1C server deployed.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

postgresql_config_17_1c

yandex.cloud.mdb.postgresql.v1.config.PostgresqlHostConfig17_1C

Configuration for a host with PostgreSQL 17 1C server deployed.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

operation.Operationoperation.Operation

{
  "id": "string",
  "description": "string",
  "created_at": "google.protobuf.Timestamp",
  "created_by": "string",
  "modified_at": "google.protobuf.Timestamp",
  "done": "bool",
  "metadata": {
    "cluster_id": "string",
    "backup_id": "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",
    "labels": "map<string, string>",
    "environment": "Environment",
    "monitoring": [
      {
        "name": "string",
        "description": "string",
        "link": "string"
      }
    ],
    "config": {
      "version": "string",
      // Includes only one of the fields `postgresql_config_9_6`, `postgresql_config_10_1c`, `postgresql_config_10`, `postgresql_config_11`, `postgresql_config_11_1c`, `postgresql_config_12`, `postgresql_config_12_1c`, `postgresql_config_13`, `postgresql_config_13_1c`, `postgresql_config_14`, `postgresql_config_14_1c`, `postgresql_config_15`, `postgresql_config_15_1c`, `postgresql_config_16`, `postgresql_config_16_1c`, `postgresql_config_17`, `postgresql_config_17_1c`
      "postgresql_config_9_6": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet9_6",
      "postgresql_config_10_1c": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet10_1C",
      "postgresql_config_10": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet10",
      "postgresql_config_11": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet11",
      "postgresql_config_11_1c": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet11_1C",
      "postgresql_config_12": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet12",
      "postgresql_config_12_1c": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet12_1C",
      "postgresql_config_13": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet13",
      "postgresql_config_13_1c": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet13_1C",
      "postgresql_config_14": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet14",
      "postgresql_config_14_1c": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet14_1C",
      "postgresql_config_15": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet15",
      "postgresql_config_15_1c": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet15_1C",
      "postgresql_config_16": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet16",
      "postgresql_config_16_1c": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet16_1C",
      "postgresql_config_17": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet17",
      "postgresql_config_17_1c": "yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet17_1C",
      // end of the list of possible fields
      "pooler_config": {
        "pooling_mode": "PoolingMode",
        "pool_discard": "google.protobuf.BoolValue"
      },
      "resources": {
        "resource_preset_id": "string",
        "disk_size": "int64",
        "disk_type_id": "string"
      },
      "autofailover": "google.protobuf.BoolValue",
      "backup_window_start": "google.type.TimeOfDay",
      "backup_retain_period_days": "google.protobuf.Int64Value",
      "access": {
        "data_lens": "bool",
        "web_sql": "bool",
        "serverless": "bool",
        "data_transfer": "bool",
        "yandex_query": "bool"
      },
      "performance_diagnostics": {
        "enabled": "bool",
        "sessions_sampling_interval": "int64",
        "statements_sampling_interval": "int64"
      },
      "disk_size_autoscaling": {
        "planned_usage_threshold": "int64",
        "emergency_usage_threshold": "int64",
        "disk_size_limit": "int64"
      }
    },
    "network_id": "string",
    "health": "Health",
    "status": "Status",
    "maintenance_window": {
      // Includes only one of the fields `anytime`, `weekly_maintenance_window`
      "anytime": "AnytimeMaintenanceWindow",
      "weekly_maintenance_window": {
        "day": "WeekDay",
        "hour": "int64"
      }
      // end of the list of possible fields
    },
    "planned_operation": {
      "info": "string",
      "delayed_until": "google.protobuf.Timestamp"
    },
    "security_group_ids": [
      "string"
    ],
    "deletion_protection": "bool",
    "host_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

RestoreClusterMetadata

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

Cluster

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.

RestoreClusterMetadataRestoreClusterMetadata

Field

Description

cluster_id

string

ID of the new PostgreSQL cluster that is being created from a backup.

backup_id

string

ID of the backup that is being used for creating a cluster.

ClusterCluster

A PostgreSQL Cluster resource. For more information, see
the Concepts section of the documentation.

Field

Description

id

string

ID of the PostgreSQL cluster.
This ID is assigned by MDB at creation time.

folder_id

string

ID of the folder that the PostgreSQL cluster belongs to.

created_at

google.protobuf.Timestamp

Creation timestamp in RFC3339 text format.

name

string

Name of the PostgreSQL cluster.
The name is unique within the folder. 1-63 characters long.

description

string

Description of the PostgreSQL cluster. 0-256 characters long.

labels

object (map<string, string>)

Custom labels for the PostgreSQL cluster as key:value pairs.
Maximum 64 per resource.

environment

enum Environment

Deployment environment of the PostgreSQL cluster.

  • ENVIRONMENT_UNSPECIFIED
  • PRODUCTION: Stable environment with a conservative update policy:
    only hotfixes are applied during regular maintenance.
  • PRESTABLE: Environment with more aggressive update policy: new versions
    are rolled out irrespective of backward compatibility.

monitoring[]

Monitoring

Description of monitoring systems relevant to the PostgreSQL cluster.

config

ClusterConfig

Configuration of the PostgreSQL cluster.

network_id

string

ID of the network that the cluster belongs to.

health

enum Health

Aggregated cluster health.

  • HEALTH_UNKNOWN: State of the cluster is unknown (Host.health for every host in the cluster is UNKNOWN).
  • ALIVE: Cluster is alive and well (Host.health for every host in the cluster is ALIVE).
  • DEAD: Cluster is inoperable (Host.health for every host in the cluster is DEAD).
  • DEGRADED: Cluster is working below capacity (Host.health for at least one host in the cluster is not ALIVE).

status

enum Status

Current state of the cluster.

  • STATUS_UNKNOWN: Cluster state is unknown.
  • CREATING: Cluster is being created.
  • RUNNING: Cluster is running normally.
  • ERROR: Cluster encountered a problem and cannot operate.
  • UPDATING: Cluster is being updated.
  • STOPPING: Cluster is stopping.
  • STOPPED: Cluster stopped.
  • STARTING: Cluster is starting.

maintenance_window

MaintenanceWindow

Maintenance window for the cluster.

planned_operation

MaintenanceOperation

Planned maintenance operation to be started for the cluster within the nearest maintenance_window.

security_group_ids[]

string

User security groups

deletion_protection

bool

Deletion Protection inhibits deletion of the cluster

host_group_ids[]

string

Host groups hosting VMs of the cluster.

MonitoringMonitoring

Monitoring system.

Field

Description

name

string

Name of the monitoring system.

description

string

Description of the monitoring system.

link

string

Link to the monitoring system charts for the PostgreSQL cluster.

ClusterConfigClusterConfig

Field

Description

version

string

Version of PostgreSQL server software.

postgresql_config_9_6

yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet9_6

Configuration of a PostgreSQL 9.6 server.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

Configuration for PostgreSQL servers in the cluster.

postgresql_config_10_1c

yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet10_1C

Configuration of a PostgreSQL 10 1C server.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

Configuration for PostgreSQL servers in the cluster.

postgresql_config_10

yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet10

Configuration of a PostgreSQL 10 server.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

Configuration for PostgreSQL servers in the cluster.

postgresql_config_11

yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet11

Configuration of a PostgreSQL 11 server.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

Configuration for PostgreSQL servers in the cluster.

postgresql_config_11_1c

yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet11_1C

Configuration of a PostgreSQL 11 1C server.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

Configuration for PostgreSQL servers in the cluster.

postgresql_config_12

yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet12

Configuration of a PostgreSQL 12 server.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

Configuration for PostgreSQL servers in the cluster.

postgresql_config_12_1c

yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet12_1C

Configuration of a PostgreSQL 12 1C server.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

Configuration for PostgreSQL servers in the cluster.

postgresql_config_13

yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet13

Configuration of a PostgreSQL 13 server.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

Configuration for PostgreSQL servers in the cluster.

postgresql_config_13_1c

yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet13_1C

Configuration of a PostgreSQL 13 1C server.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

Configuration for PostgreSQL servers in the cluster.

postgresql_config_14

yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet14

Configuration of a PostgreSQL 14 server.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

Configuration for PostgreSQL servers in the cluster.

postgresql_config_14_1c

yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet14_1C

Configuration of a PostgreSQL 14 1C server.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

Configuration for PostgreSQL servers in the cluster.

postgresql_config_15

yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet15

Configuration of a PostgreSQL 15 server.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

Configuration for PostgreSQL servers in the cluster.

postgresql_config_15_1c

yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet15_1C

Configuration of a PostgreSQL 15 1C server.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

Configuration for PostgreSQL servers in the cluster.

postgresql_config_16

yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet16

Configuration of a PostgreSQL 16 server.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

Configuration for PostgreSQL servers in the cluster.

postgresql_config_16_1c

yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet16_1C

Configuration of a PostgreSQL 16 1C server.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

Configuration for PostgreSQL servers in the cluster.

postgresql_config_17

yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet17

Configuration of a PostgreSQL 17 server.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

Configuration for PostgreSQL servers in the cluster.

postgresql_config_17_1c

yandex.cloud.mdb.postgresql.v1.config.PostgresqlConfigSet17_1C

Configuration of a PostgreSQL 17 1C server.

Includes only one of the fields postgresql_config_9_6, postgresql_config_10_1c, postgresql_config_10, postgresql_config_11, postgresql_config_11_1c, postgresql_config_12, postgresql_config_12_1c, postgresql_config_13, postgresql_config_13_1c, postgresql_config_14, postgresql_config_14_1c, postgresql_config_15, postgresql_config_15_1c, postgresql_config_16, postgresql_config_16_1c, postgresql_config_17, postgresql_config_17_1c.

Configuration for PostgreSQL servers in the cluster.

pooler_config

ConnectionPoolerConfig

Configuration of the connection pooler.

resources

Resources

Resources allocated to PostgreSQL hosts.

autofailover

google.protobuf.BoolValue

Configuration setting which enables/disables autofailover in cluster.

backup_window_start

google.type.TimeOfDay

Time to start the daily backup, in the UTC timezone.

backup_retain_period_days

google.protobuf.Int64Value

Retention policy of automated backups.

access

Access

Access policy to DB

performance_diagnostics

PerformanceDiagnostics

Configuration of the performance diagnostics service.

disk_size_autoscaling

DiskSizeAutoscaling

Disk size autoscaling

ConnectionPoolerConfigConnectionPoolerConfig

Field

Description

pooling_mode

enum PoolingMode

Mode that the connection pooler is working in.
See descriptions of all modes in the documentation for PgBouncer.

  • POOLING_MODE_UNSPECIFIED
  • SESSION: Session pooling mode.
  • TRANSACTION: Transaction pooling mode.
  • STATEMENT: Statement pooling mode.

pool_discard

google.protobuf.BoolValue

Setting server_reset_query_always parameter in PgBouncer.

ResourcesResources

Field

Description

resource_preset_id

string

ID of the preset for computational resources available to a host (CPU, memory etc.).
All available presets are listed in the documentation.

disk_size

int64

Volume of the storage available to a host, in bytes.

disk_type_id

string

Type of the storage environment for the host.
Possible values:

  • network-hdd - network HDD drive,
  • network-ssd - network SSD drive,
  • local-ssd - local SSD storage.

AccessAccess

Field

Description

data_lens

bool

Allow access for DataLens

web_sql

bool

Allow SQL queries to the cluster databases from the management console.

See SQL queries in the management console for more details.

serverless

bool

Allow access for Serverless

data_transfer

bool

Allow access for DataTransfer.

yandex_query

bool

Allow access for YandexQuery.

PerformanceDiagnosticsPerformanceDiagnostics

Field

Description

enabled

bool

Configuration setting which enables/disables performance diagnostics service in cluster.

sessions_sampling_interval

int64

Interval (in seconds) for pg_stat_activity sampling

statements_sampling_interval

int64

Interval (in seconds) for pg_stat_statements sampling

DiskSizeAutoscalingDiskSizeAutoscaling

Field

Description

planned_usage_threshold

int64

Threshold of storage usage (in percent) that triggers automatic scaling of the storage during the maintenance window. Zero value means disabled threshold.

emergency_usage_threshold

int64

Threshold of storage usage (in percent) that triggers immediate automatic scaling of the storage. Zero value means disabled threshold.

disk_size_limit

int64

New storage size (in bytes) that is set when one of the thresholds is achieved.

MaintenanceWindowMaintenanceWindow

A maintenance window settings.

Field

Description

anytime

AnytimeMaintenanceWindow

Maintenance operation can be scheduled anytime.

Includes only one of the fields anytime, weekly_maintenance_window.

The maintenance policy in effect.

weekly_maintenance_window

WeeklyMaintenanceWindow

Maintenance operation can be scheduled on a weekly basis.

Includes only one of the fields anytime, weekly_maintenance_window.

The maintenance policy in effect.

AnytimeMaintenanceWindowAnytimeMaintenanceWindow

Field

Description

Empty

WeeklyMaintenanceWindowWeeklyMaintenanceWindow

Weelky maintenance window settings.

Field

Description

day

enum WeekDay

Day of the week (in DDD format).

  • WEEK_DAY_UNSPECIFIED
  • MON
  • TUE
  • WED
  • THU
  • FRI
  • SAT
  • SUN

hour

int64

Hour of the day in UTC (in HH format).

MaintenanceOperationMaintenanceOperation

A planned maintenance operation.

Field

Description

info

string

Information about this maintenance operation.

delayed_until

google.protobuf.Timestamp

Time until which this maintenance operation is delayed.

Была ли статья полезна?

Предыдущая
Backup
Следующая
RescheduleMaintenance
Проект Яндекса
© 2025 ООО «Яндекс.Облако»