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
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex Managed Service for Elasticsearch
  • Getting started
  • Access management
  • Pricing policy
  • CLI reference
  • Terraform reference
    • Authentication with the API
      • Overview
        • Overview
        • Get
        • List
        • Create
        • Update
        • Delete
        • Move
        • Start
        • Stop
        • Backup
        • ListBackups
        • Restore
        • ListLogs
        • StreamLogs
        • ListOperations
        • ListHosts
        • AddHosts
        • DeleteHosts
        • RescheduleMaintenance
  • Monitoring metrics
  • Audit Trails events
  • Public materials
  • Release notes
  • FAQ

In this article:

  • gRPC request
  • UpdateClusterRequest
  • ConfigSpecUpdate
  • ElasticsearchSpec
  • DataNode
  • ElasticsearchConfig7
  • Resources
  • MasterNode
  • MaintenanceWindow
  • AnytimeMaintenanceWindow
  • WeeklyMaintenanceWindow
  • operation.Operation
  • UpdateClusterMetadata
  • Cluster
  • Monitoring
  • ClusterConfig
  • Elasticsearch
  • DataNode
  • ElasticsearchConfigSet7
  • ElasticsearchConfig7
  • Resources
  • MasterNode
  • MaintenanceWindow
  • AnytimeMaintenanceWindow
  • WeeklyMaintenanceWindow
  • MaintenanceOperation
  1. API reference
  2. gRPC
  3. Cluster
  4. Update

Managed Service for Elasticsearch API, gRPC: ClusterService.Update

Written by
Yandex Cloud
Updated at December 17, 2024
  • gRPC request
  • UpdateClusterRequest
  • ConfigSpecUpdate
  • ElasticsearchSpec
  • DataNode
  • ElasticsearchConfig7
  • Resources
  • MasterNode
  • MaintenanceWindow
  • AnytimeMaintenanceWindow
  • WeeklyMaintenanceWindow
  • operation.Operation
  • UpdateClusterMetadata
  • Cluster
  • Monitoring
  • ClusterConfig
  • Elasticsearch
  • DataNode
  • ElasticsearchConfigSet7
  • ElasticsearchConfig7
  • Resources
  • MasterNode
  • MaintenanceWindow
  • AnytimeMaintenanceWindow
  • WeeklyMaintenanceWindow
  • MaintenanceOperation

Updates the specified Elasticsearch cluster.

gRPC requestgRPC request

rpc Update (UpdateClusterRequest) returns (operation.Operation)

UpdateClusterRequestUpdateClusterRequest

{
  "cluster_id": "string",
  "update_mask": "google.protobuf.FieldMask",
  "description": "string",
  "labels": "map<string, string>",
  "config_spec": {
    "version": "string",
    "elasticsearch_spec": {
      "data_node": {
        // Includes only one of the fields `elasticsearch_config_7`
        "elasticsearch_config_7": {
          "max_clause_count": "google.protobuf.Int64Value",
          "fielddata_cache_size": "string",
          "reindex_remote_whitelist": "string",
          "reindex_ssl_ca_path": "string"
        },
        // end of the list of possible fields
        "resources": {
          "resource_preset_id": "string",
          "disk_size": "int64",
          "disk_type_id": "string"
        }
      },
      "master_node": {
        "resources": {
          "resource_preset_id": "string",
          "disk_size": "int64",
          "disk_type_id": "string"
        }
      },
      "plugins": [
        "string"
      ]
    },
    "edition": "string",
    "admin_password": "string"
  },
  "name": "string",
  "security_group_ids": [
    "string"
  ],
  "service_account_id": "string",
  "deletion_protection": "bool",
  "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
  },
  "network_id": "string"
}

Field

Description

cluster_id

string

Required field. ID of the Elasticsearch cluster to update.

To get the Elasticsearch cluster ID, make a ClusterService.List request.

update_mask

google.protobuf.FieldMask

description

string

New description of the Elasticsearch cluster.

labels

object (map<string, string>)

Custom labels for the Elasticsearch cluster as key:value pairs.

For example, "project": "mvp" or "source": "dictionary".

The new set of labels will completely replace the old ones.
To add a label, request the current set with the ClusterService.Get method, then send an ClusterService.Update request with the new label added to the set.

config_spec

ConfigSpecUpdate

New configuration and resources for hosts in the Elasticsearch cluster.

Use update_mask to prevent reverting all cluster settings that are not listed in config_spec to their default values.

name

string

New name for the Elasticsearch cluster.

security_group_ids[]

string

User security groups

service_account_id

string

ID of the service account used for access to Object Storage.

deletion_protection

bool

Deletion Protection inhibits deletion of the cluster

maintenance_window

MaintenanceWindow

Window of maintenance operations.

network_id

string

ID of the network to move the cluster to.

ConfigSpecUpdateConfigSpecUpdate

Field

Description

version

string

Elasticsearch version.

elasticsearch_spec

ElasticsearchSpec

Configuration and resource allocation for Elasticsearch nodes.

edition

string

ElasticSearch edition.

admin_password

string

ElasticSearch admin password.

ElasticsearchSpecElasticsearchSpec

Field

Description

data_node

DataNode

Configuration and resource allocation for Elasticsearch data nodes.

master_node

MasterNode

Configuration and resource allocation for Elasticsearch master nodes.

plugins[]

string

Cluster wide plugins

DataNodeDataNode

Field

Description

elasticsearch_config_7

ElasticsearchConfig7

Includes only one of the fields elasticsearch_config_7.

Elasticsearch data node configuration.

resources

Resources

Resources allocated to Elasticsearch data nodes.

ElasticsearchConfig7ElasticsearchConfig7

Elasticsearch 7.x supported configuration options are listed here.

Detailed description for each set of options is available in Elasticsearch documentation.

Any options that are not listed here are not supported.

Field

Description

max_clause_count

google.protobuf.Int64Value

The maximum number of clauses a boolean query can contain.

The limit is in place to prevent searches from becoming too large and taking up too much CPU and memory.
It affects not only Elasticsearch's bool query, but many other queries that are implicitly converted to bool query by Elastcsearch.

Default value: 1024.

See in-depth description in Elasticsearch documentation.

fielddata_cache_size

string

The maximum percentage or absolute value (10%, 512mb) of heap space that is allocated to field data cache.

All the field values that are placed in this cache, get loaded to memory in order to provide fast document based access to those values.
Building the field data cache for a field can be an expensive operations, so its recommended to have enough memory for this cache, and to keep it loaded.

Default value: unbounded.

See in-depth description in Elasticsearch documentation.

reindex_remote_whitelist

string

Remote hosts for reindex have to be explicitly allowed in elasticsearch.yml using the reindex.remote.whitelist property.
It can be set to a comma delimited list of allowed remote host and port combinations.
Scheme is ignored, only the host and port are used.

reindex_ssl_ca_path

string

List of paths to PEM encoded certificate files that should be trusted.

See in-depth description in Elasticsearch documentation

ResourcesResources

Computational resources.

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.
All available types are listed in the documentation.

MasterNodeMasterNode

Field

Description

resources

Resources

Resources allocated to Elasticsearch master nodes.

MaintenanceWindowMaintenanceWindow

Field

Description

anytime

AnytimeMaintenanceWindow

Includes only one of the fields anytime, weekly_maintenance_window.

weekly_maintenance_window

WeeklyMaintenanceWindow

Includes only one of the fields anytime, weekly_maintenance_window.

AnytimeMaintenanceWindowAnytimeMaintenanceWindow

Field

Description

Empty

WeeklyMaintenanceWindowWeeklyMaintenanceWindow

Field

Description

day

enum WeekDay

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

hour

int64

Hour of the day in UTC.

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"
  },
  // 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",
      "elasticsearch": {
        "data_node": {
          // Includes only one of the fields `elasticsearch_config_set_7`
          "elasticsearch_config_set_7": {
            "effective_config": {
              "max_clause_count": "google.protobuf.Int64Value",
              "fielddata_cache_size": "string",
              "reindex_remote_whitelist": "string",
              "reindex_ssl_ca_path": "string"
            },
            "user_config": {
              "max_clause_count": "google.protobuf.Int64Value",
              "fielddata_cache_size": "string",
              "reindex_remote_whitelist": "string",
              "reindex_ssl_ca_path": "string"
            },
            "default_config": {
              "max_clause_count": "google.protobuf.Int64Value",
              "fielddata_cache_size": "string",
              "reindex_remote_whitelist": "string",
              "reindex_ssl_ca_path": "string"
            }
          },
          // end of the list of possible fields
          "resources": {
            "resource_preset_id": "string",
            "disk_size": "int64",
            "disk_type_id": "string"
          }
        },
        "master_node": {
          "resources": {
            "resource_preset_id": "string",
            "disk_size": "int64",
            "disk_type_id": "string"
          }
        },
        "plugins": [
          "string"
        ]
      },
      "edition": "string"
    },
    "network_id": "string",
    "health": "Health",
    "status": "Status",
    "security_group_ids": [
      "string"
    ],
    "service_account_id": "string",
    "deletion_protection": "bool",
    "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"
    }
  }
  // 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

UpdateClusterMetadata

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.

UpdateClusterMetadataUpdateClusterMetadata

Field

Description

cluster_id

string

ID of the Elasticsearch cluster that is being updated.

ClusterCluster

An Elasticsearch cluster resource.
For more information, see the Concepts section of the documentation.

Field

Description

id

string

ID of the Elasticsearch cluster.
This ID is assigned at creation time.

folder_id

string

ID of the folder that the Elasticsearch cluster belongs to.

created_at

google.protobuf.Timestamp

Creation timestamp.

name

string

Name of the Elasticsearch cluster.
The name must be unique within the folder. 1-63 characters long.

description

string

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

labels

object (map<string, string>)

Custom labels for the Elasticsearch cluster as key:value pairs.
A maximum of 64 labels per resource is allowed.

environment

enum Environment

Deployment environment of the Elasticsearch cluster.

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

monitoring[]

Monitoring

Description of monitoring systems relevant to the Elasticsearch cluster.

config

ClusterConfig

Configuration of the Elasticsearch 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 of all hosts in the cluster is UNKNOWN).
  • ALIVE: Cluster is alive and well (Host.health of all hosts in the cluster is ALIVE).
  • DEAD: Cluster is inoperable (Host.health of all hosts in the cluster is DEAD).
  • DEGRADED: Cluster is in degraded state (Host.health of at least one of the hosts 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.

security_group_ids[]

string

User security groups

service_account_id

string

ID of the service account used for access to Object Storage.

deletion_protection

bool

Deletion Protection inhibits deletion of the cluster

maintenance_window

MaintenanceWindow

Window of maintenance operations.

planned_operation

MaintenanceOperation

Maintenance operation planned at nearest maintenance_window.

MonitoringMonitoring

Metadata of 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 Elasticsearch cluster.

ClusterConfigClusterConfig

Field

Description

version

string

Elasticsearch version.

elasticsearch

Elasticsearch

Configuration and resource allocation for Elasticsearch nodes.

edition

string

ElasticSearch edition.

ElasticsearchElasticsearch

Field

Description

data_node

DataNode

Configuration and resource allocation for Elasticsearch data nodes.

master_node

MasterNode

Configuration and resource allocation for Elasticsearch master nodes.

plugins[]

string

Cluster wide plugins

DataNodeDataNode

Field

Description

elasticsearch_config_set_7

ElasticsearchConfigSet7

Elasticsearch 7.x data node configuration.

Includes only one of the fields elasticsearch_config_set_7.

resources

Resources

Resources allocated to Elasticsearch data nodes.

ElasticsearchConfigSet7ElasticsearchConfigSet7

Elasticsearch 7.x data node configuration.

Field

Description

effective_config

ElasticsearchConfig7

Required field. Effective settings for an Elasticsearch cluster (a combination of settings defined in user_config and default_config).

user_config

ElasticsearchConfig7

User-defined settings for an Elasticsearch cluster.

default_config

ElasticsearchConfig7

Default settings for an Elasticsearch cluster.

ElasticsearchConfig7ElasticsearchConfig7

Elasticsearch 7.x supported configuration options are listed here.

Detailed description for each set of options is available in Elasticsearch documentation.

Any options that are not listed here are not supported.

Field

Description

max_clause_count

google.protobuf.Int64Value

The maximum number of clauses a boolean query can contain.

The limit is in place to prevent searches from becoming too large and taking up too much CPU and memory.
It affects not only Elasticsearch's bool query, but many other queries that are implicitly converted to bool query by Elastcsearch.

Default value: 1024.

See in-depth description in Elasticsearch documentation.

fielddata_cache_size

string

The maximum percentage or absolute value (10%, 512mb) of heap space that is allocated to field data cache.

All the field values that are placed in this cache, get loaded to memory in order to provide fast document based access to those values.
Building the field data cache for a field can be an expensive operations, so its recommended to have enough memory for this cache, and to keep it loaded.

Default value: unbounded.

See in-depth description in Elasticsearch documentation.

reindex_remote_whitelist

string

Remote hosts for reindex have to be explicitly allowed in elasticsearch.yml using the reindex.remote.whitelist property.
It can be set to a comma delimited list of allowed remote host and port combinations.
Scheme is ignored, only the host and port are used.

reindex_ssl_ca_path

string

List of paths to PEM encoded certificate files that should be trusted.

See in-depth description in Elasticsearch documentation

ResourcesResources

Computational resources.

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.
All available types are listed in the documentation.

MasterNodeMasterNode

Field

Description

resources

Resources

Resources allocated to Elasticsearch master nodes.

MaintenanceWindowMaintenanceWindow

Field

Description

anytime

AnytimeMaintenanceWindow

Includes only one of the fields anytime, weekly_maintenance_window.

weekly_maintenance_window

WeeklyMaintenanceWindow

Includes only one of the fields anytime, weekly_maintenance_window.

AnytimeMaintenanceWindowAnytimeMaintenanceWindow

Field

Description

Empty

WeeklyMaintenanceWindowWeeklyMaintenanceWindow

Field

Description

day

enum WeekDay

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

hour

int64

Hour of the day in UTC.

MaintenanceOperationMaintenanceOperation

Field

Description

info

string

delayed_until

google.protobuf.Timestamp

Was the article helpful?

Previous
Create
Next
Delete
Yandex project
© 2025 Yandex.Cloud LLC