获取服务列表
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
mse:GetServiceListPage |
get |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| Region |
string |
否 |
地域。 |
cn-hangzhou |
| Namespace |
string |
否 |
MSE 命名空间名字 |
default |
| AppName |
string |
否 |
应用名字。 |
example-app |
| ServiceType |
string |
否 |
服务类型。 |
springCloud |
| AppId |
string |
否 |
应用 id。 |
dez4xxxxx@f3f75ed8ffxxxxx |
| ServiceName |
string |
否 |
服务名字。 |
sc-A |
| PageNumber |
integer |
否 |
页数。 |
1 |
| PageSize |
integer |
否 |
每页大小。 |
10 |
| Ip |
string |
否 |
要查询的 ip 地址。 |
223.5.5.5 |
| AcceptLanguage |
string |
否 |
返回结果显示的语言。取值:zh(默认值):中文,en:英文 |
zh |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| Success |
boolean |
请求是否成功。 |
True |
| Message |
string |
请求信息。 |
OK |
| RequestId |
string |
请求 id。 |
A2F946FB-F2E3-5BF4-8CBE-xxxxxxxx |
| Data |
object |
请求响应数据。 |
|
| Result |
array<object> |
当前页面数据。 |
|
|
object |
每个服务的信息。 |
||
| AppName |
string |
应用名。 |
example-app |
| Version |
string |
服务版本。 |
1 |
| InstanceNum |
integer |
服务对应的节点数。 |
1 |
| GmtModifyTime |
string |
服务最后的更新时间。 |
123456 |
| AppId |
string |
应用 id。 |
dez4xxxxx@f3f75ed8ffxxxxx |
| ServiceName |
string |
服务名。 |
sc-A |
| Group |
string |
服务分组。 |
DEFAULT_GROUP |
| ServiceType |
string |
服务类型。 |
|
| TotalSize |
string |
数据总数。 |
100 |
| PageNumber |
string |
当前页码。 |
1 |
| PageSize |
string |
页面大小。 |
10 |
示例
正常返回示例
JSON格式
{
"Success": true,
"Message": "OK",
"RequestId": "A2F946FB-F2E3-5BF4-8CBE-xxxxxxxx",
"Data": {
"Result": [
{
"AppName": "example-app",
"Version": "1",
"InstanceNum": 1,
"GmtModifyTime": "123456",
"AppId": "dez4xxxxx@f3f75ed8ffxxxxx",
"ServiceName": "sc-A",
"Group": "DEFAULT_GROUP",
"ServiceType": ""
}
],
"TotalSize": "100",
"PageNumber": "1",
"PageSize": "10"
}
}
错误码
|
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 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。