通过GetServiceList接口查询应用服务信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
mse:GetServiceList |
get |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| Region |
string |
否 |
地域。 |
cn-zhangjiakou |
| ServiceType |
string |
否 |
框架类型。 |
dubbo |
| AppId |
string |
是 |
应用 ID。 |
xxx@xxx |
| ServiceName |
string |
否 |
服务名。 |
com.alibaba.xxx |
| Ip |
string |
否 |
IP 地址。 |
127.0.0.1 |
| AcceptLanguage |
string |
否 |
语言类型。 |
zh |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
数据结构。 |
||
| HttpStatusCode |
integer |
Http 状态码。 |
200 |
| Message |
string |
响应信息。 |
success |
| RequestId |
string |
请求 ID。 |
xxx-xxx-xxx |
| Data |
array<object> |
返回数据。 |
|
|
array<object> |
返回结果。 |
||
| EdasAppName |
string |
应用名。 |
test |
| DubboApplicationName |
string |
Dubbo 应用名。 |
dubbo-application |
| Version |
string |
版本信息。 |
1.0.0 |
| SpringApplicationName |
string |
Spring 应用名。 |
spring-application |
| RegistryType |
string |
注册中心类型。 |
nacos |
| ServiceType |
string |
服务类型。 |
dubbo |
| ServiceName |
string |
服务名。 |
com.alibaba.xxx |
| Methods |
array<object> |
方法列表。 |
|
|
object |
方法列表。 |
||
| Paths |
array |
路径。 |
|
|
string |
服务映射地址。 |
/path |
|
| ParameterTypes |
array |
参数类型。 |
|
|
string |
参数类型。 |
int |
|
| RequestMethods |
array |
方法。 |
|
|
string |
方法。 |
sayHello |
|
| Name |
string |
方法名。 |
sayHello |
| MethodController |
string |
方法接口。 |
com.alibaba.SayHelloController |
| ReturnType |
string |
返回值类型。 |
int |
| Metadata |
object |
元数据。 |
{} |
| Group |
string |
分组。 |
dubbo |
| Code |
integer |
状态码。 |
200 |
| Success |
boolean |
调用成功与否。 |
true |
示例
正常返回示例
JSON格式
{
"HttpStatusCode": 200,
"Message": "success",
"RequestId": "xxx-xxx-xxx",
"Data": [
{
"EdasAppName": "test",
"DubboApplicationName": "dubbo-application",
"Version": "1.0.0",
"SpringApplicationName": "spring-application",
"RegistryType": "nacos",
"ServiceType": "dubbo",
"ServiceName": "com.alibaba.xxx",
"Methods": [
{
"Paths": [
"/path"
],
"ParameterTypes": [
"int"
],
"RequestMethods": [
"sayHello"
],
"Name": "sayHello",
"MethodController": "com.alibaba.SayHelloController",
"ReturnType": "int"
}
],
"Metadata": {},
"Group": "dubbo"
}
],
"Code": 200,
"Success": 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 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。