Skip to main content
Edit this page

Services

List of organization services

Returns a list of all services in the organization.

MethodPath
GET/v1/organizations/{organizationId}/services

Request

Path Params

NameTypeDescription
organizationIduuidID of the requested organization.

Response

Response Schema

NameTypeDescription
iduuidUnique service ID.
namestringName of the service. Alphanumerical string with whitespaces up to 50 characters.
providerstringCloud provider
regionstringService region.
statestringCurrent state of the service.
endpointsarrayList of all service endpoints.
tierstringTier of the service: 'development', 'production', 'dedicated_high_mem', 'dedicated_high_cpu', 'dedicated_standard', 'dedicated_standard_n2d_standard_4', 'dedicated_standard_n2d_standard_8', 'dedicated_standard_n2d_standard_32', 'dedicated_standard_n2d_standard_128'. Production services scale, Development are fixed size. Azure services don't support Development tier
minTotalMemoryGbnumberDEPRECATED - inaccurate for services with non-default numbers of replicas. Minimum memory of three workers during auto-scaling in Gb. Available only for 'production' services. Must be a multiple of 12 and greater than or equal to 24.
maxTotalMemoryGbnumberDEPRECATED - inaccurate for services with non-default numbers of replicas. Maximum memory of three workers during auto-scaling in Gb. Available only for 'production' services. Must be a multiple of 12 and lower than or equal to 360 for non paid services or 708 for paid services.
minReplicaMemoryGbnumberMinimum total memory of each replica during auto-scaling in Gb. Available only for 'production' services. Must be a multiple of 4 and greater than or equal to 8.
maxReplicaMemoryGbnumberMaximum total memory of each replica during auto-scaling in Gb. Available only for 'production' services. Must be a multiple of 4 and lower than or equal to 120 for non paid services or 236 for paid services.
numReplicasnumberNumber of replicas for the service. Must be between 1 and 20. Contact support to enable this feature.
idleScalingbooleanWhen set to true the service is allowed to scale down to zero when idle. True by default.
idleTimeoutMinutesnumberSet minimum idling timeout (in minutes). Must be >= 5 minutes.
ipAccessListarrayList of IP addresses allowed to access the service
createdAtdate-timeService creation timestamp. ISO-8601.
encryptionKeystringOptional customer provided disk encryption key
encryptionAssumedRoleIdentifierstringOptional role to use for disk encryption
iamRolestringIAM role used for accessing objects in s3
privateEndpointIdsarrayList of private endpoints
dataWarehouseIdstringData warehouse containing this service
isPrimarybooleanTrue if this service is the primary service in the data warehouse
isReadonlybooleanTrue if this service is read-only. It can only be read-only if a dataWarehouseId is provided.
releaseChannelstringSelect fast if you want to get new ClickHouse releases as soon as they are available. You'll get new features faster, but with a higher risk of bugs. This feature is only available for production services.
byocIdstringThis is the ID returned after setting up a region for Bring Your Own Cloud (BYOC). When the byocId parameter is specified, the minReplicaMemoryGb and the maxReplicaGb parameters are required too, with values included among the following sizes: 28, 60, 124, 188, 252, 380.

Sample response

{
"id": "uuid",
"name": "string",
"provider": "string",
"region": "string",
"state": "string",
"endpoints": "Array",
"tier": "string",
"minTotalMemoryGb": 0,
"maxTotalMemoryGb": 0,
"minReplicaMemoryGb": 0,
"maxReplicaMemoryGb": 0,
"numReplicas": 0,
"idleScaling": "boolean",
"idleTimeoutMinutes": 0,
"ipAccessList": "Array",
"createdAt": "date-time",
"encryptionKey": "string",
"encryptionAssumedRoleIdentifier": "string",
"iamRole": "string",
"privateEndpointIds": "Array",
"dataWarehouseId": "string",
"isPrimary": "boolean",
"isReadonly": "boolean",
"releaseChannel": "string",
"byocId": "string"
}

Create new service

Creates a new service in the organization, and returns the current service state and a password to access the service. The service is started asynchronously.

MethodPath
POST/v1/organizations/{organizationId}/services

Request

Path Params

NameTypeDescription
organizationIduuidID of the organization that will own the service.

Body Params

NameTypeDescription
namestringName of the service. Alphanumerical string with whitespaces up to 50 characters.
providerstringCloud provider
regionstringService region.
tierstringTier of the service: 'development', 'production', 'dedicated_high_mem', 'dedicated_high_cpu', 'dedicated_standard', 'dedicated_standard_n2d_standard_4', 'dedicated_standard_n2d_standard_8', 'dedicated_standard_n2d_standard_32', 'dedicated_standard_n2d_standard_128'. Production services scale, Development are fixed size. Azure services don't support Development tier
ipAccessListarrayList of IP addresses allowed to access the service
minTotalMemoryGbnumberDEPRECATED - inaccurate for services with non-default numbers of replicas. Minimum memory of three workers during auto-scaling in Gb. Available only for 'production' services. Must be a multiple of 12 and greater than or equal to 24.
maxTotalMemoryGbnumberDEPRECATED - inaccurate for services with non-default numbers of replicas. Maximum memory of three workers during auto-scaling in Gb. Available only for 'production' services. Must be a multiple of 12 and lower than or equal to 360 for non paid services or 708 for paid services.
minReplicaMemoryGbnumberMinimum total memory of each replica during auto-scaling in Gb. Available only for 'production' services. Must be a multiple of 4 and greater than or equal to 8.
maxReplicaMemoryGbnumberMaximum total memory of each replica during auto-scaling in Gb. Available only for 'production' services. Must be a multiple of 4 and lower than or equal to 120 for non paid services or 236 for paid services.
numReplicasnumberNumber of replicas for the service. Must be between 1 and 20. Contact support to enable this feature.
idleScalingbooleanWhen set to true the service is allowed to scale down to zero when idle. True by default.
idleTimeoutMinutesnumberSet minimum idling timeout (in minutes). Must be >= 5 minutes.
isReadonlybooleanTrue if this service is read-only. It can only be read-only if a dataWarehouseId is provided.
dataWarehouseIdstringData warehouse containing this service
backupIdstringOptional backup ID used as an initial state for the new service. When used the region and the tier of the new instance must be the same as the values of the original instance.
encryptionKeystringOptional customer provided disk encryption key
encryptionAssumedRoleIdentifierstringOptional role to use for disk encryption
privateEndpointIdsarrayList of private endpoints
privatePreviewTermsCheckedbooleanAccept the private preview terms and conditions. It is only needed when creating the first service in the organization in case of a private preview
releaseChannelstringSelect fast if you want to get new ClickHouse releases as soon as they are available. You'll get new features faster, but with a higher risk of bugs. This feature is only available for production services.
byocIdstringThis is the ID returned after setting up a region for Bring Your Own Cloud (BYOC). When the byocId parameter is specified, the minReplicaMemoryGb and the maxReplicaGb parameters are required too, with values included among the following sizes: 28, 60, 124, 188, 252, 380.

Response

Response Schema

NameTypeDescription
service
passwordstringPassword for the newly created service.

Sample response

{
"password": "string"
}

Get service details

Returns a service that belongs to the organization

MethodPath
GET/v1/organizations/{organizationId}/services/{serviceId}

Request

Path Params

NameTypeDescription
organizationIduuidID of the organization that owns the service.
serviceIduuidID of the requested service.

Response

Response Schema

NameTypeDescription
iduuidUnique service ID.
namestringName of the service. Alphanumerical string with whitespaces up to 50 characters.
providerstringCloud provider
regionstringService region.
statestringCurrent state of the service.
endpointsarrayList of all service endpoints.
tierstringTier of the service: 'development', 'production', 'dedicated_high_mem', 'dedicated_high_cpu', 'dedicated_standard', 'dedicated_standard_n2d_standard_4', 'dedicated_standard_n2d_standard_8', 'dedicated_standard_n2d_standard_32', 'dedicated_standard_n2d_standard_128'. Production services scale, Development are fixed size. Azure services don't support Development tier
minTotalMemoryGbnumberDEPRECATED - inaccurate for services with non-default numbers of replicas. Minimum memory of three workers during auto-scaling in Gb. Available only for 'production' services. Must be a multiple of 12 and greater than or equal to 24.
maxTotalMemoryGbnumberDEPRECATED - inaccurate for services with non-default numbers of replicas. Maximum memory of three workers during auto-scaling in Gb. Available only for 'production' services. Must be a multiple of 12 and lower than or equal to 360 for non paid services or 708 for paid services.
minReplicaMemoryGbnumberMinimum total memory of each replica during auto-scaling in Gb. Available only for 'production' services. Must be a multiple of 4 and greater than or equal to 8.
maxReplicaMemoryGbnumberMaximum total memory of each replica during auto-scaling in Gb. Available only for 'production' services. Must be a multiple of 4 and lower than or equal to 120 for non paid services or 236 for paid services.
numReplicasnumberNumber of replicas for the service. Must be between 1 and 20. Contact support to enable this feature.
idleScalingbooleanWhen set to true the service is allowed to scale down to zero when idle. True by default.
idleTimeoutMinutesnumberSet minimum idling timeout (in minutes). Must be >= 5 minutes.
ipAccessListarrayList of IP addresses allowed to access the service
createdAtdate-timeService creation timestamp. ISO-8601.
encryptionKeystringOptional customer provided disk encryption key
encryptionAssumedRoleIdentifierstringOptional role to use for disk encryption
iamRolestringIAM role used for accessing objects in s3
privateEndpointIdsarrayList of private endpoints
dataWarehouseIdstringData warehouse containing this service
isPrimarybooleanTrue if this service is the primary service in the data warehouse
isReadonlybooleanTrue if this service is read-only. It can only be read-only if a dataWarehouseId is provided.
releaseChannelstringSelect fast if you want to get new ClickHouse releases as soon as they are available. You'll get new features faster, but with a higher risk of bugs. This feature is only available for production services.
byocIdstringThis is the ID returned after setting up a region for Bring Your Own Cloud (BYOC). When the byocId parameter is specified, the minReplicaMemoryGb and the maxReplicaGb parameters are required too, with values included among the following sizes: 28, 60, 124, 188, 252, 380.

Sample response

{
"id": "uuid",
"name": "string",
"provider": "string",
"region": "string",
"state": "string",
"endpoints": "Array",
"tier": "string",
"minTotalMemoryGb": 0,
"maxTotalMemoryGb": 0,
"minReplicaMemoryGb": 0,
"maxReplicaMemoryGb": 0,
"numReplicas": 0,
"idleScaling": "boolean",
"idleTimeoutMinutes": 0,
"ipAccessList": "Array",
"createdAt": "date-time",
"encryptionKey": "string",
"encryptionAssumedRoleIdentifier": "string",
"iamRole": "string",
"privateEndpointIds": "Array",
"dataWarehouseId": "string",
"isPrimary": "boolean",
"isReadonly": "boolean",
"releaseChannel": "string",
"byocId": "string"
}

Update service basic details

Updates basic service details like service name or IP access list.

MethodPath
PATCH/v1/organizations/{organizationId}/services/{serviceId}

Request

Path Params

NameTypeDescription
organizationIduuidID of the organization that owns the service.
serviceIduuidID of the service to update.

Body Params

NameTypeDescription
namestringName of the service. Alphanumerical string with whitespaces up to 50 characters.
ipAccessList
privateEndpointIds
releaseChannelstringSelect fast if you want to get new ClickHouse releases as soon as they are available. You'll get new features faster, but with a higher risk of bugs. This feature is only available for production services.

Response

Response Schema

NameTypeDescription
iduuidUnique service ID.
namestringName of the service. Alphanumerical string with whitespaces up to 50 characters.
providerstringCloud provider
regionstringService region.
statestringCurrent state of the service.
endpointsarrayList of all service endpoints.
tierstringTier of the service: 'development', 'production', 'dedicated_high_mem', 'dedicated_high_cpu', 'dedicated_standard', 'dedicated_standard_n2d_standard_4', 'dedicated_standard_n2d_standard_8', 'dedicated_standard_n2d_standard_32', 'dedicated_standard_n2d_standard_128'. Production services scale, Development are fixed size. Azure services don't support Development tier
minTotalMemoryGbnumberDEPRECATED - inaccurate for services with non-default numbers of replicas. Minimum memory of three workers during auto-scaling in Gb. Available only for 'production' services. Must be a multiple of 12 and greater than or equal to 24.
maxTotalMemoryGbnumberDEPRECATED - inaccurate for services with non-default numbers of replicas. Maximum memory of three workers during auto-scaling in Gb. Available only for 'production' services. Must be a multiple of 12 and lower than or equal to 360 for non paid services or 708 for paid services.
minReplicaMemoryGbnumberMinimum total memory of each replica during auto-scaling in Gb. Available only for 'production' services. Must be a multiple of 4 and greater than or equal to 8.
maxReplicaMemoryGbnumberMaximum total memory of each replica during auto-scaling in Gb. Available only for 'production' services. Must be a multiple of 4 and lower than or equal to 120 for non paid services or 236 for paid services.
numReplicasnumberNumber of replicas for the service. Must be between 1 and 20. Contact support to enable this feature.
idleScalingbooleanWhen set to true the service is allowed to scale down to zero when idle. True by default.
idleTimeoutMinutesnumberSet minimum idling timeout (in minutes). Must be >= 5 minutes.
ipAccessListarrayList of IP addresses allowed to access the service
createdAtdate-timeService creation timestamp. ISO-8601.
encryptionKeystringOptional customer provided disk encryption key
encryptionAssumedRoleIdentifierstringOptional role to use for disk encryption
iamRolestringIAM role used for accessing objects in s3
privateEndpointIdsarrayList of private endpoints
dataWarehouseIdstringData warehouse containing this service
isPrimarybooleanTrue if this service is the primary service in the data warehouse
isReadonlybooleanTrue if this service is read-only. It can only be read-only if a dataWarehouseId is provided.
releaseChannelstringSelect fast if you want to get new ClickHouse releases as soon as they are available. You'll get new features faster, but with a higher risk of bugs. This feature is only available for production services.
byocIdstringThis is the ID returned after setting up a region for Bring Your Own Cloud (BYOC). When the byocId parameter is specified, the minReplicaMemoryGb and the maxReplicaGb parameters are required too, with values included among the following sizes: 28, 60, 124, 188, 252, 380.

Sample response

{
"id": "uuid",
"name": "string",
"provider": "string",
"region": "string",
"state": "string",
"endpoints": "Array",
"tier": "string",
"minTotalMemoryGb": 0,
"maxTotalMemoryGb": 0,
"minReplicaMemoryGb": 0,
"maxReplicaMemoryGb": 0,
"numReplicas": 0,
"idleScaling": "boolean",
"idleTimeoutMinutes": 0,
"ipAccessList": "Array",
"createdAt": "date-time",
"encryptionKey": "string",
"encryptionAssumedRoleIdentifier": "string",
"iamRole": "string",
"privateEndpointIds": "Array",
"dataWarehouseId": "string",
"isPrimary": "boolean",
"isReadonly": "boolean",
"releaseChannel": "string",
"byocId": "string"
}

Delete service

Deletes the service. The service must be in stopped state and is deleted asynchronously after this method call.

MethodPath
DELETE/v1/organizations/{organizationId}/services/{serviceId}

Request

Path Params

NameTypeDescription
organizationIduuidID of the organization that owns the service.
serviceIduuidID of the service to delete.

Get private endpoint configuration

Information required to set up a private endpoint

MethodPath
GET/v1/organizations/{organizationId}/services/{serviceId}/privateEndpointConfig

Request

Path Params

NameTypeDescription
organizationIduuidID of the requested organization.
serviceIduuidID of the requested service.

Response

Response Schema

NameTypeDescription
endpointServiceIdstringUnique identifier of the interface endpoint you created in your VPC with the AWS(Service Name), GCP(Target Service) or AZURE (Private Link Service) resource
privateDnsHostnamestringPrivate DNS Hostname of the VPC you created

Sample response

{
"endpointServiceId": "string",
"privateDnsHostname": "string"
}

Update service state

Starts or stop service

MethodPath
PATCH/v1/organizations/{organizationId}/services/{serviceId}/state

Request

Path Params

NameTypeDescription
organizationIduuidID of the organization that owns the service.
serviceIduuidID of the service to update state.

Body Params

NameTypeDescription
commandstringCommand to change the state: 'start', 'stop'.

Response

Response Schema

NameTypeDescription
iduuidUnique service ID.
namestringName of the service. Alphanumerical string with whitespaces up to 50 characters.
providerstringCloud provider
regionstringService region.
statestringCurrent state of the service.
endpointsarrayList of all service endpoints.
tierstringTier of the service: 'development', 'production', 'dedicated_high_mem', 'dedicated_high_cpu', 'dedicated_standard', 'dedicated_standard_n2d_standard_4', 'dedicated_standard_n2d_standard_8', 'dedicated_standard_n2d_standard_32', 'dedicated_standard_n2d_standard_128'. Production services scale, Development are fixed size. Azure services don't support Development tier
minTotalMemoryGbnumberDEPRECATED - inaccurate for services with non-default numbers of replicas. Minimum memory of three workers during auto-scaling in Gb. Available only for 'production' services. Must be a multiple of 12 and greater than or equal to 24.
maxTotalMemoryGbnumberDEPRECATED - inaccurate for services with non-default numbers of replicas. Maximum memory of three workers during auto-scaling in Gb. Available only for 'production' services. Must be a multiple of 12 and lower than or equal to 360 for non paid services or 708 for paid services.
minReplicaMemoryGbnumberMinimum total memory of each replica during auto-scaling in Gb. Available only for 'production' services. Must be a multiple of 4 and greater than or equal to 8.
maxReplicaMemoryGbnumberMaximum total memory of each replica during auto-scaling in Gb. Available only for 'production' services. Must be a multiple of 4 and lower than or equal to 120 for non paid services or 236 for paid services.
numReplicasnumberNumber of replicas for the service. Must be between 1 and 20. Contact support to enable this feature.
idleScalingbooleanWhen set to true the service is allowed to scale down to zero when idle. True by default.
idleTimeoutMinutesnumberSet minimum idling timeout (in minutes). Must be >= 5 minutes.
ipAccessListarrayList of IP addresses allowed to access the service
createdAtdate-timeService creation timestamp. ISO-8601.
encryptionKeystringOptional customer provided disk encryption key
encryptionAssumedRoleIdentifierstringOptional role to use for disk encryption
iamRolestringIAM role used for accessing objects in s3
privateEndpointIdsarrayList of private endpoints
dataWarehouseIdstringData warehouse containing this service
isPrimarybooleanTrue if this service is the primary service in the data warehouse
isReadonlybooleanTrue if this service is read-only. It can only be read-only if a dataWarehouseId is provided.
releaseChannelstringSelect fast if you want to get new ClickHouse releases as soon as they are available. You'll get new features faster, but with a higher risk of bugs. This feature is only available for production services.
byocIdstringThis is the ID returned after setting up a region for Bring Your Own Cloud (BYOC). When the byocId parameter is specified, the minReplicaMemoryGb and the maxReplicaGb parameters are required too, with values included among the following sizes: 28, 60, 124, 188, 252, 380.

Sample response

{
"id": "uuid",
"name": "string",
"provider": "string",
"region": "string",
"state": "string",
"endpoints": "Array",
"tier": "string",
"minTotalMemoryGb": 0,
"maxTotalMemoryGb": 0,
"minReplicaMemoryGb": 0,
"maxReplicaMemoryGb": 0,
"numReplicas": 0,
"idleScaling": "boolean",
"idleTimeoutMinutes": 0,
"ipAccessList": "Array",
"createdAt": "date-time",
"encryptionKey": "string",
"encryptionAssumedRoleIdentifier": "string",
"iamRole": "string",
"privateEndpointIds": "Array",
"dataWarehouseId": "string",
"isPrimary": "boolean",
"isReadonly": "boolean",
"releaseChannel": "string",
"byocId": "string"
}

Update service auto scaling settings

Updates minimum and maximum total memory limits and idle mode scaling behavior for the service. The memory settings are available only for "production" services and must be a multiple of 12 starting from 24GB. Please contact support to enable adjustment of numReplicas.

MethodPath
PATCH/v1/organizations/{organizationId}/services/{serviceId}/scaling

Request

Path Params

NameTypeDescription
organizationIduuidID of the organization that owns the service.
serviceIduuidID of the service to update scaling parameters.

Body Params

NameTypeDescription
minTotalMemoryGbnumberDEPRECATED - inaccurate for services with non-default numbers of replicas. Minimum memory of three workers during auto-scaling in Gb. Available only for 'production' services. Must be a multiple of 12 and greater than or equal to 24.
maxTotalMemoryGbnumberDEPRECATED - inaccurate for services with non-default numbers of replicas. Maximum memory of three workers during auto-scaling in Gb. Available only for 'production' services. Must be a multiple of 12 and lower than or equal to 360 for non paid services or 708 for paid services.
numReplicasnumberNumber of replicas for the service. Must be between 1 and 20. Contact support to enable this feature.
idleScalingbooleanWhen set to true the service is allowed to scale down to zero when idle. True by default.
idleTimeoutMinutesnumberSet minimum idling timeout (in minutes). Must be >= 5 minutes.

Response

Response Schema

NameTypeDescription
iduuidUnique service ID.
namestringName of the service. Alphanumerical string with whitespaces up to 50 characters.
providerstringCloud provider
regionstringService region.
statestringCurrent state of the service.
endpointsarrayList of all service endpoints.
tierstringTier of the service: 'development', 'production', 'dedicated_high_mem', 'dedicated_high_cpu', 'dedicated_standard', 'dedicated_standard_n2d_standard_4', 'dedicated_standard_n2d_standard_8', 'dedicated_standard_n2d_standard_32', 'dedicated_standard_n2d_standard_128'. Production services scale, Development are fixed size. Azure services don't support Development tier
minTotalMemoryGbnumberDEPRECATED - inaccurate for services with non-default numbers of replicas. Minimum memory of three workers during auto-scaling in Gb. Available only for 'production' services. Must be a multiple of 12 and greater than or equal to 24.
maxTotalMemoryGbnumberDEPRECATED - inaccurate for services with non-default numbers of replicas. Maximum memory of three workers during auto-scaling in Gb. Available only for 'production' services. Must be a multiple of 12 and lower than or equal to 360 for non paid services or 708 for paid services.
minReplicaMemoryGbnumberMinimum total memory of each replica during auto-scaling in Gb. Available only for 'production' services. Must be a multiple of 4 and greater than or equal to 8.
maxReplicaMemoryGbnumberMaximum total memory of each replica during auto-scaling in Gb. Available only for 'production' services. Must be a multiple of 4 and lower than or equal to 120 for non paid services or 236 for paid services.
numReplicasnumberNumber of replicas for the service. Must be between 1 and 20. Contact support to enable this feature.
idleScalingbooleanWhen set to true the service is allowed to scale down to zero when idle. True by default.
idleTimeoutMinutesnumberSet minimum idling timeout (in minutes). Must be >= 5 minutes.
ipAccessListarrayList of IP addresses allowed to access the service
createdAtdate-timeService creation timestamp. ISO-8601.
encryptionKeystringOptional customer provided disk encryption key
encryptionAssumedRoleIdentifierstringOptional role to use for disk encryption
iamRolestringIAM role used for accessing objects in s3
privateEndpointIdsarrayList of private endpoints
dataWarehouseIdstringData warehouse containing this service
isPrimarybooleanTrue if this service is the primary service in the data warehouse
isReadonlybooleanTrue if this service is read-only. It can only be read-only if a dataWarehouseId is provided.
releaseChannelstringSelect fast if you want to get new ClickHouse releases as soon as they are available. You'll get new features faster, but with a higher risk of bugs. This feature is only available for production services.
byocIdstringThis is the ID returned after setting up a region for Bring Your Own Cloud (BYOC). When the byocId parameter is specified, the minReplicaMemoryGb and the maxReplicaGb parameters are required too, with values included among the following sizes: 28, 60, 124, 188, 252, 380.

Sample response

{
"id": "uuid",
"name": "string",
"provider": "string",
"region": "string",
"state": "string",
"endpoints": "Array",
"tier": "string",
"minTotalMemoryGb": 0,
"maxTotalMemoryGb": 0,
"minReplicaMemoryGb": 0,
"maxReplicaMemoryGb": 0,
"numReplicas": 0,
"idleScaling": "boolean",
"idleTimeoutMinutes": 0,
"ipAccessList": "Array",
"createdAt": "date-time",
"encryptionKey": "string",
"encryptionAssumedRoleIdentifier": "string",
"iamRole": "string",
"privateEndpointIds": "Array",
"dataWarehouseId": "string",
"isPrimary": "boolean",
"isReadonly": "boolean",
"releaseChannel": "string",
"byocId": "string"
}

Update service auto scaling settings

Updates minimum and maximum memory limits per replica and idle mode scaling behavior for the service. The memory settings are available only for "production" services and must be a multiple of 4 starting from 8GB. Please contact support to enable adjustment of numReplicas.

MethodPath
PATCH/v1/organizations/{organizationId}/services/{serviceId}/replicaScaling

Request

Path Params

NameTypeDescription
organizationIduuidID of the organization that owns the service.
serviceIduuidID of the service to update scaling parameters.

Body Params

NameTypeDescription
minReplicaMemoryGbnumberMinimum auto-scaling memory in Gb for a single replica. Available only for 'production' services. Must be a multiple of 4 and greater than or equal to 8.
maxReplicaMemoryGbnumberMaximum auto-scaling memory in Gb for a single replica . Available only for 'production' services. Must be a multiple of 4 and lower than or equal to 120 for non paid services or 236 for paid services.
numReplicasnumberNumber of replicas for the service. Must be between 1 and 20. Contact support to enable this feature.
idleScalingbooleanWhen set to true the service is allowed to scale down to zero when idle. True by default.
idleTimeoutMinutesnumberSet minimum idling timeout (in minutes). Must be >= 5 minutes.

Response

Response Schema

NameTypeDescription
iduuidUnique service ID.
namestringName of the service. Alphanumerical string with whitespaces up to 50 characters.
providerstringCloud provider
regionstringService region.
statestringCurrent state of the service.
endpointsarrayList of all service endpoints.
tierstringTier of the service: 'development', 'production', 'dedicated_high_mem', 'dedicated_high_cpu', 'dedicated_standard', 'dedicated_standard_n2d_standard_4', 'dedicated_standard_n2d_standard_8', 'dedicated_standard_n2d_standard_32', 'dedicated_standard_n2d_standard_128'. Production services scale, Development are fixed size. Azure services don't support Development tier
minTotalMemoryGbnumberDEPRECATED - inaccurate for services with non-default numbers of replicas. Minimum memory of three workers during auto-scaling in Gb. Available only for 'production' services. Must be a multiple of 12 and greater than or equal to 24.
maxTotalMemoryGbnumberDEPRECATED - inaccurate for services with non-default numbers of replicas. Maximum memory of three workers during auto-scaling in Gb. Available only for 'production' services. Must be a multiple of 12 and lower than or equal to 360 for non paid services or 708 for paid services.
minReplicaMemoryGbnumberMinimum auto-scaling memory in Gb for a single replica. Available only for 'production' services. Must be a multiple of 4 and greater than or equal to 8.
maxReplicaMemoryGbnumberMaximum auto-scaling memory in Gb for a single replica . Available only for 'production' services. Must be a multiple of 4 and lower than or equal to 120 for non paid services or 236 for paid services.
numReplicasnumberNumber of replicas for the service. Must be between 1 and 20. Contact support to enable this feature.
idleScalingbooleanWhen set to true the service is allowed to scale down to zero when idle. True by default.
idleTimeoutMinutesnumberSet minimum idling timeout (in minutes). Must be >= 5 minutes.
ipAccessListarrayList of IP addresses allowed to access the service
createdAtdate-timeService creation timestamp. ISO-8601.
encryptionKeystringOptional customer provided disk encryption key
encryptionAssumedRoleIdentifierstringOptional role to use for disk encryption
iamRolestringIAM role used for accessing objects in s3
privateEndpointIdsarrayList of private endpoints
dataWarehouseIdstringData warehouse containing this service
isPrimarybooleanTrue if this service is the primary service in the data warehouse
isReadonlybooleanTrue if this service is read-only. It can only be read-only if a dataWarehouseId is provided.
releaseChannelstringSelect fast if you want to get new ClickHouse releases as soon as they are available. You'll get new features faster, but with a higher risk of bugs. This feature is only available for production services.
byocIdstringThis is the ID returned after setting up a region for Bring Your Own Cloud (BYOC). When the byocId parameter is specified, the minReplicaMemoryGb and the maxReplicaGb parameters are required too, with values included among the following sizes: 28, 60, 124, 188, 252, 380.

Sample response

{
"id": "uuid",
"name": "string",
"provider": "string",
"region": "string",
"state": "string",
"endpoints": "Array",
"tier": "string",
"minTotalMemoryGb": 0,
"maxTotalMemoryGb": 0,
"minReplicaMemoryGb": 0,
"maxReplicaMemoryGb": 0,
"numReplicas": 0,
"idleScaling": "boolean",
"idleTimeoutMinutes": 0,
"ipAccessList": "Array",
"createdAt": "date-time",
"encryptionKey": "string",
"encryptionAssumedRoleIdentifier": "string",
"iamRole": "string",
"privateEndpointIds": "Array",
"dataWarehouseId": "string",
"isPrimary": "boolean",
"isReadonly": "boolean",
"releaseChannel": "string",
"byocId": "string"
}

Update service password

Sets a new password for the service

MethodPath
PATCH/v1/organizations/{organizationId}/services/{serviceId}/password

Request

Path Params

NameTypeDescription
organizationIduuidID of the organization that owns the service.
serviceIduuidID of the service to update password.

Body Params

NameTypeDescription
newPasswordHashstringOptional password hash. Used to avoid password transmission over network. If not provided a new password is generated and is provided in the response. Otherwise this hash is used. Algorithm: echo -n "yourpassword"
newDoubleSha1HashstringOptional double SHA1 password hash for MySQL protocol. If newPasswordHash is not provided this key will be ignored and the generated password will be used. Algorithm: echo -n "yourpassword"

Response

Response Schema

NameTypeDescription
passwordstringNew service password. Provided only if there was no 'newPasswordHash' in the request

Sample response

{
"password": "string"
}

Get prometheus metrics

Returns prometheus metrics for a service.

MethodPath
GET/v1/organizations/{organizationId}/services/{serviceId}/prometheus

Request

Path Params

NameTypeDescription
organizationIduuidID of the organization that owns the service.
serviceIduuidID of the requested service.
filtered_metricsbooleanReturn a filtered list of Prometheus metrics.

List of service backups

Returns a list of all backups for the service. The most recent backups comes first in the list.

MethodPath
GET/v1/organizations/{organizationId}/services/{serviceId}/backups

Request

Path Params

NameTypeDescription
organizationIduuidID of the organization that owns the backup.
serviceIduuidID of the service the backup was created from.

Response

Response Schema

NameTypeDescription
iduuidUnique backup ID.
statusstringStatus of the backup: 'done', 'error', 'in_progress'.
serviceIdstringName
startedAtdate-timeBackup start timestamp. ISO-8601.
finishedAtdate-timeBackup finish timestamp. ISO-8601. Available only for finished backups
sizeInBytesnumberSize of the backup in bytes.
durationInSecondsnumberTime in seconds it took to perform the backup. If the status still in_progress, this is the time in seconds since the backup started until now.
typestringBackup type ("full" or "incremental").

Sample response

{
"id": "uuid",
"status": "string",
"serviceId": "string",
"startedAt": "date-time",
"finishedAt": "date-time",
"sizeInBytes": 0,
"durationInSeconds": 0,
"type": "string"
}

Get backup details

Returns a single backup info.

MethodPath
GET/v1/organizations/{organizationId}/services/{serviceId}/backups/{backupId}

Request

Path Params

NameTypeDescription
organizationIduuidID of the organization that owns the backup.
serviceIduuidID of the service the backup was created from.
backupIduuidID of the requested backup.

Response

Response Schema

NameTypeDescription
iduuidUnique backup ID.
statusstringStatus of the backup: 'done', 'error', 'in_progress'.
serviceIdstringName
startedAtdate-timeBackup start timestamp. ISO-8601.
finishedAtdate-timeBackup finish timestamp. ISO-8601. Available only for finished backups
sizeInBytesnumberSize of the backup in bytes.
durationInSecondsnumberTime in seconds it took to perform the backup. If the status still in_progress, this is the time in seconds since the backup started until now.
typestringBackup type ("full" or "incremental").

Sample response

{
"id": "uuid",
"status": "string",
"serviceId": "string",
"startedAt": "date-time",
"finishedAt": "date-time",
"sizeInBytes": 0,
"durationInSeconds": 0,
"type": "string"
}

Get service backup configuration

Returns the service backup configuration.

MethodPath
GET/v1/organizations/{organizationId}/services/{serviceId}/backupConfiguration

Request

Path Params

NameTypeDescription
organizationIduuidID of the organization that owns the service.
serviceIduuidID of the service.

Response

Response Schema

NameTypeDescription
backupPeriodInHoursnumberThe interval in hours between each backup.
backupRetentionPeriodInHoursnumberThe minimum duration in hours for which the backups are available.
backupStartTimestringThe time in HH:MM format for the backups to be performed (evaluated in UTC timezone). When defined the backup period resets to every 24 hours.

Sample response

{
"backupPeriodInHours": 0,
"backupRetentionPeriodInHours": 0,
"backupStartTime": "string"
}

Update service backup configuration

Updates service backup configuration. Requires ADMIN auth key role. Setting the properties with null value, will reset the properties to theirs default values.

MethodPath
PATCH/v1/organizations/{organizationId}/services/{serviceId}/backupConfiguration

Request

Path Params

NameTypeDescription
organizationIduuidID of the organization that owns the service.
serviceIduuidID of the service.

Body Params

NameTypeDescription
backupPeriodInHoursnumberThe interval in hours between each backup.
backupRetentionPeriodInHoursnumberThe minimum duration in hours for which the backups are available.
backupStartTimestringThe time in HH:MM format for the backups to be performed (evaluated in UTC timezone). When defined the backup period resets to every 24 hours.

Response

Response Schema

NameTypeDescription
backupPeriodInHoursnumberThe interval in hours between each backup.
backupRetentionPeriodInHoursnumberThe minimum duration in hours for which the backups are available.
backupStartTimestringThe time in HH:MM format for the backups to be performed (evaluated in UTC timezone). When defined the backup period resets to every 24 hours.

Sample response

{
"backupPeriodInHours": 0,
"backupRetentionPeriodInHours": 0,
"backupStartTime": "string"
}