基本信息

Action:/qai/aicp/notebooks/namespaces/{namespace}/notebooks/set_stop_time

Method: POST

Content-Type:application/json

请求参数

参数 类型 描述 是否必须

namespance

string

命名空间。

yes

uuid

string

容器实例 ID。

yes

stop_time

string

停止运行时间。

yes

响应参数

此接口包含的公共响应参数,可参见前文内容,其他参数介绍如下:

参数 类型 描述

data

object

核心数据对象

data.kuid

string

用户唯一标识符 (UUID格式)

data.status

string

当前实例状态

data.reason

string

状态变更原因说明

data.user_id

string

用户 ID

data.root_user_id

string

根用户 ID (主账号)

data.created_at

string(date-time)

实例创建时间

data.updated_at

string(date-time)

实例最后更新时间

data.namespace

string

资源所属命名空间

data.image

string

使用的镜像名称

data.image_type

string

镜像类型标识

data.name

string

实例名称

data.server_type

string

服务器规格类型

data.envs

array<object>

环境变量配置数组

data.stop_time

string(date-time)

计划停止时间

data.auto_delete_time

string(date-time)

自动删除时间

data.uuid

string

实例唯一标识符

data.server

string

服务器连接信息

data.pip

string

pip 包管理配置

data.conda

string

conda 环境配置

data.apt

string

apt 软件包配置

请求示例

curl -X 'POST' \
  'https://ai.coreshub.cn/qai/aicp/notebooks/namespaces/usr-5HY8cxxx/notebooks/set_stop_time' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "uuid": "string",
  "stop_time": "2025-04-08T08:30:07.334Z"
}'

响应示例

{
  "ret_code": 0,
  "message": "success",
  "meta": {
    "X_REQUEST_ID": "string",
    "X_REQUEST_USER": "string"
  },
  "data": {
    "kuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "status": "string",
    "reason": "string",
    "user_id": "string",
    "root_user_id": "",
    "created_at": "2025-04-08T08:27:10.095Z",
    "updated_at": "2025-04-08T08:27:10.095Z",
    "namespace": "string",
    "image": "string",
    "image_type": "string",
    "name": "容器实例",
    "server_type": "jupyter",
    "envs": [],
    "stop_time": "2025-04-08T08:27:10.095Z",
    "auto_delete_time": "2025-04-08T08:27:10.095Z",
    "uuid": "string",
    "server": "string",
    "pip": "string",
    "conda": "string",
    "apt": "string"
  }
}