All Products
Search
Document Center

PolarDB:DescribeSearchServerlessConf

Last Updated:Nov 30, 2026

Queries the Serverless enabling status, current settings, or default upper and lower limits when disabled, and the maximum allowed elastic PCUs of the associated Search cluster.

Operation description

Locates the associated Search cluster by using the DBClusterId of the parent PolarDB primary cluster. The DBClusterId parameter does not accept a Search cluster ID. Search Serverless is independent of DB Serverless. This operation does not affect the settings, enabling status, or orders of the database. Clusters that do not contain Search nodes cannot invoke this operation to manage Search Serverless.

  • Switchs=1: Enabled. ScaleMin and ScaleMax indicate the current saved lower and upper limits of elastic PCUs for Search. The current sensitivity and CPU scale-up and scale-down thresholds are also returned.

  • Switchs=0: Disabled. ScaleMin returns 0. ScaleMax returns the maximum allowed elastic PCUs for the instance, which serves as a configuration reference when you enable the feature. A non-zero value does not indicate that the feature is enabled. Advanced configuration fields may not be returned.

  • TraditionalScaleMaxThreshold: The maximum allowed additional elastic PCUs for the current instance. This value is returned regardless of whether the feature is enabled or disabled, and can be used for validation when you set or modify ScaleMax. The value is determined by global configurations, customer UID policies, and instance configurations. Instance configurations take precedence over UID policies, and UID policies take precedence over global configurations.

The enabling status must be based solely on Switchs. ScaleMin, ScaleMax, and TraditionalScaleMaxThreshold do not represent the real-time PCUs in use, nor do they include defined specifications. The query results do not indicate the execution progress of background tasks.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

POST  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

DBClusterId

string

Yes

The ID of the parent PolarDB primary cluster, which is used to locate the associated Search cluster. This is not the Search cluster ID. This operation only manages Search and does not affect DB Serverless.

pc-bp10gr51qasnl****

Specify the ID of the parent PolarDB primary cluster. Do not specify the Search cluster ID.

Response elements

Element

Type

Description

Example

object

The results returned for the request.

RequestId

string

The unique identifier of the request, which is used to locate the request. This is not a background task ID.

5E71541A-6007-4DCC-A38A-F872C31FEB45

DBClusterId

string

The ID of the PolarDB primary cluster to which the Search cluster belongs. This corresponds to the DBClusterId parameter in the request.

pc-bp10gr51qasnl****

DBSearchClusterId

string

The ID of the Search cluster queried through the associated PolarDB primary cluster.

psc-2zeibw6eox3m****

Switchs

string

The enabling status of Search Serverless. A value of 1 indicates that the feature is enabled. A value of 0 indicates that the feature is disabled or not enabled. This field does not indicate the current PCU usage or the execution status of background tasks.

1

ScaleMin

string

The unit is PCU, excluding defined specifications. When the feature is enabled, this value indicates the current saved lower limit of additional elastic PCUs. When the feature is disabled, this value is 0. You cannot determine whether the feature is enabled based solely on this value.

0

ScaleMax

string

The unit is PCU, excluding defined specifications. When the feature is enabled, this value indicates the current saved upper limit of additional elastic PCUs. When the feature is disabled, this value indicates the maximum allowed additional elastic PCUs for the instance, which serves as a reference when you enable the feature. A non-zero value does not indicate that the feature is enabled. Use TraditionalScaleMaxThreshold to validate the maximum settings during modification.

16

ServerlessRuleMode

string

The current saved elastic sensitivity for Search. Valid values: normal: standard. flexible: sensitive. This field may not be returned when the feature is disabled.

normal

ServerlessRuleCpuEnlargeThreshold

integer

The current saved CPU scale-up threshold for Search, in percentage. This field may not be returned when the feature is disabled.

80

ServerlessRuleCpuShrinkThreshold

integer

The current saved CPU scale-down threshold for Search, in percentage. This field may not be returned when the feature is disabled.

50

TraditionalScaleMaxThreshold

string

The maximum allowed additional elastic PCUs for the current instance, in PCUs, excluding defined specifications. This value is returned regardless of whether the feature is enabled or disabled. It is used to validate ScaleMax and does not represent the current settings or actual usage. The value is dynamically determined by global configurations, customer UID policy, and instance configurations, with instance configurations having the highest priority.

28

Use the Switchs field to determine whether Search Serverless is enabled, and use the TraditionalScaleMaxThreshold field to validate the maximum value that can be set for ScaleMax.

Examples

Success response

JSON format

{
  "RequestId": "5E71541A-6007-4DCC-A38A-F872C31FEB45",
  "DBClusterId": "pc-bp10gr51qasnl****",
  "DBSearchClusterId": "psc-2zeibw6eox3m****",
  "Switchs": "1",
  "ScaleMin": "0",
  "ScaleMax": "16",
  "ServerlessRuleMode": "normal",
  "ServerlessRuleCpuEnlargeThreshold": 80,
  "ServerlessRuleCpuShrinkThreshold": 50,
  "TraditionalScaleMaxThreshold": "28"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.