Managed Service for OpenSearch API, REST: Cluster.Restore
- HTTP request
- Body parameters
- ConfigCreateSpec
- OpenSearchCreateSpec
- NodeGroup
- Resources
- DiskSizeAutoscaling
- OpenSearchConfig2
- KeystoreSetting
- DashboardsCreateSpec
- NodeGroup
- Access
- SnapshotManagement
- SnapshotSchedule
- HourlySnapshotSchedule
- DailySnapshotSchedule
- WeeklySnapshotSchedule
- MaintenanceWindow
- WeeklyMaintenanceWindow
- Response
- RestoreClusterMetadata
- Status
- Cluster
- Monitoring
- ClusterConfig
- OpenSearch
- NodeGroup
- Resources
- DiskSizeAutoscaling
- OpenSearchConfigSet2
- OpenSearchConfig2
- Dashboards
- NodeGroup
- Access
- SnapshotManagement
- SnapshotSchedule
- HourlySnapshotSchedule
- DailySnapshotSchedule
- WeeklySnapshotSchedule
- MaintenanceWindow
- WeeklyMaintenanceWindow
- MaintenanceOperation
Creates a new OpenSearch cluster using the specified backup.
HTTP request
POST https://mdb.api.yandexcloud.kz/managed-opensearch/v1/clusters:restore
Body parameters
{
"backupId": "string",
"name": "string",
"description": "string",
"labels": "object",
"environment": "string",
"configSpec": {
"version": "string",
"adminPassword": "string",
"opensearchSpec": {
"plugins": [
"string"
],
"nodeGroups": [
{
"name": "string",
"resources": {
"resourcePresetId": "string",
"diskSize": "string",
"diskTypeId": "string"
},
"hostsCount": "string",
"zoneIds": [
"string"
],
"subnetIds": [
"string"
],
"assignPublicIp": "boolean",
"roles": [
"string"
],
"diskSizeAutoscaling": {
"plannedUsageThreshold": "string",
"emergencyUsageThreshold": "string",
"diskSizeLimit": "string"
}
}
],
// Includes only one of the fields `opensearchConfig_2`
"opensearchConfig_2": {
"maxClauseCount": "string",
"fielddataCacheSize": "string",
"reindexRemoteWhitelist": "string"
},
// end of the list of possible fields
"keystoreSettings": [
{
"name": "string",
"value": "string"
}
]
},
"dashboardsSpec": {
"nodeGroups": [
{
"name": "string",
"resources": {
"resourcePresetId": "string",
"diskSize": "string",
"diskTypeId": "string"
},
"hostsCount": "string",
"zoneIds": [
"string"
],
"subnetIds": [
"string"
],
"assignPublicIp": "boolean",
"diskSizeAutoscaling": {
"plannedUsageThreshold": "string",
"emergencyUsageThreshold": "string",
"diskSizeLimit": "string"
}
}
]
},
"access": {
"dataTransfer": "boolean",
"serverless": "boolean"
},
"snapshotManagement": {
"snapshotSchedule": {
// Includes only one of the fields `hourlySnapshotSchedule`, `dailySnapshotSchedule`, `weeklySnapshotSchedule`
"hourlySnapshotSchedule": {
"minute": "string"
},
"dailySnapshotSchedule": {
"hour": "string",
"minute": "string"
},
"weeklySnapshotSchedule": {
"day": "string",
"hour": "string",
"minute": "string"
}
// end of the list of possible fields
},
"snapshotMaxAgeDays": "string"
}
},
"networkId": "string",
"securityGroupIds": [
"string"
],
"serviceAccountId": "string",
"deletionProtection": "boolean",
"folderId": "string",
"maintenanceWindow": {
// Includes only one of the fields `anytime`, `weeklyMaintenanceWindow`
"anytime": "object",
"weeklyMaintenanceWindow": {
"day": "string",
"hour": "string"
}
// end of the list of possible fields
},
"diskEncryptionKeyId": "string"
}
|
Field |
Description |
|
backupId |
string Required field. ID of the backup to create a new cluster from. To get the backup ID, use a ClusterService.ListBackups request. |
|
name |
string Required field. Name of the new OpenSearch cluster to be created from the backup. The name must be unique within the folder. The maximum string length in characters is 63. Value must match the regular expression |
|
description |
string Description of the new OpenSearch cluster to be created from the backup. The maximum string length in characters is 256. |
|
labels |
object (map<string, string>) Custom labels for the new OpenSearch cluster to be created from the backup as No more than 64 per resource. The maximum string length in characters for each value is 63. Each value must match the regular expression |
|
environment |
enum (Environment) Deployment environment of the new OpenSearch cluster to be created from the backup.
|
|
configSpec |
Required field. Configuration for the new OpenSearch cluster to be created from the backup. |
|
networkId |
string Required field. ID of the network to create the cluster in. The maximum string length in characters is 50. |
|
securityGroupIds[] |
string User security groups. |
|
serviceAccountId |
string ID of the service account used to access Object Storage. |
|
deletionProtection |
boolean Determines whether the cluster is protected from being deleted. |
|
folderId |
string Required field. ID of the folder to create the OpenSearch cluster in. To get the folder ID, use a yandex.cloud.resourcemanager.v1.FolderService.List request. The maximum string length in characters is 50. |
|
maintenanceWindow |
Cluster maintenance window. Should be defined by either one of the two options. |
|
diskEncryptionKeyId |
string ID of the key to encrypt cluster disks. |
ConfigCreateSpec
|
Field |
Description |
|
version |
string OpenSearch version. |
|
adminPassword |
string Required field. OpenSearch admin password. |
|
opensearchSpec |
OpenSearch configuration. |
|
dashboardsSpec |
Dashboards configuration. |
|
access |
Access policy for external services. |
|
snapshotManagement |
Snapshot management configuration |
OpenSearchCreateSpec
OpenSearch create-time configuration.
|
Field |
Description |
|
plugins[] |
string Names of the cluster plugins. |
|
nodeGroups[] |
OpenSearch type host groups of the cluster. |
|
opensearchConfig_2 |
Includes only one of the fields |
|
keystoreSettings[] |
Initial cluster keystore settings. |
NodeGroup
Configuration of the host group.
|
Field |
Description |
|
name |
string Required field. Name of the group. The maximum string length in characters is 63. Value must match the regular expression |
|
resources |
Resources allocated to the hosts. |
|
hostsCount |
string (int64) Number of hosts in the group. The minimum value is 1. |
|
zoneIds[] |
string IDs of the availability zones the hosts belong to. The maximum number of elements is 10. The maximum string length in characters for each value is 50. |
|
subnetIds[] |
string IDs of the subnets that the hosts belong to. The maximum number of elements is 10. The maximum string length in characters for each value is 50. |
|
assignPublicIp |
boolean Determines whether a public IP is assigned to the hosts in the group. |
|
roles[] |
enum (GroupRole) Roles of the hosts in the group.
|
|
diskSizeAutoscaling |
Disk size autoscaling settings |
Resources
A list of computational resources allocated to a host.
|
Field |
Description |
|
resourcePresetId |
string ID of the preset for computational resources allocated to a host. |
|
diskSize |
string (int64) Volume of the storage used by the host, in bytes. |
|
diskTypeId |
string Type of the storage used by the host: |
DiskSizeAutoscaling
|
Field |
Description |
|
plannedUsageThreshold |
string (int64) Amount of used storage for automatic disk scaling in the maintenance window, 0 means disabled, in percent. Acceptable values are 0 to 100, inclusive. |
|
emergencyUsageThreshold |
string (int64) Amount of used storage for immediately automatic disk scaling, 0 means disabled, in percent. Acceptable values are 0 to 100, inclusive. |
|
diskSizeLimit |
string (int64) Limit on how large the storage for database instances can automatically grow, in bytes. |
OpenSearchConfig2
|
Field |
Description |
|
maxClauseCount |
string (int64) the maximum number of allowed boolean clauses in a query |
|
fielddataCacheSize |
string the percentage or absolute value (10%, 512mb) of heap space that is allocated to fielddata |
|
reindexRemoteWhitelist |
string |
KeystoreSetting
Single keystore entry.
|
Field |
Description |
|
name |
string Keystore entry name. |
|
value |
string Keystore entry value. |
DashboardsCreateSpec
Dashboards create-time configuration.
|
Field |
Description |
|
nodeGroups[] |
Dashboards type host groups of the cluster. |
NodeGroup
|
Field |
Description |
|
name |
string Required field. Name of the group. The maximum string length in characters is 63. Value must match the regular expression |
|
resources |
Resources allocated to the hosts. |
|
hostsCount |
string (int64) Number of hosts in the group. The minimum value is 1. |
|
zoneIds[] |
string IDs of the availability zones the hosts belong to. |
|
subnetIds[] |
string IDs of the subnets that the hosts belong to. The maximum number of elements is 10. The maximum string length in characters for each value is 50. |
|
assignPublicIp |
boolean Determines whether a public IP is assigned to the hosts in the group. |
|
diskSizeAutoscaling |
Disk size autoscaling settings |
Access
Access policy for external services.
|
Field |
Description |
|
dataTransfer |
boolean Determines whether the access to Data Transfer is allowed. |
|
serverless |
boolean Determines whether the access to Serverless is allowed. |
SnapshotManagement
Snapshot management configuration
|
Field |
Description |
|
snapshotSchedule |
Snapshot creation schedule |
|
snapshotMaxAgeDays |
string (int64) Snapshot max age in days The minimum value is 7. |
SnapshotSchedule
Snapshot creation schedule
|
Field |
Description |
|
hourlySnapshotSchedule |
Hourly based snapshot schedule Includes only one of the fields |
|
dailySnapshotSchedule |
Daily based snapshot schedule Includes only one of the fields |
|
weeklySnapshotSchedule |
Weekly based snapshot schedule Includes only one of the fields |
HourlySnapshotSchedule
Hourly based snapshot schedule
|
Field |
Description |
|
minute |
string (int64) The minute of the hour at which the backup should be created. Acceptable values are 0 to 59, inclusive. |
DailySnapshotSchedule
Daily based snapshot schedule
|
Field |
Description |
|
hour |
string (int64) The hour of the day in UTC timezone at which the backup should be created. Acceptable values are 0 to 23, inclusive. |
|
minute |
string (int64) The minute of the hour at which the backup should be created. Acceptable values are 0 to 59, inclusive. |
WeeklySnapshotSchedule
Weekly based snapshot schedule
|
Field |
Description |
|
day |
enum (WeekDay) Day of the week
|
|
hour |
string (int64) The hour of the day in UTC timezone at which the backup should be created. Acceptable values are 0 to 23, inclusive. |
|
minute |
string (int64) The minute of the hour at which the backup should be created. Acceptable values are 0 to 59, inclusive. |
MaintenanceWindow
An OpenSearch cluster maintenance window. Should be defined by either one of the two options.
|
Field |
Description |
|
anytime |
object An any-time maintenance window. Includes only one of the fields |
|
weeklyMaintenanceWindow |
A weekly maintenance window. Includes only one of the fields |
WeeklyMaintenanceWindow
A weekly maintenance window.
|
Field |
Description |
|
day |
enum (WeekDay) Day of the week.
|
|
hour |
string (int64) Hour of the day in the UTC timezone. Acceptable values are 1 to 24, inclusive. |
Response
HTTP Code: 200 - OK
{
"id": "string",
"description": "string",
"createdAt": "string",
"createdBy": "string",
"modifiedAt": "string",
"done": "boolean",
"metadata": {
"clusterId": "string",
"backupId": "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",
"opensearch": {
"plugins": [
"string"
],
"nodeGroups": [
{
"name": "string",
"resources": {
"resourcePresetId": "string",
"diskSize": "string",
"diskTypeId": "string"
},
"hostsCount": "string",
"zoneIds": [
"string"
],
"subnetIds": [
"string"
],
"assignPublicIp": "boolean",
"roles": [
"string"
],
"diskSizeAutoscaling": {
"plannedUsageThreshold": "string",
"emergencyUsageThreshold": "string",
"diskSizeLimit": "string"
}
}
],
// Includes only one of the fields `opensearchConfigSet_2`
"opensearchConfigSet_2": {
"effectiveConfig": {
"maxClauseCount": "string",
"fielddataCacheSize": "string",
"reindexRemoteWhitelist": "string"
},
"userConfig": {
"maxClauseCount": "string",
"fielddataCacheSize": "string",
"reindexRemoteWhitelist": "string"
},
"defaultConfig": {
"maxClauseCount": "string",
"fielddataCacheSize": "string",
"reindexRemoteWhitelist": "string"
}
},
// end of the list of possible fields
"keystoreSettings": [
"string"
]
},
"dashboards": {
"nodeGroups": [
{
"name": "string",
"resources": {
"resourcePresetId": "string",
"diskSize": "string",
"diskTypeId": "string"
},
"hostsCount": "string",
"zoneIds": [
"string"
],
"subnetIds": [
"string"
],
"assignPublicIp": "boolean",
"diskSizeAutoscaling": {
"plannedUsageThreshold": "string",
"emergencyUsageThreshold": "string",
"diskSizeLimit": "string"
}
}
]
},
"access": {
"dataTransfer": "boolean",
"serverless": "boolean"
},
"snapshotManagement": {
"snapshotSchedule": {
// Includes only one of the fields `hourlySnapshotSchedule`, `dailySnapshotSchedule`, `weeklySnapshotSchedule`
"hourlySnapshotSchedule": {
"minute": "string"
},
"dailySnapshotSchedule": {
"hour": "string",
"minute": "string"
},
"weeklySnapshotSchedule": {
"day": "string",
"hour": "string",
"minute": "string"
}
// end of the list of possible fields
},
"snapshotMaxAgeDays": "string"
},
"fullVersion": "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",
"latestMaintenanceTime": "string",
"nextMaintenanceWindowTime": "string"
},
"diskEncryptionKeyId": "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. |
RestoreClusterMetadata
|
Field |
Description |
|
clusterId |
string ID of the new OpenSearch cluster being created from a backup. |
|
backupId |
string ID of the backup being used for creating a cluster. |
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 OpenSearch cluster resource.
|
Field |
Description |
|
id |
string ID of the OpenSearch cluster. |
|
folderId |
string ID of the folder that the OpenSearch cluster belongs to. |
|
createdAt |
string (date-time) Time when the cluster was created. String in RFC3339 To work with values in this field, use the APIs described in the |
|
name |
string Name of the OpenSearch cluster. |
|
description |
string Description of the OpenSearch cluster. 0-256 characters long. |
|
labels |
object (map<string, string>) Custom labels for the OpenSearch cluster as |
|
environment |
enum (Environment) Deployment environment of the OpenSearch cluster.
|
|
monitoring[] |
Description of monitoring systems relevant to the OpenSearch cluster. |
|
config |
Configuration of the OpenSearch cluster. |
|
networkId |
string ID of the cloud 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 to access Object Storage. |
|
deletionProtection |
boolean Determines whether the cluster is protected from being deleted. |
|
maintenanceWindow |
Cluster maintenance window. Should be defined by either one of the two options. |
|
plannedOperation |
Maintenance operation planned at nearest |
|
diskEncryptionKeyId |
string ID of the key to encrypt cluster disks. |
Monitoring
Monitoring system metadata.
|
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 OpenSearch cluster. |
ClusterConfig
The OpenSearch cluster configuration.
|
Field |
Description |
|
version |
string Version of the OpenSearch server software. |
|
opensearch |
OpenSearch configuration. |
|
dashboards |
Dashboards configuration. |
|
access |
Access policy for external services. |
|
snapshotManagement |
Snapshot management configuration |
|
fullVersion |
string Full version |
OpenSearch
The OpenSearch host group type configuration.
|
Field |
Description |
|
plugins[] |
string Names of the cluster plugins. |
|
nodeGroups[] |
Host groups of the OpenSearch type. |
|
opensearchConfigSet_2 |
Includes only one of the fields |
|
keystoreSettings[] |
string Keystore entries names. |
NodeGroup
Configuration of the host group.
|
Field |
Description |
|
name |
string Name of the group. Must be 1-63 characters long. |
|
resources |
Resources allocated to the hosts. |
|
hostsCount |
string (int64) Number of hosts in the group. |
|
zoneIds[] |
string IDs of the availability zones the hosts belong to. |
|
subnetIds[] |
string IDs of the subnets that the hosts belong to. |
|
assignPublicIp |
boolean Determines whether a public IP is assigned to the hosts in the group. |
|
roles[] |
enum (GroupRole) Roles of the host group.
|
|
diskSizeAutoscaling |
Disk size autoscaling settings |
Resources
A list of computational resources allocated to a host.
|
Field |
Description |
|
resourcePresetId |
string ID of the preset for computational resources allocated to a host. |
|
diskSize |
string (int64) Volume of the storage used by the host, in bytes. |
|
diskTypeId |
string Type of the storage used by the host: |
DiskSizeAutoscaling
|
Field |
Description |
|
plannedUsageThreshold |
string (int64) Amount of used storage for automatic disk scaling in the maintenance window, 0 means disabled, in percent. Acceptable values are 0 to 100, inclusive. |
|
emergencyUsageThreshold |
string (int64) Amount of used storage for immediately automatic disk scaling, 0 means disabled, in percent. Acceptable values are 0 to 100, inclusive. |
|
diskSizeLimit |
string (int64) Limit on how large the storage for database instances can automatically grow, in bytes. |
OpenSearchConfigSet2
|
Field |
Description |
|
effectiveConfig |
Required field. |
|
userConfig |
|
|
defaultConfig |
OpenSearchConfig2
|
Field |
Description |
|
maxClauseCount |
string (int64) the maximum number of allowed boolean clauses in a query |
|
fielddataCacheSize |
string the percentage or absolute value (10%, 512mb) of heap space that is allocated to fielddata |
|
reindexRemoteWhitelist |
string |
Dashboards
The Dashboards host group type configuration.
|
Field |
Description |
|
nodeGroups[] |
Host groups of the Dashboards type. |
NodeGroup
|
Field |
Description |
|
name |
string Name of the group. 1-63 characters long. |
|
resources |
Resources allocated to the hosts. |
|
hostsCount |
string (int64) Number of hosts in the group. |
|
zoneIds[] |
string IDs of the availability zones the hosts belong to. |
|
subnetIds[] |
string IDs of the subnets that the hosts belong to. |
|
assignPublicIp |
boolean Determines whether a public IP is assigned to the hosts in the group. |
|
diskSizeAutoscaling |
Disk size autoscaling settings |
Access
Access policy for external services.
|
Field |
Description |
|
dataTransfer |
boolean Determines whether the access to Data Transfer is allowed. |
|
serverless |
boolean Determines whether the access to Serverless is allowed. |
SnapshotManagement
Snapshot management configuration
|
Field |
Description |
|
snapshotSchedule |
Snapshot creation schedule |
|
snapshotMaxAgeDays |
string (int64) Snapshot max age in days The minimum value is 7. |
SnapshotSchedule
Snapshot creation schedule
|
Field |
Description |
|
hourlySnapshotSchedule |
Hourly based snapshot schedule Includes only one of the fields |
|
dailySnapshotSchedule |
Daily based snapshot schedule Includes only one of the fields |
|
weeklySnapshotSchedule |
Weekly based snapshot schedule Includes only one of the fields |
HourlySnapshotSchedule
Hourly based snapshot schedule
|
Field |
Description |
|
minute |
string (int64) The minute of the hour at which the backup should be created. Acceptable values are 0 to 59, inclusive. |
DailySnapshotSchedule
Daily based snapshot schedule
|
Field |
Description |
|
hour |
string (int64) The hour of the day in UTC timezone at which the backup should be created. Acceptable values are 0 to 23, inclusive. |
|
minute |
string (int64) The minute of the hour at which the backup should be created. Acceptable values are 0 to 59, inclusive. |
WeeklySnapshotSchedule
Weekly based snapshot schedule
|
Field |
Description |
|
day |
enum (WeekDay) Day of the week
|
|
hour |
string (int64) The hour of the day in UTC timezone at which the backup should be created. Acceptable values are 0 to 23, inclusive. |
|
minute |
string (int64) The minute of the hour at which the backup should be created. Acceptable values are 0 to 59, inclusive. |
MaintenanceWindow
An OpenSearch cluster maintenance window. Should be defined by either one of the two options.
|
Field |
Description |
|
anytime |
object An any-time maintenance window. Includes only one of the fields |
|
weeklyMaintenanceWindow |
A weekly maintenance window. Includes only one of the fields |
WeeklyMaintenanceWindow
A weekly maintenance window.
|
Field |
Description |
|
day |
enum (WeekDay) Day of the week.
|
|
hour |
string (int64) Hour of the day in the UTC timezone. Acceptable values are 1 to 24, inclusive. |
MaintenanceOperation
|
Field |
Description |
|
info |
string The description of the operation. The maximum string length in characters is 256. |
|
delayedUntil |
string (date-time) Delay time for the maintenance operation. String in RFC3339 To work with values in this field, use the APIs described in the |
|
latestMaintenanceTime |
string (date-time) Time of the last maintenance window. String in RFC3339 To work with values in this field, use the APIs described in the |
|
nextMaintenanceWindowTime |
string (date-time) Time of the next maintenance window. String in RFC3339 To work with values in this field, use the APIs described in the |