Mengkueri kebijakan rate limit.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:DescribeRateLimitPolicy |
get |
*全部资源
|
None | None |
Sintaks permintaan
POST HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
ID region. |
cn-beijing |
| GwClusterId |
string |
Yes |
ID instans gateway. |
pg-xxxxxxx |
| PolicyId |
string |
No |
ID kebijakan rate limit. |
02eccf7c61cf4d05a543075ee907f3** |
| ScopeType |
string |
No |
Cakupan kebijakan rate limit. Nilai yang valid:
|
ConsumerGroup |
| ScopeRefId |
string |
No |
ID sumber daya target, yang dapat berupa grup konsumen atau konsumen, bergantung pada nilai |
cg-xxxxxxxx |
| PageSize |
integer |
No |
Jumlah entri per halaman. Nilai yang valid:
|
30 |
| PageNumber |
integer |
No |
Nomor halaman yang akan dikembalikan. Nilai default adalah 1. |
1 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Objek respons. |
||
| RequestId |
string |
ID permintaan. |
CED079B7-A408-41A1-BFF1-EC608E****** |
| TotalRecordCount |
string |
Jumlah total entri yang cocok. |
1 |
| PageSize |
string |
Jumlah entri yang dikembalikan per halaman. |
30 |
| PageNumber |
string |
Nomor halaman yang dikembalikan. |
1 |
| PageRecordCount |
string |
Jumlah entri yang dikembalikan pada halaman saat ini. |
30 |
| Items |
array<object> |
Array objek kebijakan rate limit. |
|
|
object |
Objek kebijakan rate limit. |
||
| PolicyId |
string |
ID kebijakan rate limit. |
02eccf7c61cf4d05a543075ee907f3** |
| GwClusterId |
string |
ID instans gateway. |
pg-xxxxxxxx |
| PolicyType |
string |
Jenis kebijakan. |
RateLimit |
| ScopeType |
string |
Cakupan kebijakan. Nilai yang valid:
|
ConsumerGroup |
| ScopeRefId |
string |
ID objek dalam cakupan kebijakan, seperti grup konsumen atau konsumen. |
cg-xxxxxxx |
| RateLimitRpm |
string |
Jumlah permintaan maksimum per menit (RPM). |
10 |
| RateLimitTpm |
string |
Jumlah token maksimum per menit (TPM). |
10 |
| Status |
string |
Status kebijakan. Nilai yang valid:
|
Enabled |
| GmtCreated |
string |
Waktu pembuatan. |
2025-12-01T17:52:05+08:00 |
| GmtModified |
string |
Waktu modifikasi. |
2026-01-19T16:47:25+08:00 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "CED079B7-A408-41A1-BFF1-EC608E******",
"TotalRecordCount": "1",
"PageSize": "30",
"PageNumber": "1",
"PageRecordCount": "30",
"Items": [
{
"PolicyId": "02eccf7c61cf4d05a543075ee907f3**\n",
"GwClusterId": "pg-xxxxxxxx",
"PolicyType": "RateLimit",
"ScopeType": "ConsumerGroup ",
"ScopeRefId": "cg-xxxxxxx",
"RateLimitRpm": "10",
"RateLimitTpm": "10",
"Status": "Enabled",
"GmtCreated": "2025-12-01T17:52:05+08:00",
"GmtModified": "2026-01-19T16:47:25+08:00"
}
]
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.