Managed Service for Trino API, REST: Cluster.Update
- HTTP request
- Path parameters
- Body parameters
- UpdateTrinoConfigSpec
- UpdateCoordinatorConfig
- Resources
- UpdateWorkerConfig
- WorkerScalePolicy
- FixedScalePolicy
- AutoScalePolicy
- RetryPolicyConfig
- ExchangeManagerConfig
- ExchangeManagerStorage
- UpdateNetworkConfigSpec
- LoggingConfig
- MaintenanceWindow
- WeeklyMaintenanceWindow
- Response
- UpdateClusterMetadata
- Status
- Cluster
- Monitoring
- TrinoConfig
- CoordinatorConfig
- Resources
- WorkerConfig
- WorkerScalePolicy
- FixedScalePolicy
- AutoScalePolicy
- RetryPolicyConfig
- ExchangeManagerConfig
- ExchangeManagerStorage
- NetworkConfig
- LoggingConfig
- MaintenanceWindow
- WeeklyMaintenanceWindow
- MaintenanceOperation
Updates configuration of the specified Trino cluster.
HTTP request
PATCH https://trino.api.cloud.yandex.net/managed-trino/v1/clusters/{clusterId}
Path parameters
Field |
Description |
clusterId |
string Required field. ID of the Trino cluster. |
Body parameters
{
"updateMask": "string",
"name": "string",
"description": "string",
"labels": "object",
"deletionProtection": "boolean",
"trino": {
"coordinatorConfig": {
"resources": {
"resourcePresetId": "string"
}
},
"workerConfig": {
"resources": {
"resourcePresetId": "string"
},
"scalePolicy": {
// Includes only one of the fields `fixedScale`, `autoScale`
"fixedScale": {
"count": "string"
},
"autoScale": {
"minCount": "string",
"maxCount": "string"
}
// end of the list of possible fields
}
},
"retryPolicy": {
"policy": "string",
"exchangeManager": {
"additionalProperties": "object",
"storage": {
// Includes only one of the fields `serviceS3`
"serviceS3": "object"
// end of the list of possible fields
}
},
"additionalProperties": "object"
}
},
"networkSpec": {
"securityGroupIds": [
"string"
]
},
"serviceAccountId": "string",
"logging": {
"enabled": "boolean",
// Includes only one of the fields `folderId`, `logGroupId`
"folderId": "string",
"logGroupId": "string",
// end of the list of possible fields
"minLevel": "string"
},
"maintenanceWindow": {
// Includes only one of the fields `anytime`, `weeklyMaintenanceWindow`
"anytime": "object",
"weeklyMaintenanceWindow": {
"day": "string",
"hour": "string"
}
// end of the list of possible fields
}
}
Field |
Description |
updateMask |
string (field-mask) A comma-separated names off ALL fields to be updated. If |
name |
string Name of the Trino cluster. The name must be unique within the folder. |
description |
string Description of the Trino cluster. |
labels |
object (map<string, string>) Custom labels for the Trino cluster as |
deletionProtection |
boolean Deletion Protection inhibits deletion of the cluster. |
trino |
Configuration of Trino components. |
networkSpec |
Network related configuration options. |
serviceAccountId |
string Service account used to access Cloud resources. |
logging |
Cloud logging configuration. |
maintenanceWindow |
Window of maintenance operations. |
UpdateTrinoConfigSpec
Field |
Description |
coordinatorConfig |
Configuration for the coordinator, specifying computational resources and other settings. |
workerConfig |
Configuration for worker nodes, including scaling policy and computational resources. |
retryPolicy |
Configuration for retry policy, specifying the spooling storage destination and other settings. |
UpdateCoordinatorConfig
Field |
Description |
resources |
Configuration for computational resources assigned to the coordinator instance. |
Resources
Field |
Description |
resourcePresetId |
string Required field. ID of the preset for computational resources allocated to a instance (e.g., CPU, memory, etc.). |
UpdateWorkerConfig
Field |
Description |
resources |
Configuration for computational resources for worker instances. |
scalePolicy |
Configuration for scaling policy for worker instances. |
WorkerScalePolicy
Field |
Description |
fixedScale |
A fixed scaling policy that specifies a fixed number of worker instances. Includes only one of the fields Defines the scaling type for worker instances. |
autoScale |
A scaling policy that dynamically adjusts the number of worker instances Includes only one of the fields Defines the scaling type for worker instances. |
FixedScalePolicy
Field |
Description |
count |
string (int64) Specifies the number of worker instances. |
AutoScalePolicy
Field |
Description |
minCount |
string (int64) |
maxCount |
string (int64) |
RetryPolicyConfig
Field |
Description |
policy |
enum (RetryPolicy) Retry policy level.
|
exchangeManager |
Configuration for exchange manager. |
additionalProperties |
object (map<string, string>) Additional properties. |
ExchangeManagerConfig
Field |
Description |
additionalProperties |
object (map<string, string>) Additional properties. |
storage |
ExchangeManagerStorage
Field |
Description |
serviceS3 |
object Use service side s3 bucket for exchange manager. Includes only one of the fields |
UpdateNetworkConfigSpec
Field |
Description |
securityGroupIds[] |
string User security groups. |
LoggingConfig
Field |
Description |
enabled |
boolean Logs generated by the Trino components are delivered to Cloud Logging. |
folderId |
string Logs should be written to default log group for specified folder. Includes only one of the fields Destination of log records. |
logGroupId |
string Logs should be written to log group resolved by ID. Includes only one of the fields Destination of log records. |
minLevel |
enum (Level) Minimum log entry level. See LogLevel.Level for details.
|
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. |
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",
"monitoring": [
{
"name": "string",
"description": "string",
"link": "string"
}
],
"trino": {
"coordinatorConfig": {
"resources": {
"resourcePresetId": "string"
}
},
"workerConfig": {
"resources": {
"resourcePresetId": "string"
},
"scalePolicy": {
// Includes only one of the fields `fixedScale`, `autoScale`
"fixedScale": {
"count": "string"
},
"autoScale": {
"minCount": "string",
"maxCount": "string"
}
// end of the list of possible fields
}
},
"version": "string",
"retryPolicy": {
"policy": "string",
"exchangeManager": {
"additionalProperties": "object",
"storage": {
// Includes only one of the fields `serviceS3`
"serviceS3": "object"
// end of the list of possible fields
}
},
"additionalProperties": "object"
}
},
"health": "string",
"status": "string",
"network": {
"subnetIds": [
"string"
],
"securityGroupIds": [
"string"
]
},
"deletionProtection": "boolean",
"serviceAccountId": "string",
"logging": {
"enabled": "boolean",
// Includes only one of the fields `folderId`, `logGroupId`
"folderId": "string",
"logGroupId": "string",
// end of the list of possible fields
"minLevel": "string"
},
"coordinatorUrl": "string",
"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"
}
}
// 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. |
UpdateClusterMetadata
Field |
Description |
clusterId |
string ID of the Trino cluster that is being updated. |
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
Trino cluster.
Field |
Description |
id |
string Unique ID of the Trino cluster. |
folderId |
string ID of the folder that the Trino cluster belongs to. |
createdAt |
string (date-time) The time when the Trino cluster was created. String in RFC3339 To work with values in this field, use the APIs described in the |
name |
string Name of the Trino cluster. |
description |
string Description of the Trino cluster. 0-256 characters long. |
labels |
object (map<string, string>) Resource labels as |
monitoring[] |
Monitoring systems relevant to the Trino cluster. |
trino |
Configuration of the Trino cluster. |
health |
enum (Health) Aggregated cluster health.
|
status |
enum (Status) Cluster status.
|
network |
Network related configuration options. |
deletionProtection |
boolean Deletion Protection inhibits deletion of the cluster. |
serviceAccountId |
string Service account used to access Cloud resources. |
logging |
Cloud logging configuration. |
coordinatorUrl |
string Address of Trino Coordinator. |
maintenanceWindow |
Window of maintenance operations. |
plannedOperation |
Maintenance operation planned at nearest maintenance_window. |
Monitoring
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. |
TrinoConfig
Field |
Description |
coordinatorConfig |
Required field. Configuration for the coordinator, specifying computational resources and other settings. |
workerConfig |
Required field. Configuration for worker nodes, including scaling policy and computational resources. |
version |
string Version of Trino. |
retryPolicy |
Configuration for retry policy, specifying the spooling storage destination and other settings. |
CoordinatorConfig
Field |
Description |
resources |
Required field. Configuration for computational resources assigned to the coordinator instance. |
Resources
Field |
Description |
resourcePresetId |
string Required field. ID of the preset for computational resources allocated to a instance (e.g., CPU, memory, etc.). |
WorkerConfig
Field |
Description |
resources |
Required field. Configuration for computational resources for worker instances. |
scalePolicy |
Required field. Configuration for scaling policy for worker instances. |
WorkerScalePolicy
Field |
Description |
fixedScale |
A fixed scaling policy that specifies a fixed number of worker instances. Includes only one of the fields Defines the scaling type for worker instances. |
autoScale |
A scaling policy that dynamically adjusts the number of worker instances Includes only one of the fields Defines the scaling type for worker instances. |
FixedScalePolicy
Field |
Description |
count |
string (int64) Specifies the number of worker instances. |
AutoScalePolicy
Field |
Description |
minCount |
string (int64) |
maxCount |
string (int64) |
RetryPolicyConfig
Field |
Description |
policy |
enum (RetryPolicy) Retry policy level.
|
exchangeManager |
Configuration for exchange manager. |
additionalProperties |
object (map<string, string>) Additional properties. |
ExchangeManagerConfig
Field |
Description |
additionalProperties |
object (map<string, string>) Additional properties. |
storage |
ExchangeManagerStorage
Field |
Description |
serviceS3 |
object Use service side s3 bucket for exchange manager. Includes only one of the fields |
NetworkConfig
Field |
Description |
subnetIds[] |
string IDs of VPC network subnets where instances of the cluster are attached. |
securityGroupIds[] |
string User security groups. |
LoggingConfig
Field |
Description |
enabled |
boolean Logs generated by the Trino components are delivered to Cloud Logging. |
folderId |
string Logs should be written to default log group for specified folder. Includes only one of the fields Destination of log records. |
logGroupId |
string Logs should be written to log group resolved by ID. Includes only one of the fields Destination of log records. |
minLevel |
enum (Level) Minimum log entry level. See LogLevel.Level for details.
|
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 |
latestMaintenanceTime |
string (date-time) String in RFC3339 To work with values in this field, use the APIs described in the |
nextMaintenanceWindowTime |
string (date-time) String in RFC3339 To work with values in this field, use the APIs described in the |