查询已关联来源列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
mse:ListServiceSource |
get |
*Gateway
|
无 | 无 |
请求参数
名称 |
类型 |
必填 |
描述 |
示例值 |
GatewayUniqueId |
string |
是 |
网关唯一标识 ID。 |
gw-c51a15c7ee934a4fb945ccf35fe1**** |
Source |
string |
否 |
获取指定服务来源类型(为空返回所有类型):
|
MSE |
AcceptLanguage |
string |
否 |
返回信息的语言类型:
|
zh |
返回参数
名称 |
类型 |
描述 |
示例值 |
object |
数据结构。 |
||
RequestId |
string |
请求 ID。 |
B8C4B0D8-EBB9-5F20-8295-04224FBE5529 |
HttpStatusCode |
integer |
HTTP 状态码。 |
200 |
Message |
string |
错误信息。 |
You are not authorized to perform this operation. |
Code |
integer |
响应码。 |
200 |
Success |
boolean |
请求结果,取值如下:
|
true |
Data |
array |
返回结果。 |
|
object |
数据结构。 |
||
Id |
integer |
ID。 |
1 |
Name |
string |
名称。 |
test |
Address |
string |
ACK ID 或 MSE 注册中心地址。 |
*** |
Type |
string |
类型。 |
NACOS |
Source |
string |
来源类型。 |
MSE |
BindingWithGateway |
integer |
是否完成绑定。 (数值 1 表示完成绑定) |
1 |
GatewayId |
integer |
网关 ID。 |
1 |
GmtCreate |
string |
创建时间。 |
2022-01-07 18:07:57 |
GmtModified |
string |
更新时间。 |
2022-01-07 18:07:57 |
SourceUniqueId |
string |
来源唯一标识。 |
mse-cn-*** |
IngressOptions |
object |
应用路由 Ingress 支持。 |
|
EnableIngress |
boolean |
开启或关闭 Ingress。 |
true |
IngressClass |
string |
Ingress Class。 |
com.test.xxx |
WatchNamespace |
string |
监听命名空间。 |
default |
EnableStatus |
boolean |
是否更新 IngressStatus。 |
true |
GatewayUniqueId |
string |
网关 UniqueId。 |
gw-2u9uhd9283hd92hgd39g239dg2***** |
GroupList |
array |
服务分组数组。 |
|
string |
服务分组。 |
DEFAULT_GROUP |
|
PathList |
array |
服务列表根路径数组。 |
|
string |
服务列表根路径。 |
/path |
|
Invalid |
boolean |
来源是否有效 |
示例
正常返回示例
JSON
格式
{
"RequestId": "B8C4B0D8-EBB9-5F20-8295-04224FBE5529",
"HttpStatusCode": 200,
"Message": "You are not authorized to perform this operation.",
"Code": 200,
"Success": true,
"Data": [
{
"Id": 1,
"Name": "test",
"Address": "***",
"Type": "NACOS",
"Source": "MSE",
"BindingWithGateway": 1,
"GatewayId": 1,
"GmtCreate": "2022-01-07 18:07:57",
"GmtModified": "2022-01-07 18:07:57",
"SourceUniqueId": "mse-cn-***",
"IngressOptions": {
"EnableIngress": true,
"IngressClass": "com.test.xxx",
"WatchNamespace": "default",
"EnableStatus": true
},
"GatewayUniqueId": "gw-2u9uhd9283hd92hgd39g239dg2*****",
"GroupList": [
"DEFAULT_GROUP"
],
"PathList": [
"/path"
],
"Invalid": true
}
]
}
错误码
HTTP status code |
错误码 |
错误信息 |
描述 |
---|---|---|---|
400 | IllegalRequest | Invalid request:%s | 非法请求: %s |
400 | InvalidParameter | Parameter error:%s | 请求参数错误:%s |
500 | InternalError | Console error. Try again later:%s | 控制台错误.稍后重试:%s |
403 | NoPermission | You are not authorized to perform this operation:%s | 没有权限使用此接口:%s |
404 | NotFound | Not found:%s | 资源不存在:%s |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。