All Products
Search
Document Center

ApsaraDB RDS:DescribeHASwitchConfig

Last Updated:Nov 17, 2025

Queries the settings of the automatic primary/secondary switchover feature for an instance.

Operation description

Supported database engines

  • MySQL
  • PostgreSQL
  • SQL Server
  • MariaDB

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
DBInstanceIdstringYes

The instance ID. You can call the DescribeDBInstances operation to query the instance ID.

rm-uf6wjk5xxxxxxxxxx
RegionIdstringYes

The region ID. You can call the DescribeRegions operation to query the most recent region list.

cn-hangzhou

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The ID of the request.

4FDF4B79-2741-4C5F-8C76-4B953FC5C2B1
ManualHATimestring

The time when the automatic primary/secondary switchover feature is enabled again. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

2019-08-29T15:00:00Z
HAConfigstring

The status of the automatic primary/secondary switchover feature. Valid values:

  • Auto: The automatic primary/secondary switchover feature is enabled. The system automatically switches your workloads over from the instance to its secondary instance in the event of a fault.
  • Manual: The automatic primary/secondary switchover feature is temporarily disabled.
Manual

Examples

Sample success responses

JSONformat

{
  "RequestId": "4FDF4B79-2741-4C5F-8C76-4B953FC5C2B1",
  "ManualHATime": "2019-08-29T15:00:00Z",
  "HAConfig": "Manual"
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-11-20API Description Update. The Error code has changedView Change Details