Binds a fallback behavior definition to a Sentinel traffic protection rule.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:BindSentinelBlockFallbackDefinition |
update |
*GovernanceApplication
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AppName |
string |
Yes |
Application name. |
spring-cloud-a |
| Namespace |
string |
Yes |
Microservice namespace. |
prod |
| FallbackId |
integer |
Yes |
Fallback behavior ID. 0: default behavior. |
21 |
| TargetType |
string |
Yes |
Rule type of the target resource. Valid values:
|
1 |
| Resource |
string |
Yes |
Resource name to which the rule applies. Must match the interface name shown in the console. |
/a |
| AcceptLanguage |
string |
No |
Response language. Valid values:
|
zh |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Message |
string |
Response message. |
OK |
| RequestId |
string |
Request ID. |
4E9FDCFE-0738-493B-B801-82BDFBCB**** |
| Data |
boolean |
The returned data. |
true |
| Code |
integer |
Status code. 200 indicates success. |
200 |
| Success |
string |
Whether the request succeeded. Valid values:
|
true |
| HttpStatusCode |
integer |
HTTP status code. |
200 |
Examples
Success response
JSON format
{
"Message": "OK",
"RequestId": "4E9FDCFE-0738-493B-B801-82BDFBCB****",
"Data": true,
"Code": 200,
"Success": "true",
"HttpStatusCode": 200
}
Error codes
|
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 |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.