Managed Service for Elasticsearch API, REST: Cluster.Create
- HTTP request
- Body parameters
- ConfigSpec
- ElasticsearchSpec
- DataNode
- ElasticsearchConfig7
- Resources
- MasterNode
- UserSpec
- HostSpec
- MaintenanceWindow
- WeeklyMaintenanceWindow
- ExtensionSpec
- Response
- CreateClusterMetadata
- Status
- Cluster
- Monitoring
- ClusterConfig
- Elasticsearch
- DataNode
- ElasticsearchConfigSet7
- ElasticsearchConfig7
- Resources
- MasterNode
- MaintenanceWindow
- WeeklyMaintenanceWindow
- MaintenanceOperation
Creates a new Elasticsearch cluster in the specified folder.
HTTP request
POST https://mdb.api.cloud.yandex.net/managed-elasticsearch/v1/clusters
Body parameters
{
"folderId": "string",
"name": "string",
"description": "string",
"labels": "object",
"environment": "string",
"configSpec": {
"version": "string",
"elasticsearchSpec": {
"dataNode": {
// Includes only one of the fields `elasticsearchConfig_7`
"elasticsearchConfig_7": {
"maxClauseCount": "string",
"fielddataCacheSize": "string",
"reindexRemoteWhitelist": "string",
"reindexSslCaPath": "string"
},
// end of the list of possible fields
"resources": {
"resourcePresetId": "string",
"diskSize": "string",
"diskTypeId": "string"
}
},
"masterNode": {
"resources": {
"resourcePresetId": "string",
"diskSize": "string",
"diskTypeId": "string"
}
},
"plugins": [
"string"
]
},
"edition": "string",
"adminPassword": "string"
},
"userSpecs": [
{
"name": "string",
"password": "string"
}
],
"hostSpecs": [
{
"zoneId": "string",
"subnetId": "string",
"assignPublicIp": "boolean",
"type": "string",
"shardName": "string"
}
],
"networkId": "string",
"securityGroupIds": [
"string"
],
"serviceAccountId": "string",
"deletionProtection": "boolean",
"maintenanceWindow": {
// Includes only one of the fields `anytime`, `weeklyMaintenanceWindow`
"anytime": "object",
"weeklyMaintenanceWindow": {
"day": "string",
"hour": "string"
}
// end of the list of possible fields
},
"extensionSpecs": [
{
"name": "string",
"uri": "string",
"disabled": "boolean"
}
]
}
Field |
Description |
folderId |
string Required field. ID of the folder to create the Elasticsearch cluster in. |
name |
string Required field. Name of the Elasticsearch cluster. The name must be unique within the folder. |
description |
string Description of the Elasticsearch cluster. |
labels |
object (map<string, string>) Custom labels for the Elasticsearch cluster as For example, "project": "mvp" or "source": "dictionary". |
environment |
enum (Environment) Deployment environment of the Elasticsearch cluster.
|
configSpec |
Required field. Elasticsearch and hosts configuration for the cluster. |
userSpecs[] |
One or more descriptions of users to be created in Elasticsearch cluster. |
hostSpecs[] |
One or more configurations of hosts to be created in the Elasticsearch cluster. |
networkId |
string Required field. ID of the network to create the Elasticsearch cluster in. |
securityGroupIds[] |
string User security groups |
serviceAccountId |
string ID of the service account used for access to Object Storage. |
deletionProtection |
boolean Deletion Protection inhibits deletion of the cluster |
maintenanceWindow |
Window of maintenance operations. |
extensionSpecs[] |
optional |
ConfigSpec
Field |
Description |
version |
string Elasticsearch version. |
elasticsearchSpec |
Configuration and resource allocation for Elasticsearch nodes. |
edition |
string ElasticSearch edition. |
adminPassword |
string Required field. ElasticSearch admin password. |
ElasticsearchSpec
Field |
Description |
dataNode |
Configuration and resource allocation for Elasticsearch data nodes. |
masterNode |
Configuration and resource allocation for Elasticsearch master nodes. |
plugins[] |
string Cluster wide plugins |
DataNode
Field |
Description |
elasticsearchConfig_7 |
Includes only one of the fields Elasticsearch data node configuration. |
resources |
Resources allocated to Elasticsearch data nodes. |
ElasticsearchConfig7
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 |
maxClauseCount |
string (int64) 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. Default value: See in-depth description in Elasticsearch documentation |
fielddataCacheSize |
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. Default value: unbounded. See in-depth description in Elasticsearch documentation |
reindexRemoteWhitelist |
string Remote hosts for reindex have to be explicitly allowed in elasticsearch.yml using the reindex.remote.whitelist property. |
reindexSslCaPath |
string List of paths to PEM encoded certificate files that should be trusted. See in-depth description in Elasticsearch documentation |
Resources
Computational resources.
Field |
Description |
resourcePresetId |
string ID of the preset for computational resources available to a host (CPU, memory etc.). |
diskSize |
string (int64) Volume of the storage available to a host, in bytes. |
diskTypeId |
string Type of the storage environment for the host. |
MasterNode
Field |
Description |
resources |
Resources allocated to Elasticsearch master nodes. |
UserSpec
Field |
Description |
name |
string Required field. Name of the Elasticsearch user. |
password |
string Required field. Password of the Elasticsearch user. |
HostSpec
Field |
Description |
zoneId |
string ID of the availability zone where the host resides. |
subnetId |
string ID of the subnet the host resides in. |
assignPublicIp |
boolean The flag that defines whether a public IP address is assigned to the host. If the value is |
type |
enum (Type) Required field. Host type.
|
shardName |
string The shard name to create on the host. |
MaintenanceWindow
Field |
Description |
anytime |
object Includes only one of the fields |
weeklyMaintenanceWindow |
Includes only one of the fields |
WeeklyMaintenanceWindow
Field |
Description |
day |
enum (WeekDay)
|
hour |
string (int64) Hour of the day in UTC. |
ExtensionSpec
Field |
Description |
name |
string Required field. Name of the extension. |
uri |
string URI of the zip archive to create the new extension from. Currently only supports links that are stored in Object Storage. |
disabled |
boolean The flag shows whether to create the extension in disabled state. |
Response
HTTP Code: 200 - OK
{
"id": "string",
"description": "string",
"createdAt": "string",
"createdBy": "string",
"modifiedAt": "string",
"done": "boolean",
"metadata": {
"clusterId": "string"
},
// Includes only one of the fields `error`, `response`
"error": {
"code": "integer",
"message": "string",
"details": [
"object"
]
},
"response": {
"id": "string",
"folderId": "string",
"createdAt": "string",
"name": "string",
"description": "string",
"labels": "object",
"environment": "string",
"monitoring": [
{
"name": "string",
"description": "string",
"link": "string"
}
],
"config": {
"version": "string",
"elasticsearch": {
"dataNode": {
// Includes only one of the fields `elasticsearchConfigSet_7`
"elasticsearchConfigSet_7": {
"effectiveConfig": {
"maxClauseCount": "string",
"fielddataCacheSize": "string",
"reindexRemoteWhitelist": "string",
"reindexSslCaPath": "string"
},
"userConfig": {
"maxClauseCount": "string",
"fielddataCacheSize": "string",
"reindexRemoteWhitelist": "string",
"reindexSslCaPath": "string"
},
"defaultConfig": {
"maxClauseCount": "string",
"fielddataCacheSize": "string",
"reindexRemoteWhitelist": "string",
"reindexSslCaPath": "string"
}
},
// end of the list of possible fields
"resources": {
"resourcePresetId": "string",
"diskSize": "string",
"diskTypeId": "string"
}
},
"masterNode": {
"resources": {
"resourcePresetId": "string",
"diskSize": "string",
"diskTypeId": "string"
}
},
"plugins": [
"string"
]
},
"edition": "string"
},
"networkId": "string",
"health": "string",
"status": "string",
"securityGroupIds": [
"string"
],
"serviceAccountId": "string",
"deletionProtection": "boolean",
"maintenanceWindow": {
// Includes only one of the fields `anytime`, `weeklyMaintenanceWindow`
"anytime": "object",
"weeklyMaintenanceWindow": {
"day": "string",
"hour": "string"
}
// end of the list of possible fields
},
"plannedOperation": {
"info": "string",
"delayedUntil": "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. |
createdAt |
string (date-time) Creation timestamp. String in RFC3339 To work with values in this field, use the APIs described in the |
createdBy |
string ID of the user or service account who initiated the operation. |
modifiedAt |
string (date-time) The time when the Operation resource was last modified. String in RFC3339 To work with values in this field, use the APIs described in the |
done |
boolean If the value is |
metadata |
Service-specific metadata associated with the operation. |
error |
The error result of the operation in case of failure or cancellation. Includes only one of the fields The operation result. |
response |
The normal response of the operation in case of success. Includes only one of the fields The operation result. |
CreateClusterMetadata
Field |
Description |
clusterId |
string ID of the Elasticsearch cluster that is being created. |
Status
The error result of the operation in case of failure or cancellation.
Field |
Description |
code |
integer (int32) Error code. An enum value of google.rpc.Code |
message |
string An error message. |
details[] |
object A list of messages that carry the error details. |
Cluster
An Elasticsearch cluster resource.
For more information, see the Concepts section of the documentation.
Field |
Description |
id |
string ID of the Elasticsearch cluster. |
folderId |
string ID of the folder that the Elasticsearch cluster belongs to. |
createdAt |
string (date-time) Creation timestamp. String in RFC3339 To work with values in this field, use the APIs described in the |
name |
string Name of the Elasticsearch cluster. |
description |
string Description of the Elasticsearch cluster. 0-256 characters long. |
labels |
object (map<string, string>) Custom labels for the Elasticsearch cluster as |
environment |
enum (Environment) Deployment environment of the Elasticsearch cluster.
|
monitoring[] |
Description of monitoring systems relevant to the Elasticsearch cluster. |
config |
Configuration of the Elasticsearch cluster. |
networkId |
string ID of the network that the cluster belongs to. |
health |
enum (Health) Aggregated cluster health.
|
status |
enum (Status) Current state of the cluster.
|
securityGroupIds[] |
string User security groups |
serviceAccountId |
string ID of the service account used for access to Object Storage. |
deletionProtection |
boolean Deletion Protection inhibits deletion of the cluster |
maintenanceWindow |
Window of maintenance operations. |
plannedOperation |
Maintenance operation planned at nearest maintenance_window. |
Monitoring
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. |
ClusterConfig
Field |
Description |
version |
string Elasticsearch version. |
elasticsearch |
Configuration and resource allocation for Elasticsearch nodes. |
edition |
string ElasticSearch edition. |
Elasticsearch
Field |
Description |
dataNode |
Configuration and resource allocation for Elasticsearch data nodes. |
masterNode |
Configuration and resource allocation for Elasticsearch master nodes. |
plugins[] |
string Cluster wide plugins |
DataNode
Field |
Description |
elasticsearchConfigSet_7 |
Elasticsearch 7.x data node configuration. Includes only one of the fields |
resources |
Resources allocated to Elasticsearch data nodes. |
ElasticsearchConfigSet7
Elasticsearch 7.x data node configuration.
Field |
Description |
effectiveConfig |
Required field. Effective settings for an Elasticsearch cluster (a combination of settings defined in |
userConfig |
User-defined settings for an Elasticsearch cluster. |
defaultConfig |
Default settings for an Elasticsearch cluster. |
ElasticsearchConfig7
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 |
maxClauseCount |
string (int64) 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. Default value: See in-depth description in Elasticsearch documentation |
fielddataCacheSize |
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. Default value: unbounded. See in-depth description in Elasticsearch documentation |
reindexRemoteWhitelist |
string Remote hosts for reindex have to be explicitly allowed in elasticsearch.yml using the reindex.remote.whitelist property. |
reindexSslCaPath |
string List of paths to PEM encoded certificate files that should be trusted. See in-depth description in Elasticsearch documentation |
Resources
Computational resources.
Field |
Description |
resourcePresetId |
string ID of the preset for computational resources available to a host (CPU, memory etc.). |
diskSize |
string (int64) Volume of the storage available to a host, in bytes. |
diskTypeId |
string Type of the storage environment for the host. |
MasterNode
Field |
Description |
resources |
Resources allocated to Elasticsearch master nodes. |
MaintenanceWindow
Field |
Description |
anytime |
object Includes only one of the fields |
weeklyMaintenanceWindow |
Includes only one of the fields |
WeeklyMaintenanceWindow
Field |
Description |
day |
enum (WeekDay)
|
hour |
string (int64) Hour of the day in UTC. |
MaintenanceOperation
Field |
Description |
info |
string |
delayedUntil |
string (date-time) String in RFC3339 To work with values in this field, use the APIs described in the |