Clones Sentinel rules from Application High Availability Service (AHAS) to Microservices Engine (MSE).
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:CloneSentinelRuleFromAhas |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Namespace |
string |
Yes |
The namespace. |
default |
| MseAppName |
string |
No |
The name of the MSE application after migration. If not specified, the AHAS application name is used. |
spring-cloud-a |
| AppName |
string |
No |
The application name. |
spring-cloud-a |
| AhasNamespace |
string |
Yes |
The namespace (environment) of Application High Availability Service (AHAS). |
default |
| IsAHASPublicRegion |
boolean |
No |
Whether AHAS is deployed in the Internet region. |
false |
| AcceptLanguage |
string |
No |
The language of the response. Valid values: zh (Chinese, default) and en (English). |
zh |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
RestResult<Map<String, List>> |
||
| RequestId |
string |
The request ID. |
EE5C32A1-BC0E-4B79-817C-103E4EDF**** |
| Data |
object |
The returned data. |
|
|
array |
The execution result. |
||
|
string |
The execution result details. |
"Finish AHAS prod:spring-cloud-b -> MSE prod:spring-cloud-b ..." |
Examples
Success response
JSON format
{
"RequestId": "EE5C32A1-BC0E-4B79-817C-103E4EDF****",
"Data": {
"key": [
"\"Finish AHAS prod:spring-cloud-b -> MSE prod:spring-cloud-b ...\"\n"
]
}
}
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.