All Products
Search
Document Center

Database Autonomy Service:DescribeAutoScalingConfig

Last Updated:Jun 10, 2026

Mengkueri konfigurasi fitur Penyesuaian Skala Otomatis untuk sebuah instans.

Deskripsi operasi

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

  • If you use an Alibaba Cloud SDK or a 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.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

hdm:DescribeAutoScalingConfig

get

*All Resource

*

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

InstanceId

string

Yes

ID instans.

pc-2ze1prap1k46r****

Elemen respons

Element

Type

Description

Example

object

Code

string

The HTTP status code returned.

200

Message

string

The returned message.

Catatan

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

Successful

RequestId

string

The request ID.

B6D17591-B48B-4D31-9CD6-9B9796B2****

Success

string

Indicates whether the request was successful. Valid values:

  • true

  • false

true

Data

object

The configurations of the auto scaling feature for instances.

Spec

object

The configurations of the auto scaling feature for specifications.

Upgrade

boolean

Indicates whether the automatic specification scale-up feature is enabled. Valid values:

  • true

  • false

true

CpuUsageUpperThreshold

integer

The average CPU utilization threshold that triggers automatic specification scale-up. Unit: %.

70

MemUsageUpperThreshold

integer

The average memory usage threshold that triggers automatic specification scale-up. Unit: %.

70

MaxSpec

string

The maximum specifications to which the cluster can be scaled up. For more information about the specifications of each type of supported database instances, see the following topics:

polar.mysql.x8.12xlarge

MaxReadOnlyNodes

integer

The maximum number of read-only nodes of the instance.

10

ObservationWindowSize

string

The observation window. The return value consists of a numeric value and a time unit suffix. Valid values of the time unit suffix:

  • s: seconds.

  • m: minutes.

  • h: hours.

  • d: days.

Catatan

A value of 5m indicates 5 minutes.

5m

CoolDownTime

string

The quiescent period. The return value consists of a numeric value and a time unit suffix. Valid values of the time unit suffix:

  • s: seconds.

  • m: minutes.

  • h: hours.

  • d: days.

Catatan

A value of 5m indicates 5 minutes.

5m

Downgrade

boolean

Indicates whether the automatic specification scale-down feature is enabled. Valid values:

  • true

  • false

true

Storage

object

The configurations of the automatic storage expansion feature.

Upgrade

boolean

Indicates whether the automatic storage expansion feature is enabled. Valid values:

  • true

  • false

true

DiskUsageUpperThreshold

integer

The average storage usage threshold that triggers automatic storage expansion. Unit: %.

70

MaxStorage

integer

The maximum storage size. Unit: GB.

32000

Resource

object

The configurations of the auto scaling feature for local resources.

Enable

boolean

Indicates whether the auto scaling feature is enabled for local resources. Valid values:

  • true

  • false

true

CpuUsageUpperThreshold

integer

The average CPU utilization threshold that triggers automatic scale-out of local resources. Unit: %.

70

CpuStep

integer

The scale-out step size of CPU.

2

UpgradeObservationWindowSize

string

The observation window of the automatic scale-out feature for local resources. The return value consists of a numeric value and a time unit suffix. Valid values of the time unit suffix:

  • s: seconds.

  • m: minutes.

  • h: hours.

  • d: days.

Catatan

A value of 5m indicates 5 minutes.

5m

DowngradeObservationWindowSize

string

The observation window of the automatic scale-in feature for local resources. The return value consists of a numeric value and a time unit suffix. Valid values of the time unit suffix:

  • s: seconds.

  • m: minutes.

  • h: hours.

  • d: days.

Catatan

A value of 5m indicates 5 minutes.

5m

Shard

object

The configurations of the auto scaling feature for shards.

Upgrade

boolean

Indicates whether the feature of automatically adding shards is enabled. Valid values:

  • true

  • false

true

MemUsageUpperThreshold

integer

The average memory usage threshold that triggers automatic adding of shards. Unit: %.

70

MaxShards

integer

The maximum number of shards in the instance.

16

UpgradeObservationWindowSize

string

The observation window of the feature of automatically adding shards. The return value consists of a numeric value and a time unit suffix. Valid values of the time unit suffix:

  • s: seconds.

  • m: minutes.

  • h: hours.

  • d: days.

Catatan

A value of 5m indicates 5 minutes.

5m

Downgrade

boolean

Indicates whether the feature of automatically removing shards is enabled. Valid values:

  • true

  • false

true

MemUsageLowerThreshold

integer

The average memory usage threshold that triggers automatic removal of shards. Unit: %.

30

MinShards

integer

The minimum number of shards in the instance.

4

DowngradeObservationWindowSize

string

The observation window of the feature of automatically removing shards. The return value consists of a numeric value and a time unit suffix. Valid values of the time unit suffix:

  • s: seconds.

  • m: minutes.

  • h: hours.

  • d: days.

Catatan

A value of 1d indicates one day.

1d

Bandwidth

object

The configurations of the automatic bandwidth adjustment feature.

Upgrade

boolean

Indicates whether the automatic bandwidth adjustment feature is enabled. Valid values:

  • true

  • false

true

BandwidthUsageUpperThreshold

integer

The average bandwidth usage threshold that triggers automatic bandwidth adjustment. Unit: %.

70

ObservationWindowSize

string

The observation window of the automatic bandwidth adjustment feature. The return value consists of a numeric value and a time unit suffix. Valid values of the time unit suffix:

  • s: seconds.

  • m: minutes.

  • h: hours.

  • d: days.

Catatan

A value of 5m indicates 5 minutes.

5m

Downgrade

boolean

Indicates whether the automatic bandwidth downgrade feature is enabled. Valid values:

  • true

  • false

true

BandwidthUsageLowerThreshold

integer

The average bandwidth usage threshold that triggers automatic bandwidth downgrade. Unit: %.

30

Contoh

Respons sukses

JSONformat

{
  "Code": "200",
  "Message": "Successful",
  "RequestId": "B6D17591-B48B-4D31-9CD6-9B9796B2****",
  "Success": "true",
  "Data": {
    "Spec": {
      "Upgrade": true,
      "CpuUsageUpperThreshold": 70,
      "MemUsageUpperThreshold": 70,
      "MaxSpec": "polar.mysql.x8.12xlarge",
      "MaxReadOnlyNodes": 10,
      "ObservationWindowSize": "5m",
      "CoolDownTime": "5m",
      "Downgrade": true
    },
    "Storage": {
      "Upgrade": true,
      "DiskUsageUpperThreshold": 70,
      "MaxStorage": 32000
    },
    "Resource": {
      "Enable": true,
      "CpuUsageUpperThreshold": 70,
      "CpuStep": 2,
      "UpgradeObservationWindowSize": "5m",
      "DowngradeObservationWindowSize": "5m"
    },
    "Shard": {
      "Upgrade": true,
      "MemUsageUpperThreshold": 70,
      "MaxShards": 16,
      "UpgradeObservationWindowSize": "5m",
      "Downgrade": true,
      "MemUsageLowerThreshold": 30,
      "MinShards": 4,
      "DowngradeObservationWindowSize": "1d"
    },
    "Bandwidth": {
      "Upgrade": true,
      "BandwidthUsageUpperThreshold": 70,
      "ObservationWindowSize": "5m",
      "Downgrade": true,
      "BandwidthUsageLowerThreshold": 30
    }
  }
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 InvalidParams The request parameters are invalid.
403 NoPermission You are not authorized to do this action.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.