获取实例组列表
更新时间:2025-05-26
接口描述
获取实例组列表
请求结构
Bash
1GET ?action=DescribeServicePodGroups&serviceId=serviceId
2HTTP/1.1
3Host:aihc.bj.baidubce.com
4version: v2
5Authorization:authorization string
请求头域
除公共头域外,无其它特殊头域。
请求参数
参数名 | 参数类型 | 参数位置 | 是否必须 | 参数说明 |
---|---|---|---|---|
serviceId | String | Query参数 | 是 | 服务id |
返回头域
除公共头域,无其它特殊头域。
返回参数
参数名称 | 类型 | 说明 |
---|---|---|
requestId | String | 请求唯一标识 |
resourcePoolId | String | 资源池ID |
resourcePoolName | String | 资源池名称 |
queueName | String | 队列 |
servicePodGroups | List<InsGroupStatus> | 服务实例组列表 |
请求示例
Bash
1GET ?action=DescribeServicePodGroups&serviceId=s-f9c14dcf3da2
2HTTP/1.1
3Host:aihc.bj.baidubce.com
4version: v2
5Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2024-08-11T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
返回示例
Bash
1HTTP/1.1 200 OK
2x-bce-request-id: 1214cca7-4ad5-451d-9215-71cb844c0a50
3Date:Thu,
424 Apr 2025 15: 37: 44 GMT
5Content-Type: application/json;charset=UTF-8
6Server:Service
7{
8 "queueName": "default",
9 "requestId": "7edcaa5e-bbd8-46c9-bf3e-7bf77f3e4ecc",
10 "resourcePoolId": "cce-7t7mqjci",
11 "resourcePoolName": "aihc-pom",
12 "servicePodGroups": [
13 {
14 "availablePods": 2,
15 "createdAt": 1745465590,
16 "id": "s-f9c14dcf3da2-595b6bcc54-7jms9",
17 "masters": [
18 {
19 "containers": [
20 {
21 "container": {
22 "command": [
23 "/bin/sh",
24 "-c",
25 "sleep inf"
26 ],
27 "cpus": 1,
28 "image": {
29 "imageUrl": "registry.baidubce.com/inference/vllm-openai:v0.8.3"
30 },
31 "memory": 2,
32 "name": "custom-container",
33 "ports": [
34 {
35 "name": "HTTP",
36 "port": 10089
37 }
38 ]
39 },
40 "status": {
41 "containerStatus": "Running",
42 "createdAt": 1745465654
43 }
44 }
45 ],
46 "instanceId": "s-f9c14dcf3da2-595b6bcc54-7jms9-0",
47 "status": {
48 "availableContainers": 1,
49 "createdAt": 1745465590,
50 "nodeIP": "10.0.7.38",
51 "podIP": "10.0.50.97",
52 "status": "Running",
53 "totalContainers": 1
54 }
55 }
56 ],
57 "status": "Running",
58 "totalPods": 2,
59 "workers": [
60 {
61 "containers": [
62 {
63 "container": {
64 "command": [
65 "/bin/sh",
66 "-c",
67 "sleep inf"
68 ],
69 "cpus": 1,
70 "image": {
71 "imageUrl": "registry.baidubce.com/inference/vllm-openai:v0.8.3"
72 },
73 "memory": 2,
74 "name": "custom-container",
75 "ports": [
76 {
77 "name": "HTTP",
78 "port": 10089
79 }
80 ]
81 },
82 "status": {
83 "containerStatus": "Running",
84 "createdAt": 1745465672
85 }
86 }
87 ],
88 "instanceId": "s-f9c14dcf3da2-595b6bcc54-7jms9-1",
89 "status": {
90 "availableContainers": 1,
91 "createdAt": 1745465590,
92 "nodeIP": "10.0.7.38",
93 "podIP": "10.0.50.129",
94 "status": "Running",
95 "totalContainers": 1
96 }
97 }
98 ]
99 }
100 ]
101}