查询快照 | 大装置帮助中心
跳到主要内容

查询快照

GET https://sandbox.cn-sh-01.sensecoreapi.cn/studio/sandbox/v1/workspaces/{workspace_id}/snapshots/{snapshot_id}

请求头(Request Header)

请求参数(Request Parameters)

名称类型必须位置描述
workspace_idstringpath工作空间 ID
snapshot_idstringpath快照 ID

响应(Response)

异常情况请参考异常响应说明

名称类型描述
workspace_idstring工作空间ID
idstring快照ID
namestring快照名称
descriptionstring快照描述
imageobject快照所用镜像信息
resource_limitsobject资源规格设置
commandstring启动命令
creatorstring创建者
updatorstring更新者
create_timestring创建时间
update_timestring更新时间

其中,image的参数如下:

名称类型描述
idstring镜像ID
namestring镜像名称
typestring镜像类型,IMAGE_TYPE_BUILT_IN为预置镜像
descriptionstring镜像描述
repositorystring镜像仓库地址
create_timestring镜像创建时间
update_timestring镜像更新时间

其中,resource_limits的参数如下:

名称类型描述
cpuintegercpu核数,最小为1核
memoryinteger内存规格,单位GiB,最小为1GiB
storageinteger存储规格,单位GiB,最小为1GiB

响应示例(Response Example)

  • 正常响应
{
"workspace_id": "string",
"id": "string",
"name": "string",
"description": "string",
"image": {
"id": "string",
"name": "string",
"type": "IMAGE_TYPE_BUILT_IN",
"description": "string",
"repository": "string",
"create_time": "2025-08-26T14:45:52.153Z",
"update_time": "2025-08-26T14:45:52.153Z"
},
"resource_limits": {
"cpu": 0,
"memory": 0,
"storage": 0
},
"command": "string",
"creator": "string",
"updator": "string",
"create_time": "2025-08-26T14:45:52.153Z",
"update_time": "2025-08-26T14:45:52.153Z"