All Products
Search
Document Center

Database Autonomy Service:DisableInstanceDasConfig

Last Updated:Apr 25, 2024

Disables the auto scaling feature for a database instance.

Operation description

Before you call this operation, take note of the following items:

  • If you use Alibaba Cloud SDK or Database Autonomy Service (DAS) SDK to call this operation, we recommend that you use the latest version of the SDK.
  • If you use an SDK to call operations of DAS, you must set the region ID to cn-shanghai.
  • This operation is applicable only to ApsaraDB for Redis instances.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceIdstringYes

The database instance ID.

r-bp1nti25tc7bq5****
EnginestringYes

The database engine. Set the value to Redis.

Redis
ScaleTypestringYes

The type of auto scaling. Valid values:

  • specScale: The specifications of a database instance are automatically scaled up or down.
  • shardScale: The number of shards for a database instance is automatically increased or decreased.
  • bandwidthScale: The bandwidth of a database instance is automatically increased or decreased.
bandwidthScale

Response parameters

ParameterTypeDescriptionExample
object
Codestring

The HTTP status code returned.

200
Messagestring

The returned message.

Note If the request was successful, Successful is returned. If the request failed, an error message such as an error code is returned.
Successful
Datastring

The result of disabling the auto scaling feature for the database instance.

success
RequestIdstring

The request ID.

7172BECE-588A-5961-8126-C216E16B****
Successstring

Indicates whether the request was successful. Valid values:

  • true
  • false
true

Examples

Sample success responses

JSONformat

{
  "Code": "200",
  "Message": "Successful",
  "Data": "success",
  "RequestId": "7172BECE-588A-5961-8126-C216E16B****",
  "Success": "true"
}

Error codes

HTTP status codeError codeError message
400InvalidParamsThe request parameters are invalid.
403NoPermissionYou are not authorized to do this action.

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

Change history

Change timeSummary of changesOperation
No change history