Memperoleh daftar aturan throttling.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:ListFlowRules |
list |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Namespace |
string |
Yes |
Namespace. |
default |
| AppName |
string |
Yes |
Nama aplikasi. |
xx-demo |
| ResourceSearchKey |
string |
No |
Kata kunci yang digunakan untuk pencarian. |
/a |
| AppId |
string |
No |
ID aplikasi. |
hkhon1po62@c3df23522****** |
| Resource |
string |
No |
Nama sumber daya. |
/a |
| PageIndex |
integer |
No |
Nomor halaman. Nilai default: 1. |
1 |
| PageSize |
integer |
No |
Jumlah entri per halaman. |
10 |
| AcceptLanguage |
string |
No |
Bahasa respons. Nilai yang valid:
|
zh |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
integer |
Kode status HTTP. |
200 |
| Message |
string |
Pesan yang dikembalikan. |
OK |
| RequestId |
string |
ID permintaan. |
316F5F64-F73D-42DC-8632-01E308B6**** |
| Success |
boolean |
Menunjukkan apakah permintaan berhasil. Nilai yang valid:
Valid values:
|
true |
| Data |
object |
Detail data. |
|
| Result |
array<object> |
Data yang dikembalikan. |
|
|
array<object> |
|||
| Namespace |
string |
The namespace. |
default |
| RuleId |
integer |
The rule ID. |
2 |
| AppName |
string |
The application name. |
finance |
| Resource |
string |
The name of the interface resource. |
/a |
| ResourceType |
integer |
Interface resource type. |
1 |
| ControlBehavior |
integer |
The throttling effect. Valid values:
Valid values:
|
0 |
| MaxQueueingTimeMs |
integer |
The timeout period for queuing when the value of ControlBehavior is set to 2. Unit: milliseconds. |
500 |
| Threshold |
number |
The throttling threshold. |
10 |
| Enable |
boolean |
Indicates whether the throttling rule was enabled. Valid values:
Valid values:
|
true |
| AppId |
string |
The ID of the application. |
hkhon1po62@5f1b08becb***** |
| RegionId |
string |
The ID of the region in which the instance resides. |
cn-hangzhou |
| FallbackObject |
string |
The throttling behavior. |
"{\"appName\":\"spring-cloud-a\",\"fallbackBehavior\":{\"webFallbackMode\":0,\"webRespContentType\":0,\"webRespMessage\":\"Blocked\",\"webRespStatusCode\":429},\"id\":977,\"name\":\"Fallback\",\"namespace\":\"default\",\"resourceClassification\":1}" |
| MetricType |
integer |
The statistical dimension. The value 1 indicates that the number of accepted requests is used for statistics. |
1 |
| TrafficTags |
object |
A reserved parameter. |
{\"origin\":\"default\"} |
| LimitApp |
string |
Requests source application. |
spring-cloud-a |
| PageNumber |
integer |
Nomor halaman. |
1 |
| PageSize |
integer |
Jumlah entri per halaman. |
10 |
| TotalSize |
integer |
Jumlah total entri. |
11 |
| HttpStatusCode |
integer |
Kode status HTTP. |
200 |
Contoh
Respons sukses
JSONformat
{
"Code": 200,
"Message": "OK",
"RequestId": "316F5F64-F73D-42DC-8632-01E308B6****",
"Success": true,
"Data": {
"Result": [
{
"Namespace": "default",
"RuleId": 2,
"AppName": "finance",
"Resource": "/a",
"ResourceType": 1,
"ControlBehavior": 0,
"MaxQueueingTimeMs": 500,
"Threshold": 10,
"Enable": true,
"AppId": "hkhon1po62@5f1b08becb*****",
"RegionId": "cn-hangzhou",
"FallbackObject": "\"{\\\"appName\\\":\\\"spring-cloud-a\\\",\\\"fallbackBehavior\\\":{\\\"webFallbackMode\\\":0,\\\"webRespContentType\\\":0,\\\"webRespMessage\\\":\\\"Blocked\\\",\\\"webRespStatusCode\\\":429},\\\"id\\\":977,\\\"name\\\":\\\"Fallback\\\",\\\"namespace\\\":\\\"default\\\",\\\"resourceClassification\\\":1}\"",
"MetricType": 1,
"TrafficTags": {
"test": "test",
"test2": 1
},
"LimitApp": "spring-cloud-a"
}
],
"PageNumber": 1,
"PageSize": 10,
"TotalSize": 11
},
"HttpStatusCode": 200
}
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.