查询开发机详情
更新时间:2026-03-13
接口描述
查询开发机详情。
请求结构
Plain Text
1GET ?action=DescribeDevInstance&devInstanceId=dv-343423e3
2HTTP/1.1
3Host:aihc.bj.baidubce.com
4version: v2
5Authorization:authorization string
请求头域
除公共头域外,无其它特殊头域。
请求参数
| 参数名 | 参数类型 | 是否必须 | 参数位置 | 参数说明 |
|---|---|---|---|---|
| devInstanceId | String | 是 | Query参数 | 操作对象 |
返回头域
除公共头域,无其它特殊头域。
返回参数
| 参数名称 | 类型 | 说明 |
|---|---|---|
| requestId | string | 请求唯一标识 |
| devInstance | DevInstanceDetail | 开发机详情 |
请求示例
Plain Text
1GET ?action=DescribeDevInstance&devInstanceId=dv-343423e3
2HTTP/1.1
3Host:aihc.bj.baidubce.com
4version: v2
5Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2024-08-11T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
返回示例
Plain Text
1{
2 "devInstance": {
3 "accountId": "eca97e148cb74e9683d7b7240829d1ff",
4 "conf": {
5 "access": {
6 "blbId": "lb-3f002c91",
7 "portInfo": [],
8 "sshEnable": true,
9 "sshRSAPubKey": "xxx"
10 },
11 "image": {
12 "imageType": 0,
13 "imageUrl": "registry.baidubce.com/inference/aibox-ubuntu:v2.0-22.04",
14 "password": "",
15 "username": ""
16 },
17 "resourcePool": {
18 "queueName": "default",
19 "resourcePoolId": "cce-i8zab7dh",
20 "resourcePoolName": "bjtest-regress-no-delete-songmingming01",
21 "resourcePoolType": ""
22 },
23 "resources": {
24 "acceleratorCount": 0,
25 "acceleratorType": "",
26 "cpus": 1,
27 "memory": 2,
28 "shmSize": 0
29 },
30 "scheduleConf": {
31 "cpuNodeAffinity": true,
32 "priority": "high"
33 },
34 "updatedAt": 0,
35 "startCmd": "",
36 "workspaceDir": "$HOME/workspace",
37 "envs": {
38 "abc": "123",
39 "cde": "456"
40 },
41 "volumnConfs": [
42 {
43 "bos": null,
44 "cds": {
45 "capacity": 100
46 },
47 "cfs": null,
48 "dataset": null,
49 "mountPath": "/.rootfs",
50 "pfs": null,
51 "readOnly": true,
52 "volumnType": "cds"
53 }
54 ]
55 },
56 "createdAt": 1747876700,
57 "creator": "dingjiachen",
58 "creatorId": "1ac3b20c495f47f59ad18d0615805ac7",
59 "id": "dv-64706ff6",
60 "loginInfo": {
61 "jupyter": {
62 "url": "https://console.bce.baidu.com/api/aihcbox/gray/proxy/v1/webide/dv-64706ff6/bj/jupyter"
63 },
64 "vscode": {
65 "url": "https://console.bce.baidu.com/api/aihcbox/gray/proxy/v1/webide/dv-64706ff6/bj/vscode"
66 }
67 },
68 "name": "dingtest-openapi",
69 "notify": {
70 "isOpen": false,
71 "notifyRuleId": ""
72 },
73 "isPublicMgmt": false,
74 "region": "bj",
75 "serviceInstanceInfo": {
76 "cdsInstanceId": "v-sgvDsFW1",
77 "internalIP": "192.168.0.71",
78 "nodeIP": "192.168.15.186",
79 "podName": "aibox-r7b1d3715728-7bdd7cdfbd-xlhjd",
80 "publicIP": "120.48.54.166",
81 "serviceInstanceId": "aibox-r7b1d3715728"
82 },
83 "status": 2,
84 "statusReason": "",
85 "updatedAt": 1747906751,
86 "version": "v3",
87 "visibleScope": {
88 "type": 1
89 }
90 },
91 "requestId": "4c515c3f-3e5d-4524-b4db-2551b298fea6"
92}
