Queries MSE Nacos instances registered as service sources for a gateway.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mse:GetMseSource |
get |
*Gateway
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| GatewayUniqueId |
string |
No |
The unique ID of the gateway. |
gw-7ea3da97b96543e19f6c597cd4a9**** |
| VpcId |
string |
No |
The VPC ID. |
vpc-bp1t50e045b5g7i3p**** |
| Type |
string |
No |
The MSE engine type. Valid values:
|
NACOS |
| AcceptLanguage |
string |
No |
The language of the response. Valid values:
Valid values:
|
zh |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The data structure. |
||
| RequestId |
string |
The request ID. |
5EB2D865-B43F-5526-8F92-857718CF73A2 |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Message |
string |
The response message.
|
The request is successfully processed. |
| Code |
integer |
The status code. |
1 |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| Data |
array<object> |
The queried service sources. |
|
|
object |
The data structure. |
||
| InstanceId |
string |
The instance ID. |
mse_prepaid_public_cn-7pp2eec**** |
| Address |
string |
The endpoint of the instance. |
mse-af1****-nacos-ans.mse.aliyuncs.com:8848 |
| Type |
string |
The service source type. |
Nacos |
| Name |
string |
The service source name. |
test |
| ClusterId |
string |
The cluster ID. |
mse_ |
Examples
Success response
JSON format
{
"RequestId": "5EB2D865-B43F-5526-8F92-857718CF73A2",
"HttpStatusCode": 200,
"Message": "The request is successfully processed.\n",
"Code": 1,
"Success": true,
"Data": [
{
"InstanceId": "mse_prepaid_public_cn-7pp2eec****",
"Address": "mse-af1****-nacos-ans.mse.aliyuncs.com:8848",
"Type": "Nacos",
"Name": "test",
"ClusterId": "mse_"
}
]
}
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.