查询服务详情
更新时间:2026-04-03
接口描述
查询服务详情信息。
请求结构
Plain Text
1GET ?action=DescribeService&serviceId=serviceId
2HTTP/1.1
3Host:aihc.bj.baidubce.com
4version: v2
5Authorization:authorization string
请求头域
除公共头域外,无其它特殊头域。
请求参数
| 参数名 | 参数类型 | 是否必须 | 参数位置 | 参数说明 |
|---|---|---|---|---|
| serviceId | String | 必选 | Query参数 | 服务ID |
返回头域
除公共头域,无其它特殊头域。
返回参数
| 参数名 | 参数类型 | 参数说明 |
|---|---|---|
| service | ServiceConf | 服务的详细配置信息 |
| status | ServiceStatus | 服务网络状态信息 |
| instances | List<InsInfo> | 实例信息 |
| creator | String | 创建人 |
| createdAt | Integer | 创建时间 |
| updatedAt | Integer | 更新时间 |
| requestId | String | 请求Id |
请求示例
Plain Text
1GET ?action=DescribeService&serviceId=s-r7d45dcffa0a
2HTTP/1.1
3Host:aihc.bj.baidubce.com
4version: v2
5Authorization:authorization string
返回示例
返回server:Service
Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: 63df3394-3edd-4977-a5d4-0d0fd021a42d
3Date:Wed,
423 Apr 2025 13: 08: 46 GMT
5Content-Type: application/json;charset=UTF-8
6Server: Service
7{
8 "createdAt": 1745411842,
9 "creator": "openapi",
10 "instances": [
11 {
12 "containers": [
13 {
14 "container": {
15 "command": [
16 "/bin/sh",
17 "-c",
18 "sleep inf"
19 ],
20 "cpus": 1,
21 "image": {
22 "imageUrl": "registry.baidubce.com/inference/vllm-openai:v0.8.3"
23 },
24 "memory": 2,
25 "name": "custom-container",
26 "ports": [
27 {
28 "name": "HTTP",
29 "port": 10088
30 }
31 ],
32 "volumeMounts": [
33 {
34 "volumnName": "bosv2vu04u433", #bos类型挂载
35 "mountPath": "/mnt/aihc_model_dir",
36 "readOnly": false
37 },
38 {
39 "volumnName": "pfse471xhc4", #pfs类型挂载
40 "mountPath": "/vllm-works/models",
41 "readOnly": false
42 }
43 ]
44 },
45 "status": {
46 "containerStatus": "Running",
47 "createdAt": 1745411851
48 }
49 }
50 ],
51 "instanceId": "s-r7d45dcffa0a-7ddffdd8db-sbrhh",
52 "status": {
53 "availableContainers": 1,
54 "createdAt": 1745411849,
55 "nodeIP": "10.0.7.38",
56 "podIP": "10.0.50.96",
57 "status": "Running",
58 "totalContainers": 1
59 }
60 }
61 ],
62 "requestId": "63df3394-3edd-4977-a5d4-0d0fd021a42d",
63 "service": {
64 "access": {
65 "aiGateway": {
66 "enableAuth": true,
67 "aigwId": "aigw-6akegg6n",
68 "aigwName": "tmp",
69 "protocol": "http",
70 "strategy": "round-robin",
71 "version": "v2"
72 },
73 "blbId": "",
74 "networkType": "aiGateway"
75 },
76 "containers": [
77 {
78 "command": [
79 "/bin/sh",
80 "-c",
81 "sleep inf"
82 ],
83 "cpus": 1,
84 "image": {
85 "imageUrl": "registry.baidubce.com/inference/vllm-openai:v0.8.3"
86 },
87 "memory": 2,
88 "name": "custom-container",
89 "ports": [
90 {
91 "name": "HTTP",
92 "port": 10088
93 }
94 ],
95 "volumeMounts": [
96 {
97 "volumnName": "bosv2vu04u433", #bos类型挂载
98 "mountPath": "/mnt/aihc_model_dir",
99 "readOnly": false
100 },
101 {
102 "volumnName": "pfse471xhc4", #pfs类型挂载
103 "mountPath": "/vllm-works/models",
104 "readOnly": false
105 }
106 ]
107 }
108 ],
109 "deploy": {
110 "canaryStrategy": {
111 "maxSurge": 25,
112 "maxUnavailable": 25
113 },
114 "schedule": {
115 "priority": "high"
116 }
117 },
118 "hpa": {},
119 "instanceCount": 1,
120 "log": {},
121 "misc": {
122 "gracePeriodSec": 30,
123 "podAnnotations": {
124 "prometheus.io/scrape": "false"
125 },
126 "podLabels": {
127 "scheduling.volcano.sh/group-min-member": "1"
128 }
129 },
130 "name": "openapi-test-4",
131 "resourcePool": {
132 "queueName": "default",
133 "resourcePoolId": "cce-7t7mqjci",
134 "resourcePoolName": "aihc-pom"
135 },
136 "storage": { // 存储挂载
137 "shmSize": 7,
138 "volumns": [
139 {
140 "volumeType": "bos", #bos类型挂载
141 "volumnName": "bosv2vu04u433",
142 "pfs": null,
143 "hostpath": {
144 "sourcePath": ""
145 },
146 "dataset": {},
147 "bos": {
148 "secret": {
149 "name": "",
150 "namespace": "aihc-pom"
151 },
152 "sourcePath": "aihc-models-bj/Qwen/Qwen3-0.6B-FP8", #bos的源路径
153 }
154 },
155 {
156 "volumeType": "pfs", #pfs类型挂载
157 "volumnName": "pfse471xhc4",
158 "pfs": {
159 "instanceId": "pfs-DjKrQp",
160 "instanceType": "",
161 "hostMountPath": "",
162 "mountTargetId": null,
163 "clusterIP": "",
164 "clientID": "pfs-DjKrQp",
165 "clusterPort": "",
166 "sourcePath": "/mnt/model" #pfs的源路径
167 },
168 "hostpath": {
169 "sourcePath": ""
170 },
171 "dataset": {}
172 }
173 ]
174 }
175 },
176 "status": {
177 "accessIPs": {
178 "external": "120.48.101.59",
179 "internal": "10.0.7.54"
180 },
181 "accessPorts": [
182 {
183 "containerPort": 10088,
184 "name": "HTTP",
185 "servicePort": 10088
186 }
187 ],
188 "aiGateway": {
189 "basePath": "/s-r2678fdf80f2/",
190 "tokens": {
191 "serveless": "Bearer 6a8eb902-c894be1e2f4b-8b7a4475aeaa",
192 "servelessId": "cs-VR3mwFBMhYE5"
193 }
194 },
195 "blbShortId": "",
196 "briefStat": {
197 "availableIns": 1,
198 "status": 2,
199 "totalIns": 1
200 }
201 },
202 "updatedAt": 1745411842
203}
评价此篇文章
