拉取服务pod列表
更新时间:2025-05-26
接口描述
拉取服务pod列表
请求结构
Bash
1GET ?action=DescribeServicePods&serviceId=serviceId
2HTTP/1.1
3Host:aihc.bj.baidubce.com
4version: v2
5Authorization:authorization string
请求头域
除公共头域外,无其它特殊头域。
请求参数
参数名 | 参数类型 | 是否必须 | 参数位置 | 参数说明 |
---|---|---|---|---|
serviceId | String | 是 | Query参数 | 操作对象 |
返回头域
除公共头域,无其它特殊头域。
返回参数
参数名称 | 类型 | 说明 |
---|---|---|
requestId | String | 请求唯一标识 |
pods | List<InsInfo> | 实例列表 |
请求示例
Bash
1GET ?action=DescribeServicePods&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: 27: 43 GMT
5Content-Type: application/json;charset=UTF-8
6Server: Service
7{
8 "pods": [
9 {
10 "containers": [
11 {
12 "container": {
13 "command": [
14 "/bin/sh",
15 "-c",
16 "sleep inf"
17 ],
18 "cpus": 1,
19 "image": {
20 "imageUrl": "registry.baidubce.com/inference/vllm-openai:v0.8.3"
21 },
22 "memory": 2,
23 "name": "custom-container",
24 "ports": [
25 {
26 "name": "HTTP",
27 "port": 10089
28 }
29 ]
30 },
31 "status": {
32 "containerStatus": "Running",
33 "createdAt": 1745465654
34 }
35 }
36 ],
37 "instanceId": "s-f9c14dcf3da2-595b6bcc54-7jms9-0",
38 "status": {
39 "availableContainers": 1,
40 "createdAt": 1745465590,
41 "nodeIP": "10.0.7.38",
42 "podIP": "10.0.50.97",
43 "status": "Running",
44 "totalContainers": 1
45 }
46 },
47 {
48 "containers": [
49 {
50 "container": {
51 "command": [
52 "/bin/sh",
53 "-c",
54 "sleep inf"
55 ],
56 "cpus": 1,
57 "image": {
58 "imageUrl": "registry.baidubce.com/inference/vllm-openai:v0.8.3"
59 },
60 "memory": 2,
61 "name": "custom-container",
62 "ports": [
63 {
64 "name": "HTTP",
65 "port": 10089
66 }
67 ]
68 },
69 "status": {
70 "containerStatus": "Running",
71 "createdAt": 1745465672
72 }
73 }
74 ],
75 "instanceId": "s-f9c14dcf3da2-595b6bcc54-7jms9-1",
76 "status": {
77 "availableContainers": 1,
78 "createdAt": 1745465590,
79 "nodeIP": "10.0.7.38",
80 "podIP": "10.0.50.129",
81 "status": "Running",
82 "totalContainers": 1
83 }
84 }
85 ],
86 "requestId": "f639e7a2-e596-4bee-97bb-9e27b265155d"
87}