查询服务详情
更新时间:2025-05-26
接口描述
查询服务详情信息。
请求结构
                Bash
                
            
            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 | 
请求示例
                Bash
                
            
            1GET ?action=DescribeService&serviceId=s-r7d45dcffa0a
2HTTP/1.1
3Host:aihc.bj.baidubce.com
4version: v2
5Authorization:authorization string 返回示例
f返回server:Service
                Bash
                
            
            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                    },
33                    "status": {
34                        "containerStatus": "Running",
35                        "createdAt": 1745411851
36                    }
37                }
38            ],
39            "instanceId": "s-r7d45dcffa0a-7ddffdd8db-sbrhh",
40            "status": {
41                "availableContainers": 1,
42                "createdAt": 1745411849,
43                "nodeIP": "10.0.7.38",
44                "podIP": "10.0.50.96",
45                "status": "Running",
46                "totalContainers": 1
47            }
48        }
49    ],
50    "requestId": "63df3394-3edd-4977-a5d4-0d0fd021a42d",
51    "service": {
52        "access": {
53            "aiGateway": {
54                "enableAuth": true
55            },
56            "networkType": "aiGateway"
57        },
58        "containers": [
59            {
60                "command": [
61                    "/bin/sh",
62                    "-c",
63                    "sleep inf"
64                ],
65                "cpus": 1,
66                "image": {
67                    "imageUrl": "registry.baidubce.com/inference/vllm-openai:v0.8.3"
68                },
69                "memory": 2,
70                "name": "custom-container",
71                "ports": [
72                    {
73                        "name": "HTTP",
74                        "port": 10088
75                    }
76                ]
77            }
78        ],
79        "deploy": {
80            "canaryStrategy": {
81                "maxSurge": 25,
82                "maxUnavailable": 25
83            },
84            "schedule": {
85                "priority": "high"
86            }
87        },
88        "hpa": {},
89        "instanceCount": 1,
90        "log": {},
91        "misc": {
92            "gracePeriodSec": 30,
93            "podAnnotations": {
94                "prometheus.io/scrape": "false"
95            },
96            "podLabels": {
97                "scheduling.volcano.sh/group-min-member": "1"
98            }
99        },
100        "name": "openapi-test-4",
101        "resourcePool": {
102            "queueName": "default",
103            "resourcePoolId": "cce-7t7mqjci",
104            "resourcePoolName": "aihc-pom"
105        },
106        "storage": {}
107    },
108    "status": {
109        "accessIPs": {
110            "internal": "10.0.7.54"
111        },
112        "accessPorts": [
113            {
114                "containerPort": 10088,
115                "name": "HTTP",
116                "servicePort": 10088
117            }
118        ],
119        "briefStat": {
120            "availableIns": 1,
121            "status": 2,
122            "totalIns": 1
123        }
124    },
125    "updatedAt": 1745411842
126}