Memperbarui aturan pembatasan (throttling).
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:UpdateFlowRule |
update |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Namespace |
string |
Yes |
Namespace. |
default |
| AppName |
string |
Yes |
Nama aplikasi. |
spring-cloud-a |
| RuleId |
integer |
Yes |
ID aturan. |
13 |
| Threshold |
integer |
No |
Ambang batas pembatasan (throttling). |
30 |
| Enable |
boolean |
No |
Menentukan apakah aturan akan diaktifkan. Valid values:
|
true |
| ControlBehavior |
integer |
No |
Efek pembatasan (throttling). Valid values:
|
0 |
| MaxQueueingTimeMs |
integer |
No |
Periode batas waktu. Unit: milidetik. Parameter ini diperlukan jika parameter ControlBehavior diatur ke 2. |
500 |
| AppId |
string |
No |
ID aplikasi. |
hkhon1po62@c3df23522****** |
| LimitApp |
string |
No |
Aplikasi sumber dari permintaan. |
Spring-cloud-a |
| AcceptLanguage |
string |
No |
Bahasa respons. Nilai yang valid:
|
zh |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| Message |
string |
Pesan respons. |
请求处理成功 |
| RequestId |
string |
ID permintaan. |
52BA6DA6-A702-4362-A32F-DFF79655**** |
| Code |
string |
Nilai yang dikembalikan. |
200 |
| Data |
object |
Data dari node. |
|
| Namespace |
string |
Namespace. |
default |
| Id |
integer |
ID aturan. |
12 |
| AppName |
string |
Nama aplikasi. |
spring-cloud-a |
| Resource |
string |
Nama sumber daya antarmuka. |
/c |
| ControlBehavior |
integer |
Efek pembatasan (throttling). Valid values:
|
0 |
| MaxQueueingTimeMs |
integer |
Periode batas waktu untuk antrian ketika parameter ControlBehavior diatur ke 2. Unit: milidetik. |
500 |
| Threshold |
number |
Ambang batas pembatasan (throttling). |
5 |
| Enable |
boolean |
Menunjukkan apakah aturan diaktifkan. Valid values:
|
true |
| AppId |
string |
ID aplikasi. |
hpn9ac29kz@e31a4b871****** |
| LimitApp |
string |
Aplikasi sumber dari permintaan. |
Spring-cloud-a |
| Success |
boolean |
Hasil dari permintaan. Valid values:
|
true |
Contoh
Respons sukses
JSONformat
{
"Message": "请求处理成功",
"RequestId": "52BA6DA6-A702-4362-A32F-DFF79655****",
"Code": "200",
"Data": {
"Namespace": "default",
"Id": 12,
"AppName": "spring-cloud-a",
"Resource": "/c",
"ControlBehavior": 0,
"MaxQueueingTimeMs": 500,
"Threshold": 5,
"Enable": true,
"AppId": "hpn9ac29kz@e31a4b871******",
"LimitApp": "Spring-cloud-a"
},
"Success": true
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IllegalRequest | Invalid request:%s | Invalid request: %s |
| 400 | InvalidParameter | Parameter error:%s | Request parameter error: %s |
| 500 | InternalError | Console error. Try again later:%s | Console error. Try again later: %s |
| 403 | NoPermission | You are not authorized to perform this operation:%s | You do not have the permission to use this interface:%s |
| 404 | NotFound | Not found:%s | The resource does not exist:%s |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.