Managed Service for Hive Metastore™ API, REST: Cluster.Create
Creates a Metastore Cluster.
HTTP request
POST https://metastore.api.yandexcloud.kz/managed-metastore/v1/clusters
Body parameters
{
"folderId": "string",
"name": "string",
"description": "string",
"labels": "object",
"deletionProtection": "boolean",
"version": "string",
"configSpec": {
"resources": {
"resourcePresetId": "string"
},
"warehouse": {
// Includes only one of the fields `s3`
"s3": {
"bucket": "string",
"path": "string"
}
// end of the list of possible fields
}
},
"serviceAccountId": "string",
"logging": {
// Includes only one of the fields `folderId`, `logGroupId`
"folderId": "string",
"logGroupId": "string",
// end of the list of possible fields
"enabled": "boolean",
"minLevel": "string"
},
"network": {
"subnetIds": [
"string"
],
"securityGroupIds": [
"string"
]
},
"maintenanceWindow": {
// Includes only one of the fields `anytime`, `weeklyMaintenanceWindow`
"anytime": "object",
"weeklyMaintenanceWindow": {
"day": "string",
"hour": "string"
}
// end of the list of possible fields
},
"maintenanceWindows": {
// Includes only one of the fields `anytime`, `weeklyMaintenanceSchedule`
"anytime": "object",
"weeklyMaintenanceSchedule": {
"slots": [
{
"day": "string",
"startTime": {
"hours": "integer",
"minutes": "integer",
"seconds": "integer",
"nanos": "integer"
},
"duration": "string",
"allowTemporaryUnavailability": "boolean"
}
]
}
// end of the list of possible fields
}
}
|
Field |
Description |
|
folderId |
string Required field. ID of the folder to create the Metastore Cluster in. The maximum string length in characters is 50. |
|
name |
string Required field. Name of the Metastore Cluster. The maximum string length in characters is 63. Value must match the regular expression |
|
description |
string Description of the Metastore Cluster. The maximum string length in characters is 256. |
|
labels |
object (map<string, string>) Custom labels for the Metastore Cluster as The maximum string length in characters for each value is 63. The string length in characters for each key must be 1-63. Each key must match the regular expression |
|
deletionProtection |
boolean Deletion Protection prevents deletion of the cluster. |
|
version |
string Metastore server version. |
|
configSpec |
Configuration of the Metastore Cluster. |
|
serviceAccountId |
string Required field. Service account used to access Cloud resources. The maximum string length in characters is 50. |
|
logging |
Cloud logging configuration. |
|
network |
Network-related configuration options. |
|
maintenanceWindow |
Deprecated. Use maintenance_windows instead. |
|
maintenanceWindows |
Maintenance windows. |
ConfigSpec
|
Field |
Description |
|
resources |
Configuration for computational resources for Metastore server instances. |
|
warehouse |
Required field. Configuration of warehouse. |
Resources
|
Field |
Description |
|
resourcePresetId |
string Required field. ID of the preset for computational resources allocated to an instance (e.g., CPU, memory, etc.). The maximum string length in characters is 50. |
WarehouseConfig
|
Field |
Description |
|
s3 |
Yandex Cloud Object Storage. Includes only one of the fields |
S3Warehouse
|
Field |
Description |
|
bucket |
string Required field. Bucket name to use. |
|
path |
string Path within the bucket to use. Value must match the regular expression |
LoggingConfig
|
Field |
Description |
|
folderId |
string Logs will be written to the default log group of the specified folder. Value must match the regular expression Includes only one of the fields Destination of log records. |
|
logGroupId |
string Logs will be written to the log group specified by its ID. Value must match the regular expression Includes only one of the fields Destination of log records. |
|
enabled |
boolean Logs generated by the Metastore server are delivered to Cloud Logging. |
|
minLevel |
enum (Level) Minimum severity level for log entries.
|
NetworkConfig
|
Field |
Description |
|
subnetIds[] |
string IDs of VPC network subnets where instances of the cluster are attached. |
|
securityGroupIds[] |
string User security groups. |
MaintenanceWindow
|
Field |
Description |
|
anytime |
object The cluster may be restarted for maintenance at any time. Includes only one of the fields |
|
weeklyMaintenanceWindow |
Maintenance is allowed only within the specified weekly window. Includes only one of the fields |
WeeklyMaintenanceWindow
|
Field |
Description |
|
day |
enum (WeekDay) Day of the week when maintenance can occur.
|
|
hour |
string (int64) Hour of the day in UTC when the maintenance window starts. Acceptable values are 1 to 24, inclusive. |
MaintenanceWindows
Maintenance windows shared by all managed database services.
|
Field |
Description |
|
anytime |
object Maintenance operations can be scheduled anytime. Includes only one of the fields |
|
weeklyMaintenanceSchedule |
Maintenance operations can be scheduled during the specified weekly slots. Includes only one of the fields |
WeeklyMaintenanceSchedule
|
Field |
Description |
|
slots[] |
Weekly time slots during which maintenance operations can be scheduled. The number of elements must be greater than 0. |
MaintenanceWindowSlot
|
Field |
Description |
|
day |
enum (DayOfWeek) Day of the week.
|
|
startTime |
Required field. Start time in UTC. |
|
duration |
string (duration) Required field. Slot duration. |
|
allowTemporaryUnavailability |
boolean Allows maintenance operations that may cause temporary write unavailability. |
TimeOfDay
Represents a time of day. The date and time zone are either not significant
or are specified elsewhere. An API may choose to allow leap seconds. Related
types are google.type.Date
|
Field |
Description |
|
hours |
integer (int32) Hours of day in 24 hour format. Should be from 0 to 23. An API may choose |
|
minutes |
integer (int32) Minutes of hour of day. Must be from 0 to 59. |
|
seconds |
integer (int32) Seconds of minutes of the time. Must normally be from 0 to 59. An API may |
|
nanos |
integer (int32) Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. |
Response
HTTP Code: 200 - OK
{
"id": "string",
"description": "string",
"createdAt": "string",
"createdBy": "string",
"modifiedAt": "string",
"done": "boolean",
"metadata": "object",
// Includes only one of the fields `error`, `response`
"error": {
"code": "integer",
"message": "string",
"details": [
"object"
]
},
"response": "object"
// 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 |
object 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 |
object The normal response of the operation in case of success. Includes only one of the fields The operation result. |
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. |