Ytsaurus API, REST: Cluster.Update
- HTTP request
- Body parameters
- ClusterSpec
- StorageSpec
- HddSpec
- SsdSpec
- ComputeSpec
- DiskSpec
- ScalePolicy
- FixedScale
- AutoScale
- TabletSpec
- ProxySpec
- HttpProxySpec
- RpcProxySpec
- OdinSpec
- Response
- UpdateClusterMetadata
- Status
- Cluster
- ClusterSpec
- StorageSpec
- HddSpec
- SsdSpec
- ComputeSpec
- DiskSpec
- ScalePolicy
- FixedScale
- AutoScale
- TabletSpec
- ProxySpec
- HttpProxySpec
- RpcProxySpec
- OdinSpec
- Endpoints
Updates the specified cluster.
HTTP request
PATCH https://ytsaurus.api.yandexcloud.kz/ytsaurus/v1/clusters
Body parameters
{
"clusterId": "string",
"updateMask": "string",
"name": "string",
"description": "string",
"labels": "object",
"subnetId": "string",
"securityGroupIds": [
"string"
],
"spec": {
"storage": {
"hdd": {
"sizeGb": "string",
"count": "string"
},
"ssd": {
"sizeGb": "string",
"type": "string",
"count": "string"
}
},
"compute": [
{
"preset": "string",
"disks": [
{
"type": "string",
"sizeGb": "string",
"locations": [
"string"
]
}
],
"scalePolicy": {
// Includes only one of the fields `fixed`, `auto`
"fixed": {
"size": "string"
},
"auto": {
"minSize": "string",
"maxSize": "string"
}
// end of the list of possible fields
},
"name": "string"
}
],
"tablet": {
"preset": "string",
"count": "string"
},
"proxy": {
"http": {
"count": "string"
},
"rpc": {
"count": "string"
}
},
"odin": {
"checksTtl": "string"
},
"flavor": "string"
}
}
|
Field |
Description |
|
clusterId |
string Required field. ID of the cluster to update. |
|
updateMask |
string (field-mask) A comma-separated names off ALL fields to be updated. If |
|
name |
string New name for the cluster. |
|
description |
string New description for the cluster. |
|
labels |
object (map<string, string>) Cluster labels as Existing set of labels is completely replaced by the provided set, so if you just want
|
|
subnetId |
string New subnet for the cluster. |
|
securityGroupIds[] |
string New security groups for the cluster. |
|
spec |
New cluster specification. |
ClusterSpec
|
Field |
Description |
|
storage |
|
|
compute[] |
|
|
tablet |
|
|
proxy |
|
|
odin |
|
|
flavor |
enum (Flavor)
|
StorageSpec
|
Field |
Description |
|
hdd |
|
|
ssd |
HddSpec
|
Field |
Description |
|
sizeGb |
string (int64) |
|
count |
string (int64) |
SsdSpec
|
Field |
Description |
|
sizeGb |
string (int64) |
|
type |
string |
|
count |
string (int64) |
ComputeSpec
|
Field |
Description |
|
preset |
string |
|
disks[] |
|
|
scalePolicy |
|
|
name |
string Name for exec pool. |
DiskSpec
|
Field |
Description |
|
type |
string |
|
sizeGb |
string (int64) |
|
locations[] |
string |
ScalePolicy
|
Field |
Description |
|
fixed |
Includes only one of the fields |
|
auto |
Includes only one of the fields |
FixedScale
|
Field |
Description |
|
size |
string (int64) |
AutoScale
|
Field |
Description |
|
minSize |
string (int64) |
|
maxSize |
string (int64) |
TabletSpec
|
Field |
Description |
|
preset |
string |
|
count |
string (int64) |
ProxySpec
|
Field |
Description |
|
http |
|
|
rpc |
HttpProxySpec
|
Field |
Description |
|
count |
string (int64) |
RpcProxySpec
|
Field |
Description |
|
count |
string (int64) |
OdinSpec
|
Field |
Description |
|
checksTtl |
string (duration) |
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",
"zoneId": "string",
"name": "string",
"description": "string",
"labels": "object",
"subnetId": "string",
"securityGroupIds": [
"string"
],
"spec": {
"storage": {
"hdd": {
"sizeGb": "string",
"count": "string"
},
"ssd": {
"sizeGb": "string",
"type": "string",
"count": "string"
}
},
"compute": [
{
"preset": "string",
"disks": [
{
"type": "string",
"sizeGb": "string",
"locations": [
"string"
]
}
],
"scalePolicy": {
// Includes only one of the fields `fixed`, `auto`
"fixed": {
"size": "string"
},
"auto": {
"minSize": "string",
"maxSize": "string"
}
// end of the list of possible fields
},
"name": "string"
}
],
"tablet": {
"preset": "string",
"count": "string"
},
"proxy": {
"http": {
"count": "string"
},
"rpc": {
"count": "string"
}
},
"odin": {
"checksTtl": "string"
},
"flavor": "string"
},
"createdAt": "string",
"createdBy": "string",
"updatedAt": "string",
"updatedBy": "string",
"status": "string",
"health": "string",
"endpoints": {
"ui": "string",
"externalHttpProxyBalancer": "string",
"internalHttpProxyAlias": "string",
"internalRpcProxyAlias": "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 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
|
Field |
Description |
|
id |
string ID of the cluster. Generated at creation time. |
|
folderId |
string ID of the folder that the cluster belongs to. |
|
zoneId |
string ID of the availability zone where the cluster resides. |
|
name |
string Name of the cluster. |
|
description |
string Description of the cluster. |
|
labels |
object (map<string, string>) Cluster labels as |
|
subnetId |
string ID of the subnet where the cluster resides. |
|
securityGroupIds[] |
string Network interfaces security groups. |
|
spec |
Cluster specification. |
|
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 |
|
createdBy |
string User who created the cluster. |
|
updatedAt |
string (date-time) Time when the cluster was last updated. String in RFC3339 To work with values in this field, use the APIs described in the |
|
updatedBy |
string User who last updated the cluster. |
|
status |
enum (Status) Status of the cluster.
|
|
health |
enum (Health) Health of the cluster.
|
|
endpoints |
Endpoints of the cluster. |
ClusterSpec
|
Field |
Description |
|
storage |
|
|
compute[] |
|
|
tablet |
|
|
proxy |
|
|
odin |
|
|
flavor |
enum (Flavor)
|
StorageSpec
|
Field |
Description |
|
hdd |
|
|
ssd |
HddSpec
|
Field |
Description |
|
sizeGb |
string (int64) |
|
count |
string (int64) |
SsdSpec
|
Field |
Description |
|
sizeGb |
string (int64) |
|
type |
string |
|
count |
string (int64) |
ComputeSpec
|
Field |
Description |
|
preset |
string |
|
disks[] |
|
|
scalePolicy |
|
|
name |
string Name for exec pool. |
DiskSpec
|
Field |
Description |
|
type |
string |
|
sizeGb |
string (int64) |
|
locations[] |
string |
ScalePolicy
|
Field |
Description |
|
fixed |
Includes only one of the fields |
|
auto |
Includes only one of the fields |
FixedScale
|
Field |
Description |
|
size |
string (int64) |
AutoScale
|
Field |
Description |
|
minSize |
string (int64) |
|
maxSize |
string (int64) |
TabletSpec
|
Field |
Description |
|
preset |
string |
|
count |
string (int64) |
ProxySpec
|
Field |
Description |
|
http |
|
|
rpc |
HttpProxySpec
|
Field |
Description |
|
count |
string (int64) |
RpcProxySpec
|
Field |
Description |
|
count |
string (int64) |
OdinSpec
|
Field |
Description |
|
checksTtl |
string (duration) |
Endpoints
|
Field |
Description |
|
ui |
string https://CID.ui.ytsaurus.yandexcloud.net |
|
externalHttpProxyBalancer |
string https://CID.proxy.ytsaurus.yandexcloud.net |
|
internalHttpProxyAlias |
string https://hp.CID.ytsaurus.mdb.yandexcloud.net:PORT |
|
internalRpcProxyAlias |
string rp.CID.ytsaurus.mdb.yandexcloud.net:PORT |