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

查询快照列表

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

请求头(Request Header)

请求参数(Request Parameters)

名称类型必须位置描述
workspace_idstringpath工作空间 ID,获取方式可以参考快速开始
filterstringquery过滤条件
order_bystringquery排序
page_sizeintegerquery每页条数
page_tokenstringquery翻页 token

响应(Response)

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

字段类型描述
snapshotsarray[object]快照列表
next_page_tokenstring下一页 token
total_sizeinteger总记录数

其中snapshots的参数如下:

名称类型描述
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)

  • 正常响应
{
"snapshots": [
{
"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:40:12.875Z",
"update_time": "2025-08-26T14:40:12.875Z"
},
"resource_limits": {
"cpu": 0,
"memory": 0,
"storage": 0
},
"command": "string",
"creator": "string",
"updator": "string",
"create_time": "2025-08-26T14:40:12.875Z",
"update_time": "2025-08-26T14:40:12.875Z"
}
],
"next_page_token": "string",
"total_size": 0
}