huawei-cloud-modelarts-notebook-management

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Huawei Cloud ModelArts Notebook Management

华为云ModelArts Notebook管理

Full lifecycle management for ModelArts Notebook instances via hcloud CLI — 31 API interfaces across 7 functional domains.

通过hcloud CLI实现ModelArts Notebook实例的全生命周期管理——覆盖7个功能域的31个API接口。

Overview

概述

This skill enables users to manage Huawei Cloud ModelArts Notebook instances through the
hcloud
CLI. It covers the complete notebook lifecycle including instance CRUD, start/stop, lease renewal, tag management, image management, flavor/cluster queries, feature queries, and dynamic storage management.
本skill支持用户通过
hcloud
CLI管理华为云ModelArts Notebook实例,涵盖Notebook的完整生命周期管理,包括实例的CRUD(创建/读取/更新/删除)、启动/停止、租期续费、标签管理、镜像管理、规格/集群查询、特性查询以及动态存储管理。

Architecture

架构

User Request → Agent → hcloud ModelArts <Operation> --cli-region={region} [--params] → Huawei Cloud ModelArts API
User Request → Agent → hcloud ModelArts <Operation> --cli-region={region} [--params] → Huawei Cloud ModelArts API

Applicable Scenarios

适用场景

  • Daily Operations: List notebooks, check status, view details, query flavors
  • Instance Lifecycle: Create, start, stop, update, delete notebook instances
  • Image Management: Save running instance as image, register/list/delete/sync custom images
  • Storage Management: Dynamically attach/detach storage to notebook instances
  • Lease Management: Query and renew notebook leases
  • Tag Management: Create, delete, query notebook tags
  • 日常运维:列出Notebook、检查状态、查看详情、查询规格
  • 实例生命周期:创建、启动、停止、更新、删除Notebook实例
  • 镜像管理:将运行中实例保存为镜像、注册/列出/删除/同步自定义镜像
  • 存储管理:为Notebook实例动态挂载/卸载存储
  • 租期管理:查询和续费Notebook租期
  • 标签管理:创建、删除、查询Notebook标签

Scope

范围

本 skill 仅支持 ModelArts Notebook 实例管理(31 个 API),涵盖上述 7 个功能域。
不支持以下 ModelArts 能力,相关请求请使用对应 skill:
  • 推理服务(在线服务、批量服务)— 使用推理服务管理 skill
  • DevServer(开发环境)— 使用 DevServer 管理 skill
  • 模型管理(导入/导出/发布模型)— 使用模型管理 skill
  • 训练作业(创建/管理训练任务)— 使用训练作业管理 skill
  • 自动搜索、超参调优 — 使用自动搜索 skill

本skill 仅支持 ModelArts Notebook实例管理(31个API),涵盖上述7个功能域。
不支持以下ModelArts能力,相关请求请使用对应skill:
  • 推理服务(在线服务、批量服务)— 使用推理服务管理skill
  • DevServer(开发环境)— 使用DevServer管理skill
  • 模型管理(导入/导出/发布模型)— 使用模型管理skill
  • 训练作业(创建/管理训练任务)— 使用训练作业管理skill
  • 自动搜索、超参调优 — 使用自动搜索skill

Prerequisites

前提条件

  1. hcloud CLI installed and authenticated — Reference: https://support.huaweicloud.com/qs-hcli/hcli_02_003.html
  2. Huawei Cloud AK/SK configured via hcloud (see Security & Credential Check below)
  3. ModelArts service enabled in the target region
  4. IAM permissions — See references/iam-policies.md
  1. 已安装并认证hcloud CLI — 参考文档:https://support.huaweicloud.com/qs-hcli/hcli_02_003.html
  2. 已通过hcloud配置华为云AK/SK(详见下方安全与凭证检查)
  3. 目标区域已启用ModelArts服务
  4. 具备IAM权限 — 参见references/iam-policies.md

Security & Credential Check

安全与凭证检查

⚠️ CRITICAL: This section defines the agent's security boundary. Follow it strictly.
⚠️ 重要:本章节定义了Agent的安全边界,请严格遵守。

🔒 Security Rules (MANDATORY)

🔒 安全规则(强制要求)

  • 🚫 NEVER read, echo, or print AK/SK values (e.g.,
    cat ~/.hcloud/config.json
    ,
    echo $HW_ACCESS_KEY
    is FORBIDDEN)
  • 🚫 NEVER read or cat credential files such as
    ~/.hcloud/config.json
    or any file that may contain secrets
  • 🚫 NEVER ask the user to input AK/SK directly in the conversation or command line
  • 🚫 NEVER execute
    hcloud configure set --cli-access-key=... --cli-secret-key=...
    — credential configuration is the user's responsibility, done outside the agent session
  • 🚫 NEVER pass
    --cli-access-key
    /
    --cli-secret-key
    on every API call — they will be exposed in process listings (
    ps aux
    ) for the entire request duration
  • ALWAYS use
    hcloud configure list
    to check credential status (presence check only, not values)
  • ✅ If no valid profile exists, STOP and instruct the user to configure credentials outside this session
  • Recommend using IAM user with minimal permissions instead of main account
  • 🚫 禁止读取、回显或打印AK/SK值(例如
    cat ~/.hcloud/config.json
    echo $HW_ACCESS_KEY
    均为禁止操作)
  • 🚫 禁止读取或显示凭证文件,如
    ~/.hcloud/config.json
    或任何可能包含密钥的文件
  • 🚫 禁止要求用户在对话或命令行中直接输入AK/SK
  • 🚫 禁止执行
    hcloud configure set --cli-access-key=... --cli-secret-key=...
    — 凭证配置是用户的责任,需在Agent会话外完成
  • 🚫 禁止每次API调用中传递
    --cli-access-key
    /
    --cli-secret-key
    — 这些参数会在请求全程暴露于进程列表(
    ps aux
    )中
  • 必须使用
    hcloud configure list
    检查凭证状态(仅检查是否存在,不查看具体值)
  • ✅ 如果没有有效配置文件,立即停止并指导用户在本会话外配置凭证
  • 推荐使用权限最小化的IAM用户而非主账号

✅ Agent Credential Check (the ONLY acceptable check)

✅ Agent凭证检查(唯一可接受的检查方式)

bash
undefined
bash
undefined

Step 1: Check credential status — presence only, not values

步骤1:检查凭证状态 — 仅确认存在性,不查看具体值

hcloud configure list

- ✅ **Expected**: Shows a valid profile with `mode: AKSK`
- ❌ **If empty/invalid** → Guide the user with the 3-step process below:

  **Step-by-step guidance (copy-paste for the user):**

  > *"No valid credentials found. Please follow these 3 steps in your terminal:"*
  >
  > **① Get your AK/SK**
  > Log in to [Huawei Cloud Console](https://console.huaweicloud.com) → IAM → Access Keys. If you don't have one, click "Create Access Key" and save it securely.
  >
  > **② Run this in your terminal (one-time setup):**
  > ```bash
  > hcloud configure set --cli-access-key=<YOUR_AK> --cli-secret-key=<YOUR_SK>
  > ```
  > *(Replace `<YOUR_AK>` and `<YOUR_SK>` with the values from step ①)*
  >
  > **③ Come back and tell me "configured"**, I'll verify it works.
  >
  > *Note: The `configure set` command stores your credentials in `~/.hcloud/config.json`. After that, all hcloud commands use them automatically — no need to pass AK/SK again.*
  >
  > *Agent: DO NOT execute any `configure set` command yourself.*
hcloud configure list

- ✅ **预期结果**:显示一个有效的配置文件,`mode: AKSK`
- ❌ **若为空/无效** → 按以下3步引导用户:

  **分步指引(可直接复制给用户):**

  > *"未找到有效凭证,请在终端中执行以下3步操作:"*
  >
  > **① 获取AK/SK**
  > 登录[华为云控制台](https://console.huaweicloud.com) → IAM → 访问密钥。若没有密钥,点击"创建访问密钥"并安全保存。
  >
  > **② 在终端中执行以下命令(仅需配置一次):**
  > ```bash
  > hcloud configure set --cli-access-key=<YOUR_AK> --cli-secret-key=<YOUR_SK>
  > ```
  > *(将`<YOUR_AK>`和`<YOUR_SK>`替换为步骤①中获取的值)*
  >
  > **③ 配置完成后告知我"已配置",我会验证是否生效。**
  >
  > *注意:`configure set`命令会将凭证存储在`~/.hcloud/config.json`中。之后所有hcloud命令都会自动使用该凭证,无需再次传递AK/SK。*
  >
  > *Agent注意:请勿自行执行任何`configure set`命令。*

🔧 User's Responsibility (for documentation, NOT agent execution)

🔧 用户责任(仅用于文档说明,Agent无需执行)

The user configures credentials outside the agent session (in their own terminal):
bash
undefined
用户需在Agent会话外(自己的终端中)配置凭证:
bash
undefined

One-time setup — run this in your terminal, NOT in the agent chat

仅需配置一次 — 在你的终端中执行,不要在Agent聊天框中执行

HISTCONTROL=ignorespace hcloud configure set --cli-access-key=<YOUR_AK> --cli-secret-key=<YOUR_SK>

> ⚠️ **Note**: hcloud CLI does **NOT** read `HW_ACCESS_KEY`/`HW_SECRET_KEY` environment variables (those are for Python SDK only). `hcloud configure set` is the only supported credential configuration method.

---
HISTCONTROL=ignorespace hcloud configure set --cli-access-key=<YOUR_AK> --cli-secret-key=<YOUR_SK>

> ⚠️ **注意**:hcloud CLI **不支持**读取`HW_ACCESS_KEY`/`HW_SECRET_KEY`环境变量(这些变量仅适用于Python SDK)。唯一支持的凭证配置方式是`hcloud configure set`。

---

Workflow

工作流程

Step 1: Identify the Operation

步骤1:确定操作类型

Determine which notebook operation the user needs based on their request:
User IntentOperation Category
Create/list/view/update/delete/start/stop notebookInstance Management
Query/renew leaseLease Management
Create/delete/query tagsTag Management
Save/register/list/delete/sync imageImage Management
Query flavors/clusters/featuresFlavor & Cluster
Attach/detach/list storageDynamic Storage
根据用户请求确定所需的Notebook操作:
用户意图操作类别
创建/列出/查看/更新/删除/启动/停止Notebook实例管理
查询/续费租期租期管理
创建/删除/查询标签标签管理
保存/注册/列出/删除/同步镜像镜像管理
查询规格/集群/特性规格与集群
挂载/卸载/列出存储动态存储

Step 2: Execute CLI Command

步骤2:执行CLI命令

bash
hcloud ModelArts <Operation> --cli-region={region} [--key=value ...]
{region}
must be replaced with the actual region, e.g.,
cn-north-4
. Do NOT hardcode the region.
bash
hcloud ModelArts <Operation> --cli-region={region} [--key=value ...]
{region}
必须替换为实际区域,例如
cn-north-4
,请勿硬编码区域。

Step 2.5: Consult Known Issues (Write Operations Only)

步骤2.5:查阅已知问题(仅写入操作)

Before executing any write operation, read references/known-issues.md and check for known pitfalls, parameter corrections, and required workarounds for the target API.
Common workarounds to apply:
APIIssueWorkaround
CreateNotebook (EVS)CLI rejects
--volume.category=EVS
Use
--cli-jsonInput
with
{"body":{...}}
wrapper + explicit
--project_id
CreateNotebookParam name
flavor_id
wrong
Use
--flavor
CreateNotebookParam name
volume.size
wrong
Use
--volume.capacity
CreateNotebook
ownership=PRIVATE
invalid
Use
MANAGED
or
DEDICATED
AttachDynamicStorageSTOPPED instance rejectedEnsure instance is
RUNNING
AttachDynamicStorage
mount_path
format
Must start with
/data/
and end with
/
RegisterImage
arch
case mismatch
Use uppercase
X86_64
/
AARCH64
RenewLease
type
case mismatch
Use lowercase
timing
/
idle
This step is mandatory for all write operations. Skipping it may result in CLI parameter errors or API failures that are already documented.
在执行任何写入操作前,请阅读references/known-issues.md,检查目标API的已知问题、参数修正方案及所需的解决方法。
常见解决方法:
API问题解决方法
CreateNotebook (EVS)CLI拒绝
--volume.category=EVS
参数
使用
--cli-jsonInput
并包裹
{"body":{...}}
+ 显式传递
--project_id
CreateNotebook参数名
flavor_id
错误
使用
--flavor
CreateNotebook参数名
volume.size
错误
使用
--volume.capacity
CreateNotebook
ownership=PRIVATE
无效
使用
MANAGED
DEDICATED
AttachDynamicStorage拒绝已停止的实例确保实例处于
RUNNING
状态
AttachDynamicStorage
mount_path
格式要求
必须以
/data/
开头并以
/
结尾
RegisterImage
arch
大小写不匹配
使用大写
X86_64
/
AARCH64
RenewLease
type
大小写不匹配
使用小写
timing
/
idle
本步骤对所有写入操作强制要求。跳过此步骤可能会导致CLI参数错误或已记录的API调用失败。

Step 3: Handle Write Operations

步骤3:处理写入操作

For all write operations (Create/Update/Delete/Start/Stop/Attach/Detach/Register/Sync/Renew), prompt the user for confirmation before execution. For chargeable operations (CreateNotebook, StartNotebook), inquire BSS pricing first to inform the user of costs. See references/pricing-inquiry.md for the pricing inquiry workflow.
删除类操作交互指引:当用户请求删除标签(DeleteNotebookTags)、删除镜像分组(DeleteImageGroup)等操作但未指定具体对象时,必须先查询当前对象列表(如
ShowNotebookTags
/
ListImageGroup
),向用户展示并确认要删除哪个对象,确认后再执行。避免因上下文不明确导致误删。

对于所有写入操作(创建/更新/删除/启动/停止/挂载/卸载/注册/同步/续费),执行前需提示用户确认。对于收费操作(CreateNotebook、StartNotebook),需先查询BSS定价,告知用户成本。定价查询流程参见references/pricing-inquiry.md
删除类操作交互指引:当用户请求删除标签(DeleteNotebookTags)、删除镜像分组(DeleteImageGroup)等操作但未指定具体对象时,必须先查询当前对象列表(如
ShowNotebookTags
/
ListImageGroup
),向用户展示并确认要删除的对象,确认后再执行。避免因上下文不明确导致误删。

KooCLI Command Format Standard

KooCLI命令格式规范

bash
hcloud ModelArts <Operation> --cli-region={region} [--key=value ...]
FeatureDescriptionExample
Service nameFixed:
ModelArts
ModelArts
Operation namePascalCase
ListNotebooks
,
CreateNotebook
Region parameter
--cli-region={region}
--cli-region=cn-north-4
Simple parameter
--key=value
--id=xxx
Indexed parameter
--key.1=value1
--tags.1.key=env
project_idAuto-resolved if omittedUses configured project ID
Note:
--project_id
is auto-resolved from authentication credentials if omitted. Include it explicitly only when targeting a specific project.

bash
hcloud ModelArts <Operation> --cli-region={region} [--key=value ...]
特性说明示例
服务名称固定为
ModelArts
ModelArts
操作名称采用PascalCase命名
ListNotebooks
,
CreateNotebook
区域参数
--cli-region={region}
--cli-region=cn-north-4
简单参数
--key=value
--id=xxx
索引参数
--key.1=value1
--tags.1.key=env
project_id若省略则自动解析使用已配置的项目ID
注意:若省略
--project_id
,系统会从认证凭证中自动解析。仅当目标为特定项目时才需要显式传递。

Core Commands

核心命令

All 31 CLI command examples across 7 functional domains are documented in a separate reference file.
📖 For detailed command syntax, parameters, and examples, read references/cli-command-examples.md
7个功能域的全部31条CLI命令示例记录在单独的参考文档中。
📖 如需详细的命令语法、参数及示例,请阅读references/cli-command-examples.md

Quick Index

快速索引

#DomainAPIsKey Operations
1Instance Management8CreateNotebook, ListNotebooks, ListAllNotebooks, ShowNotebook, UpdateNotebook, DeleteNotebook, StartNotebook, StopNotebook
2Lease Management2ShowLease, RenewLease
3Tag Management3ShowNotebookTags, CreateNotebookTags, DeleteNotebookTags
4Image Management9CreateImage, ListImage, RegisterImage, ShowImage, DeleteImage, SyncImage, ListImageGroup, DeleteImageGroup, UpdateImageGroup
5Flavor and Cluster4ListFlavors, ShowSwitchableFlavors, ListAuthoringClusters, ShowCluster
6Feature Query1ListFeatures
7Dynamic Storage4ListDynamicStorages, AttachDynamicStorage, ShowDynamicStorage, DetachDynamicStorage
When executing any command, always refer to the reference file for exact parameter names, required/optional flags, and usage patterns.

#功能域APIs核心操作
1实例管理8CreateNotebook, ListNotebooks, ListAllNotebooks, ShowNotebook, UpdateNotebook, DeleteNotebook, StartNotebook, StopNotebook
2租期管理2ShowLease, RenewLease
3标签管理3ShowNotebookTags, CreateNotebookTags, DeleteNotebookTags
4镜像管理9CreateImage, ListImage, RegisterImage, ShowImage, DeleteImage, SyncImage, ListImageGroup, DeleteImageGroup, UpdateImageGroup
5规格与集群4ListFlavors, ShowSwitchableFlavors, ListAuthoringClusters, ShowCluster
6特性查询1ListFeatures
7动态存储4ListDynamicStorages, AttachDynamicStorage, ShowDynamicStorage, DetachDynamicStorage
执行任何命令时,请务必参考参考文档获取准确的参数名称、必填/可选标志及使用方式。

Parameter Confirmation

参数确认

ParameterRequiredDescriptionExample
{region}
YesHuawei Cloud region
cn-north-4
,
cn-east-3
{instance_id}
Yes (most ops)Notebook instance UUID
xxx-xxx-xxx
{image_id}
Create/ListImage UUID
xxx-xxx-xxx
{flavor_id}
CreateFlavor ID for instance
modelarts.bm.4xlarge.pro
{resource_id}
Tag opsResource ID for tagging
xxx-xxx-xxx
{cluster_id}
ShowClusterCluster ID
xxx-xxx-xxx
{storage_id}
Storage opsStorage ID
xxx-xxx-xxx
{feature}
ListFeaturesFeature name
NOTEBOOK
{project_id}
No (auto)Project ID, auto-resolved if omittedOmit for default

参数是否必填说明示例
{region}
华为云区域
cn-north-4
,
cn-east-3
{instance_id}
是(多数操作)Notebook实例UUID
xxx-xxx-xxx
{image_id}
创建/列出操作镜像UUID
xxx-xxx-xxx
{flavor_id}
创建操作实例规格ID
modelarts.bm.4xlarge.pro
{resource_id}
标签操作用于打标签的资源ID
xxx-xxx-xxx
{cluster_id}
查看集群操作集群ID
xxx-xxx-xxx
{storage_id}
存储操作存储ID
xxx-xxx-xxx
{feature}
特性查询操作特性名称
NOTEBOOK
{project_id}
否(自动解析)项目ID,省略则自动解析默认省略

SDK Fallback

SDK fallback方案

If a CLI operation fails due to a CLI bug, fall back to SDK:
python
from huaweicloudsdkcore.auth.credentials import BasicCredentials
from huaweicloudsdkmodelarts.v1.modelarts_client import ModelArtsClient
from huaweicloudsdkmodelarts.v1.region.modelarts_region import ModelArtsRegion

credentials = BasicCredentials(ak="{AK}", sk="{SK}", project_id="{project_id}")
client = ModelArtsClient.new_builder() \
    .with_credentials(credentials) \
    .with_region(ModelArtsRegion.value_of("{region}")) \
    .build()

若CLI操作因CLI bug失败,可 fallback至SDK:
python
from huaweicloudsdkcore.auth.credentials import BasicCredentials
from huaweicloudsdkmodelarts.v1.modelarts_client import ModelArtsClient
from huaweicloudsdkmodelarts.v1.region.modelarts_region import ModelArtsRegion

credentials = BasicCredentials(ak="{AK}", sk="{SK}", project_id="{project_id}")
client = ModelArtsClient.new_builder() \
    .with_credentials(credentials) \
    .with_region(ModelArtsRegion.value_of("{region}")) \
    .build()

Reference Documents

参考文档

DocumentDescription
references/cli-command-examples.mdDetailed CLI command syntax and examples for all 31 APIs
references/iam-policies.mdLeast-privilege IAM policies
references/verification-method.mdVerification and testing methods
references/dataflow-diagram.mdMermaid data flow diagram
references/acceptance-criteria.mdAcceptance criteria checklist
references/api-paths.mdREST API paths from SDK source
references/cli-installation-guide.mdCLI installation and authentication guide
references/known-issues.mdKnown issues and workarounds
references/pricing-inquiry.mdBSS pricing inquiry guide for chargeable operations
文档说明
references/cli-command-examples.md所有31个API的详细CLI命令语法及示例
references/iam-policies.md最小权限IAM策略
references/verification-method.md验证与测试方法
references/dataflow-diagram.mdMermaid数据流图
references/acceptance-criteria.md验收标准 checklist
references/api-paths.md来自SDK源码的REST API路径
references/cli-installation-guide.mdCLI安装与认证指南
references/known-issues.md已知问题及解决方法
references/pricing-inquiry.md收费操作的BSS定价查询指南

Known Issues (Summary)

已知问题(摘要)

Full details: references/known-issues.md
#IssueKey Takeaway
1CLI omits EVS from
volume.category
enum
Use
--cli-jsonInput
with
body
wrapper + explicit
--project_id
2Storage category × ownership matrixEVS:MANAGED ✅, OBS/OBSFS:DEDICATED ✅, OBS/OBSFS:MANAGED ❌
3DEDICATED ownership requires
pool_id
Query dedicated pools first, pass top-level
pool_id
4OBS as
data_volume
silently fails
Use OBS as main
volume
or use OBSFS as
data_volume
5Bucket type (POSIX vs OBJECT) irrelevantBoth work with DEDICATED ownership
6OBSFS:MANAGED extended storage unsupportedUse DEDICATED for OBSFS
7OBS/OBSFS main volume needs
dew_secret_name
Store AK/SK in DEW/CSMS secret
8OBS data volume requires
mount_path
Always specify valid path
9Image/flavor architecture mismatchMatch
arch
field between image and flavor
10
--cli-jsonInput
general workaround
Must wrap in
{"body":{...}}
+ pass
--project_id
explicitly
11
ShowLease
duration is total, not remaining
Calculate:
remaining = (create_at + duration) - current_time
12
ListImageGroup
response field varies with
--limit
Without limit:
groups
field; with limit:
data
field. Parse both
13
AttachDynamicStorage
only supports POSIX buckets
OBJECT buckets rejected with
ModelArts.6772
; use
obsutil stat
to verify

详细内容:references/known-issues.md
#问题关键要点
1CLI的
volume.category
枚举中缺少EVS选项
使用
--cli-jsonInput
并包裹
body
+ 显式传递
--project_id
2存储类别与ownership矩阵EVS:MANAGED ✅, OBS/OBSFS:DEDICATED ✅, OBS/OBSFS:MANAGED ❌
3DEDICATED ownership需要
pool_id
先查询专属资源池,传递顶级
pool_id
4将OBS作为
data_volume
会静默失败
将OBS作为主
volume
或使用OBSFS作为
data_volume
5Bucket类型(POSIX vs OBJECT)无关紧要两者均适用于DEDICATED ownership
6OBSFS:MANAGED扩展存储不被支持对OBSFS使用DEDICATED
7OBS/OBSFS主卷需要
dew_secret_name
将AK/SK存储在DEW/CSMS密钥中
8OBS数据卷需要
mount_path
始终指定有效路径
9镜像与规格架构不匹配匹配镜像与规格的
arch
字段
10
--cli-jsonInput
通用解决方法
必须包裹在
{"body":{...}}
中 + 显式传递
--project_id
11
ShowLease
返回的时长为总时长,而非剩余时长
计算方式:
剩余时长 = (创建时间 + 总时长) - 当前时间
12
ListImageGroup
的响应字段随
--limit
变化
无limit时:
groups
字段;有limit时:
data
字段。需兼容两种情况
13
AttachDynamicStorage
仅支持POSIX buckets
OBJECT buckets会被拒绝,错误码
ModelArts.6772
;使用
obsutil stat
验证

Notes

注意事项

  • All 31 API interfaces are available via
    hcloud ModelArts
    CLI
  • SDK fallback available via
    huaweicloudsdkmodelarts
    v1 if CLI encounters issues
  • Region is specified via
    --cli-region
    and should NOT be hardcoded
  • --project_id
    is auto-resolved from credentials if omitted (but must be explicit when using
    --cli-jsonInput
    )
  • All write operations (Create/Update/Delete/Start/Stop/Attach/Detach/Register/Sync/Renew) require user confirmation before execution
  • Chargeable operations (CreateNotebook, StartNotebook) require BSS pricing inquiry to inform users of costs before execution
  • API paths verified from SDK source
    _http_info
    resource_path
    — no inferred endpoints
  • No hardcoded AK/SK in any file — credentials managed by hcloud via
    hcloud configure list/set
  • 所有31个API接口均可通过
    hcloud ModelArts
    CLI调用
  • 若CLI出现问题,可通过
    huaweicloudsdkmodelarts
    v1版本的SDK进行fallback
  • 区域通过
    --cli-region
    指定,请勿硬编码
  • --project_id
    若省略则从凭证自动解析(但使用
    --cli-jsonInput
    必须显式传递
  • 所有写入操作(创建/更新/删除/启动/停止/挂载/卸载/注册/同步/续费)执行前需用户确认
  • 收费操作(CreateNotebook、StartNotebook)执行前需查询BSS定价并告知用户成本
  • API路径已通过SDK源码的
    _http_info
    resource_path
    验证,无推断的端点
  • 所有文件中均无硬编码的AK/SK — 凭证通过hcloud的
    hcloud configure list/set
    管理