Membuat kebijakan pembatasan laju.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:CreateRateLimitPolicy |
create |
*全部资源
|
None | None |
Sintaks permintaan
POST HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| GwClusterId |
string |
Yes |
ID Instans gerbang. |
pg-xxxxxxx |
| ScopeType |
string |
Yes |
Dimensi pembatasan laju. Nilai valid:
|
ConsumerGroup |
| ScopeRefId |
string |
Yes |
ID kelompok konsumen atau konsumen. |
cg-xxxxxxx |
| RateLimitRpm |
string |
Yes |
Jumlah maksimum permintaan per menit. |
10 |
| RateLimitTpm |
string |
Yes |
Jumlah maksimum token per menit. |
10 |
| RegionId |
string |
No |
ID Wilayah. |
cn-beijing |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| RequestId |
string |
The request ID. |
CDB3258F-B5DE-43C4-8935-CBA0CA****** |
| PolicyId |
string |
The policy ID. |
02eccf7c61cf4d05a543075ee907f3** |
| GwClusterId |
string |
The gateway instance ID. |
pg-xxxxxxxx |
Contoh
Respons sukses
JSONformat
{
"RequestId": "CDB3258F-B5DE-43C4-8935-CBA0CA******",
"PolicyId": "02eccf7c61cf4d05a543075ee907f3**",
"GwClusterId": "pg-xxxxxxxx"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.