Memperoleh perilaku kustom dari perlindungan Trafik.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:ListSentinelBlockFallbackDefinitions |
list |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ClassificationSet |
array |
No |
Kumpulan Klasifikasi perilaku. |
|
|
integer |
No |
Behavior classification. Valid values:
|
1 |
|
| Namespace |
string |
Yes |
Nama ruang mikroservis. |
default |
| AppName |
string |
Yes |
Nama aplikasi. |
spring-cloud-a |
| AcceptLanguage |
string |
No |
Bahasa tanggapan. Nilai valid:
|
zh |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| HttpStatusCode |
integer |
The HTTP status code returned. |
200 |
| Message |
string |
The message returned. |
OK |
| RequestId |
string |
The request ID. |
4E9FDCFE-0738-493B-B801-82BDFBCB**** |
| Data |
array<object> |
The details of the data. |
|
|
array<object> |
|||
| Id |
string |
Behavior Id |
12 |
| Namespace |
string |
The name of the Microservices namespace. |
default |
| AppName |
string |
The name of the application. |
spring-cloud-a |
| Name |
string |
The name of the behavior. |
defaultFallback |
| ResourceClassification |
string |
Behavior classification. |
1 |
| FallbackBehavior |
object |
Behavior detail. |
{"webRespStatusCode":429,"webRespMessage":"test","webFallbackMode":0,"webRespContentType":0} |
| TargetMap |
object |
Resource information bound to the behavior. |
{"/params/{hot}":[1]} |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
Contoh
Respons sukses
JSONformat
{
"HttpStatusCode": 200,
"Message": "OK",
"RequestId": "4E9FDCFE-0738-493B-B801-82BDFBCB****",
"Data": [
{
"Id": "12",
"Namespace": "default",
"AppName": "spring-cloud-a",
"Name": "defaultFallback",
"ResourceClassification": "1",
"FallbackBehavior": {
"webRespStatusCode": 429,
"webRespMessage": "test",
"webFallbackMode": 0,
"webRespContentType": 0
},
"TargetMap": {
"/params/{hot}": [
1
]
}
}
],
"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.