查询服务发布点详情
更新时间:2026-07-15
描述
查询服务发布点详情
OpenAPI Explorer
去调试
您可以在 OpenAPI Explorer 中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer 可以自动生成 SDK 代码示例。
请求结构
Plain Text
1 GET /v{version}/service/{service} HTTP/1.1
2 Host: blb.bj.baidubce.com
3 Authorization: authorization string
4
请求头域
除公共头域外,无其它特殊头域。
请求参数
| 参数名称 | 类型 | 是否必需 | 参数位置 | 描述 |
|---|---|---|---|---|
| version | String | 是 | URL参数 | API版本号 |
| service | String | 是 | URL参数 | 服务发布点的域名 |
返回头域
除公共头域,无其它特殊头域。
返回参数
| 参数名称 | 类型 | 描述 |
|---|---|---|
| serviceId | String | 服务发布点的id |
| name | String | 服务发布点的名称 |
| description | String | 描述 |
| serviceName | String | 服务名称 |
| bindType | String | 绑定服务类型,目前仅支持绑定BLB实例 |
| instanceId | String | 绑定实例ID |
| status | String | 发布点状态,取值范围inService/available/unavailable/dead/free,分别表示:服务中/可用/不可用/故障/未绑定 |
| service | String | 服务发布点唯一对应域名 |
| createTime | String | 创建时间 |
| endpointCount | int | 关联的服务网卡数量 |
| endpointList | List<RelatedEndpoint> | 关联的服务网卡列表 |
| authList | List<Auth> | 授权列表 |
请求示例
Plain Text
1 GET /v1/service/xxx.baidubce.com HTTP/1.1
2 Host: blb.bj.baidubce.com
3 Authorization: authorization string
4
返回示例
Plain Text
1 HTTP/1.1 200 OK
2 x-bce-request-id: 1214cca7 4ad5 451d 9215 71cb844c0a50
3 Date: Thu, 16 Mar 2017 06:29:48 GMT
4 Content Type: application/json;charset=UTF 8
5 Server: BWS
6
7{
8 "serviceId': "uservice-a223vc",
9 "name": "name",
10 "description": "",
11 "serviceName": "serviceName",
12 "bindType": "blb",
13 "instanceId": "lb-d3e2cf75",
14 "status": "inService",
15 "service": "xxx.baidubce.com",
16 "createTime": "2019-03-07T02:35:31Z",
17 "endpointCount": 1,
18 "endpointList": [
19 {
20 "endpointId': "endpoint-a223vc",
21 "uid': "e8deba4d81d3435bb4591ce97288f296",
22 "attachTime': "2019-03-07T02:35:31Z",
23 }
24 ],
25 "authList": [
26 {
27 "uid": "*",
28 "auth" : "allow"
29 }
30 ]
31}
评价此篇文章
