> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nebius.com/llms.txt
> Use this file to discover all available pages before exploring further.

# nebius msp postgresql v1alpha1 cluster update

## Name

`nebius msp postgresql v1alpha1 cluster update`

Updates the PostgreSQL cluster.

## Synopsis

```
nebius msp postgresql v1alpha1 cluster update [id]
  --bootstrap-user-password
  --config-pooler-config-max-pool-size
  --config-pooler-config-pooling-mode
  --config-postgresql-config-16-autovacuum-analyze-scale-factor
  --config-postgresql-config-16-autovacuum-naptime
  --config-postgresql-config-16-autovacuum-vacuum-cost-delay
  --config-postgresql-config-16-autovacuum-vacuum-cost-limit
  --config-postgresql-config-16-autovacuum-vacuum-scale-factor
  --config-postgresql-config-16-autovacuum-work-mem
  --config-postgresql-config-16-default-transaction-read-only
  --config-postgresql-config-16-idle-in-transaction-session-timeout
  --config-postgresql-config-16-max-connections
  --config-postgresql-config-16-search-path
  --config-postgresql-config-16-shared-buffers
  --config-postgresql-config-16-statement-timeout
  --config-public-access
  --config-template-disk-size-gibibytes
  --config-template-disk-type
  --config-template-hosts-count
  --config-template-resources-platform
  --config-template-resources-preset
  --id
  --labels
  --labels-add
  --labels-remove
  --name
  --parent-id
  --resource-version
  --async
  --clear-mask
  --diff
  --full
  --patch
```

## Examples

**Change a PostgreSQL cluster password**

```
nebius msp postgresql v1alpha1 cluster update \
   --id <cluster_ID> \
   --parent-id <project_ID> \
   --bootstrap-user-password <new_password>
```

**Update PostgreSQL cluster configuration**

```
nebius msp postgresql v1alpha1 cluster update \
  --id $PG_CLUSTER_ID \
  --config-pooler-config-pooling-mode <transaction|session> \
  --config-pooler-config-max-pool-size <pooling_size> \
  --config-public-access=<true|false> \
  --config-template-resources-preset <preset> \
  --config-template-disk-size-gibibytes <new_disk_size> \
  --config-template-hosts-count <number_of_hosts> \
  --bootstrap-user-password <password> \
  <PostgreSQL_parameters>
```

## Positional Arguments

`id`

Identifier for the resource, unique for its resource type.

## Options

`--bootstrap-user-password` (string)

Password of the bootstrap PostgreSQL user.

`--config-pooler-config-max-pool-size` (int64)

Maximum number of connections in the pool for a single user/database pair.

`--config-pooler-config-pooling-mode` (string)

Mode that the connection pooler is working in.

A value must be one of:

<ul>
  <li>
    `pooling_mode_unspecified`
  </li>

  <li>
    `session`
  </li>

  <li>
    `transaction`
  </li>
</ul>

`--config-postgresql-config-16-autovacuum-analyze-scale-factor` (float64)

`--config-postgresql-config-16-autovacuum-naptime` (int64)

In seconds.

`--config-postgresql-config-16-autovacuum-vacuum-cost-delay` (int64)

In milliseconds.

`--config-postgresql-config-16-autovacuum-vacuum-cost-limit` (int64)

`--config-postgresql-config-16-autovacuum-vacuum-scale-factor` (float64)

`--config-postgresql-config-16-autovacuum-work-mem` (int64)

In kilobytes.

`--config-postgresql-config-16-default-transaction-read-only` (bool)

`--config-postgresql-config-16-idle-in-transaction-session-timeout` (int64)

In milliseconds.

`--config-postgresql-config-16-max-connections` (int64)

`--config-postgresql-config-16-search-path` (string)

`--config-postgresql-config-16-shared-buffers` (int64)

In kilobytes.

`--config-postgresql-config-16-statement-timeout` (int64)

In milliseconds.

`--config-public-access` (bool)

Either make cluster public accessible or accessible only via private VPC.

`--config-template-disk-size-gibibytes` (int64)

`--config-template-disk-type` (string)

`--config-template-hosts-count` (int64)

`--config-template-resources-platform` (string)

`--config-template-resources-preset` (string)

`--id` (string)

Identifier for the resource, unique for its resource type.

`--labels` (string->string)

Labels associated with the resource.

`--labels-add` (string->string)

Add values to Labels associated with the resource.

`--labels-remove` (string array)

Remove values from Labels associated with the resource.

`--name` (string)

Human-readable name for the resource.

`--parent-id` (string)

Identifier of the parent resource to which the resource belongs.

`--resource-version` (int64)

Version of the resource for safe concurrent modifications and consistent reads.\

Positive and monotonically increases on each resource spec change (but *not* on each change of the\

resource's container(s) or status).\

Service allows zero value or current.

`--async` (bool)

If set, returns operation id. Otherwise, waits for the operation to complete and returns its resource.

`--clear-mask` (string array)

Reset-mask field paths to clear in patch mode. Can be repeated.

`--diff` (bool)

Show diff of resource before committing update.

`--full` (bool)

Update full resource state. Automatically set to true if the --file or argument provided.

`--patch` (bool)

Update only specified fields.

## Global Options

`-h, --help` (bool)

Show this message.

`-p, --profile` (string)

Set a profile for interacting with the cloud.

`--format` (string)

Output format. Supported values: yaml|json|jsonpath|table|text.

`-f, --file` (string)

Input file. For 'update' commands automatically set --full=true.

`-c, --config` (string)

Provide path to config file.

`--debug` (bool)

Write debug logs to stderr. Commands save debug logs in the config directory under logs/, except help and shell completion.

`-I, --impersonate-service-account-id` (string)

Impersonate into the service account and use its token for a command.

`--color` (bool)

Enable colored output.

`--no-browser` (bool)

Do not open browser automatically on auth.

`--insecure` (bool)

Disable transport security.

`--auth-timeout` (duration: 2h30m10s)

Set the timeout for the request including authentication process, default is 15m0s.

`--per-retry-timeout` (duration: 2h30m10s)

Set the timeout for each retry attempt, default is 20s.

`--retries` (uint)

Set the number of retry attempts, 1 is disable retries, default is 3.

`--timeout` (duration: 2h30m10s)

Set the timeout for the main request, default is 1m0s.

`--no-check-update` (bool)

Suppress check for updates.

`--no-progress` (bool)

Suppress progress indicators and spinners.

**Input argument JSON Schema**

> [tab] Full
>
> ```json theme={null}
> {              
>   "metadata": {                // [required]
>                                // Metadata associated with the cluster. Must include id of the cluster we are going to update.
>     "id": string,              // [identifier]
>                                // Identifier for the resource, unique for its resource type.
>     "labels": {                // [map]
>                                // Labels associated with the resource.
>       string: string                  
>     },
>     "name": string,            // Human-readable name for the resource.
>     "parent_id": string,       // [required]
>                                // Identifier of the parent resource to which the resource belongs.
>     "resource_version": int64  // Version of the resource for safe concurrent modifications and consistent reads.
>                                // Positive and monotonically increases on each resource spec change (but *not* on each change of the
>                                // resource's container(s) or status).
>                                // Service allows zero value or current.
>   },
>   "spec": {        // Updated specification for the cluster.
>     "bootstrap": {             // [required]
>       "user_password": string  // [sensitive] [input_only]
>                                // Password of the bootstrap PostgreSQL user.
>     },
>     "config": {                 // [required]
>       "pooler_config": {        // Configuration of the connection pooler.
>         "max_pool_size": int64, // [optional]
>                                 // Maximum number of connections in the pool for a single user/database pair.
>         "pooling_mode": enum(         // Mode that the connection pooler is working in.
>           "POOLING_MODE_UNSPECIFIED",
>           "SESSION",                  // Session pooling mode.
>           "TRANSACTION"               // Transaction pooling mode.
>         )
>       },
>       "postgresql_config_16": {                       // Configuration parameters for postgres.
>         "autovacuum_analyze_scale_factor": double,    // [optional]
>         "autovacuum_naptime": int64,                  // [optional]
>                                                       // In seconds.
>         "autovacuum_vacuum_cost_delay": int64,        // [optional]
>                                                       // In milliseconds.
>         "autovacuum_vacuum_cost_limit": int64,        // [optional]
>         "autovacuum_vacuum_scale_factor": double,     // [optional]
>         "autovacuum_work_mem": int64,                 // [optional]
>                                                       // In kilobytes.
>         "default_transaction_read_only": bool,        // [optional]
>         "idle_in_transaction_session_timeout": int64, // [optional]
>                                                       // In milliseconds.
>         "max_connections": int64,                     // [optional]
>         "search_path": string,                        // [optional]
>         "shared_buffers": int64,                      // [optional]
>                                                       // In kilobytes.
>         "statement_timeout": int64                    // [optional]
>                                                       // In milliseconds.
>       },
>       "public_access": bool,    // Either make cluster public accessible or accessible only via private VPC.
>       "template": {    // [required]
>                        // Resources allocated to PostgreSQL hosts.
>         "disk": {                  // [required]
>           "size_gibibytes": int64, // [required]
>           "type": string           // [required]
>         },
>         "hosts": {        // [required]
>           "count": int64  // [required]
>         },
>         "resources": {        // [required]
>                               // Reduced msp.v1alpha1.resource.TemplateSpec.
>           "platform": string, // [required]
>           "preset": string    // [required]
>         }
>       }
>     }
>   }
> }
> ```

> [tab] CopyPaste Friendly
>
> ```json theme={null}
> nebius msp postgresql v1alpha1 cluster update '
> {              
>   "metadata": {           
>     "id": "",             
>     "labels": {           
>       "": ""                  
>     },
>     "name": "",           
>     "parent_id": "",      
>     "resource_version": 0 
>   },
>   "spec": {       
>     "bootstrap": {        
>       "user_password": "" 
>     },
>     "config": {                
>       "pooler_config": {                                                  
>         "max_pool_size": 0,                                               
>         "pooling_mode": "pooling_mode_unspecified"|"session"|"transaction"
>       },
>       "postgresql_config_16": {                  
>         "autovacuum_analyze_scale_factor": 0.0,  
>         "autovacuum_naptime": 0,                 
>         "autovacuum_vacuum_cost_delay": 0,       
>         "autovacuum_vacuum_cost_limit": 0,       
>         "autovacuum_vacuum_scale_factor": 0.0,   
>         "autovacuum_work_mem": 0,                
>         "default_transaction_read_only": false,  
>         "idle_in_transaction_session_timeout": 0,
>         "max_connections": 0,                    
>         "search_path": "",                       
>         "shared_buffers": 0,                     
>         "statement_timeout": 0                   
>       },
>       "public_access": false,  
>       "template": {   
>         "disk": {             
>           "size_gibibytes": 0,
>           "type": ""          
>         },
>         "hosts": {   
>           "count": 0 
>         },
>         "resources": {   
>           "platform": "",
>           "preset": ""   
>         }
>       }
>     }
>   }
> }
> '
> ```

*Auto generated on 23-Nov-2026*
