Run in Enrichment Spreadsheet
Use this function as a column step in
deepline enrich.deepline enrich --input leads.csv --output leads.enriched.csv --with 'result=clickhouse_instance_replica_scaling_update:{"organizationId":"{{organizationId}}","serviceId":"{{serviceId}}"}' --json
Map payload values to spreadsheet columns with
{{column_name}} placeholders.Input Schema
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
payload.organizationId | string | Yes | ID of the organization that owns the service. | |
payload.serviceId | string | Yes | ID of the service to update scaling parameters. | |
payload.minReplicaMemoryGb | number | No | Minimum 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. A range in vertical autoscaling; equal to maxReplicaMemoryGb in horizontal. | |
payload.maxReplicaMemoryGb | number | No | Maximum 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 356 for paid services. A range in vertical autoscaling; equal to minReplicaMemoryGb in horizontal. | |
payload.autoscalingMode | "vertical" | "horizontal" | No | Target autoscaling mode. Omit to keep the service on its current mode. “vertical” runs a fixed replica count while memory scales between minReplicaMemoryGb and maxReplicaMemoryGb; “horizontal” scales the replica count between minReplicas and maxReplicas at a fixed per-replica memory (minReplicaMemoryGb equal to maxReplicaMemoryGb). Switching to horizontal requires the feature to be enabled for the organization. | |
payload.numReplicas | integer | No | Fixed replica count for vertical autoscaling (autoscalingMode “vertical”). Mutually exclusive with minReplicas/maxReplicas. When switching to vertical (autoscalingMode “vertical”) with numReplicas and no memory, the service’s stored baseline per-replica memory is kept as the new vertical range. Please contact support to enable adjustment of numReplicas. | |
payload.minReplicas | integer | No | Minimum number of replicas. A minReplicas/maxReplicas band scales the replica count in horizontal autoscaling (autoscalingMode “horizontal”). Must be provided together with maxReplicas. Mutually exclusive with numReplicas. Requires horizontal autoscaling to be enabled for the service, unless autoscalingMode is omitted or “vertical” and minReplicas equals maxReplicas (an equal band is then an accepted vertical fixed count and needs no horizontal entitlement). | |
payload.maxReplicas | integer | No | Maximum number of replicas. A minReplicas/maxReplicas band scales the replica count in horizontal autoscaling (autoscalingMode “horizontal”). Must be provided together with minReplicas. Mutually exclusive with numReplicas. Requires horizontal autoscaling to be enabled for the service, unless autoscalingMode is omitted or “vertical” and minReplicas equals maxReplicas (an equal band is then an accepted vertical fixed count and needs no horizontal entitlement). | |
payload.idleScaling | boolean | No | When set to true the service is allowed to scale down to zero when idle. True by default. | |
payload.idleTimeoutMinutes | number | No | Set minimum idling timeout (in minutes). Must be >= 5 minutes. |
Allowed values
| Field | Allowed values |
|---|---|
payload.autoscalingMode | vertical, horizontal |
Output Schema
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
result.data | object | Yes | Provider response payload. | |
result.meta | object | No | Additional response metadata (status, paging). |
Advanced: Direct CLI
Use direct execution for single payload debugging.
deepline tools execute clickhouse_instance_replica_scaling_update --payload '{
"organizationId": "string",
"serviceId": "string"
}' --json
CLI flags
| Flag | Description |
|---|---|
--json | Print machine-readable output. |
--wait | Wait for terminal provider status when supported. |
--debug | Enable wait mode with additional status/log output. |
--wait-timeout SECONDS | Max seconds to wait in wait mode. |
--poll-interval SECONDS | Polling interval in seconds during wait mode. |
--timeout SECONDS | Request timeout in seconds. |
--connect-timeout SECONDS | Connection timeout in seconds. |
Cost
- Pricing model:
fixed(per call). - Estimated Deepline credits:
0per pricing unit. - Provider-native pricing may still exist outside Deepline credit billing.
- Billing mode:
no_bill.