获取单个开发机详情
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。
参数 | 类型 | 是否必填 | 示例值 | 描述 |
|---|---|---|---|---|
Action | String | 是 | GetDevInstance | 要执行的操作,取值:GetDevInstance。 |
Version | String | 是 | 2024-07-01 | API的版本,取值:2024-07-01。 |
Id | String | 是 | . | 开发机 ID |
下表仅列出本接口特有的返回参数。更多信息请参见返回结构。
参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
Id | String | . | 开发机 ID |
Name | String | . | 开发机名称 |
Description | String | . | 描述 |
Image | Object | . | 镜像 |
ResourceQueueId | String | . | 队列 ID |
SshPublicKey | String | . | Ssh 公钥 |
Volume | Object | . | 云盘 |
Status | Object | . | 开发机状态,排队中:Pending,部署中:Deploying,运行中:Running,关机中:Stopping,已关机,Stopped,删除中:Deleting,异常:Abnormal,创建失败:Failed,升级中:Upgrading |
CreatorTrn | String | . | 创建者信息 |
AllowImageBuild | Boolean | . | 是否可以使用保存镜像功能 |
IsBuildingImage | Boolean | . | 是否正在构建镜像 |
CreateTime | String | . | 创建时间 |
UpdateTime | String | . | 更新时间 |
LaunchTime | String | . | 启动时间 |
ExpectedStopTime | String | . | 自动关机时间 |
StopTime | String | . | 触发关机时间 |
StoppedTime | String | . | 最近一次关机时间 |
Ports | Array of Object | . | 端口配置 |
ResourceClaim | Object | . | 自定义资源配置 |
Storages | Array of Object | . | 共享文件系统 |
NodeAffinitySpec | Object | . | 负载隔离设置 |
ZoneID | String | . | 可用区 |
{ "Id": "di-20250414211045-*****" }
{ "AllowImageBuild": true, "CreateTime": "2025-03-28T07:27:05.263Z", "CreatorTrn": "trn:iam::21000*****:user/*****", "Description": "", "ExpectedStopTime": "", "Id": "di-20250414211045-*****", "Image": { "Type": "Preset", "Url": "vemlp-cn-beijing.cr.volces.com/preset-images/python:3.10" }, "IsBuildingImage": false, "LaunchTime": "", "Name": "开发机名称", "NodeAffinitySpec": {}, "Ports": [ { "APIGPrivateUrl": "https://*****.apigateway-cn-beijing-inner.volceapi.com/devinstance/di-20250414211045-*****-code-server/?folder=/root/code\u0026enable-get-requests=true\u0026password=*****", "EnablePublicNetworkAccess": false, "EniIp": "172.16.0.26", "EniPort": 10000, "Name": "WebIDE", "Status": { "State": "" }, "Type": "system" } ], "ResourceClaim": { "InstanceTypeId": "ml.c3i.16xlarge", "Type": "Preset", "ZoneId": "" }, "ResourceQueueId": "q-20250328120024-*****", "SshPublicKey": "", "Status": { "Message": "", "State": "Stopped" }, "StopTime": "2025-03-28T07:27:38.004Z", "StoppedTime": "2025-03-28T07:29:39Z", "UpdateTime": "", "Volume": { "Id": "vol-3w9ofkkcde3hhx0*****", "Size": 20, "Status": null, "VolumeTypeId": "ml.essd.pl0" }, "ZoneID": "" }
您可访问公共错误码,获取更多错误码信息。