调用GetRegisteredServiceEndpoints获取注册服务端点信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
ServiceMeshId | string | 是 | 服务网格实例 ID | c08ba3fd1e6484b0f8cc1ad8fe10d**** |
Namespace | string | 否 | 命名空间 | default |
ClusterIds | string | 否 | 集群 ID 列表,用逗号分隔 | c8b054ee8c3914d079b5ce9733328****,c58faedb8a78640d3aeb0372e4c02**** |
Name | string | 否 | 服务名称 | reviews |
ServiceType | string | 否 | 服务类型,取值:
| Kubernetes |
返回参数
示例
正常返回示例
JSON
格式
{
"ServiceEndpoints": [
{
"Address": "192.168.25.153",
"ClusterId": "c80f45444b3da447da60a911390c2****"
}
],
"EndPointSlice": {
"ServiceName": "reviews",
"Namespace": "default",
"Location": "MESH_INTERNAL",
"EndpointsDetails": [
{
"PodName": "provider-v1-8c86b6898-h***",
"Address": "127.2.**.**",
"Ports": [
9090
],
"Hostname": "www.demo.com",
"Region": "cn-hangzhou",
"SidecarInjected": false
}
]
},
"RequestId": "31d3a0f0-07ed-4f6e-9004-1804498c****"
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
500 | ERR500 | An internal server error occurred. | 后端服务异常 |
访问错误中心查看更多错误码。