Retrieves the Intra-zone Provider First rules.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:GetLocalityRule |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Region |
string |
Yes |
The region of the gateway. |
cn-hangzhou |
| Namespace |
string |
No |
The name of the Microservices Engine (MSE) namespace. |
default |
| AppName |
string |
No |
The application name. |
example-app |
| AppId |
string |
No |
The application ID. |
hgxznfcvbe@be2c0228f****** |
| Source |
string |
No |
The source of the rule. This field is optional. |
edasmsc |
| AcceptLanguage |
string |
No |
The language in which you want the results to be displayed. Valid values: zh and en. zh is the default value, which indicates Chinese. en indicates English. |
zh |
Response elements
|
Parameter |
Type |
Description |
Example |
|
object |
|||
| Message |
string |
The returned message. |
|
| RequestId |
string |
The request ID. |
D3971C60-3F07-58B0-8EA0-A194******** |
| Data |
string |
The data returned. |
{ "pageNumber":0, "namespaceId":"cn-hangzhou", "enable":false, "appId":"hkhon1po62@3aa3582********", "pageSize":0, "region":"cn-hangzhou", "routeRules":[ { "threshold":0.2, "tags":[] } ] } |
| Code |
integer |
The status code. |
200 |
| Success |
string |
Indicates whether the request was successful. Valid values:
|
true |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
Examples
Success response
JSON format
{
"Message": "",
"RequestId": "D3971C60-3F07-58B0-8EA0-A194********",
"Data": "{\n \"pageNumber\":0,\n \"namespaceId\":\"cn-hangzhou\",\n \"enable\":false,\n \"appId\":\"hkhon1po62@3aa3582********\",\n \"pageSize\":0,\n \"region\":\"cn-hangzhou\",\n \"routeRules\":[\n {\n \"threshold\":0.2,\n \"tags\":[]\n }\n ]\n}",
"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.