All Products
Search
Document Center

Database Autonomy Service:GetSqlConcurrencyControlRulesHistory

Last Updated:Jun 10, 2026

Mengkueri aturan Pembatasan kecepatan yang sedang dijalankan atau telah dipicu.

Deskripsi operasi

This operation supports the following database engines:

  • ApsaraDB RDS for MySQL

  • PolarDB for MySQL

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:GetSqlConcurrencyControlRulesHistory

get

*全部资源

*

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

ConsoleContext

string

No

Parameter yang dicadangkan.

None

InstanceId

string

Yes

ID Instans.

Catatan

Hanya Instans Database Apsara RDS for MySQL dan kluster PolarDB Basis Data Relasional Cloud-Native for MySQL yang didukung.

rm-2ze1jdv45i7l6****

PageNo

integer

No

Nomor halaman. Nilai harus berupa bilangan bulat yang lebih besar dari 0. Nilai default: 1.

1

PageSize

integer

No

Jumlah entri per halaman. Nilai harus berupa bilangan bulat yang lebih besar dari 0. Nilai default: 10.

10

Elemen respons

Element

Type

Description

Example

object

The response parameters.

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

Data

object

The detailed information, including the error codes and the number of entries that are returned.

Total

integer

The total number of entries returned.

4

List

object

rules

array<object>

The list of the queried throttling rules.

object

ItemId

integer

The ID of the throttling rule that is applied to the instance.

16

SqlType

string

The type of the SQL statements. Valid values:

  • SELECT

  • UPDATE

  • DELETE

SELECT

InstanceId

string

The instance ID.

rm-2ze1jdv45i7l6****

SqlKeywords

string

The keywords that are used to identify the SQL statements that need to be throttled.

Catatan

SQL keywords are separated with tildes (~). When the number of concurrent SQL statements that contain all the specified SQL keywords reaches the specified upper limit, the throttling rule is triggered.

call~open~api~test~4~from~POP

StartTime

integer

The beginning of the time range to query. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC.

1608888296000

KeywordsHash

string

The hash value of the SQL keywords. The SQL keywords are contained in the SQL statements to which the throttling rule is applied.

b0b8aceeb43baea87b219c81767b****

ConcurrencyControlTime

integer

The duration within which the SQL throttling rule takes effect. Unit: seconds.

Catatan

The throttling rule takes effect only within this duration.

600

UserId

string

The user ID.

testxxx

MaxConcurrency

integer

The maximum number of concurrent SQL statements. Set this parameter to a positive integer.

Catatan

When the number of concurrent SQL statements that contain the specified keywords reaches this upper limit, the throttling rule is triggered.

2

Status

string

The state of the throttling rule. Valid values:

  • Open: The throttling rule is in effect.

  • Closed: The throttling rule was in effect.

Open

RequestId

string

The request ID.

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

Success

string

Indicates whether the request was successful. Valid values:

  • true: The request was successful.

  • false: The request failed.

true

Contoh

Respons sukses

JSONformat

{
  "Code": "200",
  "Message": "Successful",
  "Data": {
    "Total": 4,
    "List": {
      "rules": [
        {
          "ItemId": 16,
          "SqlType": "SELECT",
          "InstanceId": "rm-2ze1jdv45i7l6****",
          "SqlKeywords": "call~open~api~test~4~from~POP",
          "StartTime": 1608888296000,
          "KeywordsHash": "b0b8aceeb43baea87b219c81767b****",
          "ConcurrencyControlTime": 600,
          "UserId": "testxxx",
          "MaxConcurrency": 2,
          "Status": "Open"
        }
      ]
    }
  },
  "RequestId": "B6D17591-B48B-4D31-9CD6-9B9796B2****",
  "Success": "true"
}

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.