Loading...
Loading...
Compare original and translation side by side
Full lifecycle management for ModelArts training jobs and related resources via hcloud CLI — 52 API interfaces across 8 functional domains.
通过hcloud CLI对ModelArts训练作业及相关资源进行全生命周期管理——覆盖8个功能域的52个API接口。
hcloudhcloudUser Request → Agent → hcloud ModelArts <Operation> --cli-region={region} [--params] → Huawei Cloud ModelArts APIUser Request → Agent → hcloud ModelArts <Operation> --cli-region={region} [--params] → Huawei Cloud ModelArts API| User Intent | Operation Category |
|---|---|
| Create/list/show/stop/delete training jobs | Training Job Management |
| Create/list/show/update/delete algorithms | Algorithm Management |
| Create/show/delete training job tags | Training Job Tags |
| Create/list/show/update/delete experiments | Training Experiments |
| Query job events, stages, tasks | Training Job Events |
| Import/list/show/delete models | Model Import |
| Query auto search trials, params analysis | Auto Search |
| Save training job image | Training Image Save |
| 用户意图 | 操作分类 |
|---|---|
| 创建/列出/查看/停止/删除训练作业 | 训练作业管理 |
| 创建/列出/查看/更新/删除算法 | 算法管理 |
| 创建/查看/删除训练作业标签 | 训练作业标签 |
| 创建/列出/查看/更新/删除实验 | 训练实验 |
| 查询作业事件、阶段、任务 | 训练作业事件 |
| 导入/列出/查看/删除模型 | 模型导入 |
| 查询自动搜索试验、参数分析 | 自动搜索 |
| 保存训练作业镜像 | 训练镜像保存 |
hcloud ModelArts <Operation> --cli-region={region} [--key=value ...]must be replaced with the actual region, e.g.,{region}. Do NOT hardcode the region.cn-north-4
hcloud ModelArts <Operation> --cli-region={region} [--key=value ...]必须替换为实际区域,例如{region},请勿硬编码区域。cn-north-4
hcloud ModelArts <Operation> --cli-region={region} [--key=value ...]| Feature | Description | Example |
|---|---|---|
| Service name | Fixed: | |
| Operation name | PascalCase | |
| Region parameter | | |
| Simple parameter | | |
| Indexed parameter | | |
| project_id | Auto-resolved if omitted | Uses configured project ID |
Note:is auto-resolved from authentication credentials if omitted. Include it explicitly only when targeting a specific project.--project_id
Complex parameters: For complex nested parameters (e.g.,,config), usespec. The JSON file must wrap body in--cli-jsonInput=/path/to/file.jsonenvelope.{"body": {...}}
hcloud ModelArts <Operation> --cli-region={region} [--key=value ...]| 特性 | 描述 | 示例 |
|---|---|---|
| 服务名称 | 固定为 | |
| 操作名称 | 采用大驼峰命名(PascalCase) | |
| 区域参数 | | |
| 简单参数 | | |
| 索引参数 | | |
| project_id | 若省略则自动解析 | 使用已配置的项目ID |
注意:若省略,将从认证凭证中自动解析。仅在指定特定项目时需显式添加。--project_id
复杂参数:对于复杂嵌套参数(例如、config),使用spec。JSON文件必须将请求体包裹在--cli-jsonInput=/path/to/file.json结构中。{"body": {...}}
📖 For detailed command syntax, parameters, and examples, read references/cli-command-examples.md
📖 如需详细命令语法、参数及示例,请阅读references/cli-command-examples.md
| # | Domain | APIs | Key Operations |
|---|---|---|---|
| 1 | Training Job Management | 14 | CreateTrainingJob, ListTrainingJobs, ShowTrainingJobDetails, StopTrainingJob, DeleteTrainingJob, ShowTrainingJobLogs/Metrics/Engines/Flavors/Quotas |
| 2 | Algorithm Management | 7 | CreateAlgorithm, ListAlgorithms, ShowAlgorithmByUuid, ChangeAlgorithm, DeleteAlgorithm, ShowSearchAlgorithms, CreateAlgorithmVersionToGallery |
| 3 | Training Job Tags | 3 | CreateTrainJobTags, ShowTrainJobTags, DeleteTrainJobTags |
| 4 | Training Experiments | 6 | CreateTrainingExperiment, List/Show/Delete/Change/Check experiments |
| 5 | Training Job Events | 7 | ListTrainingJobEvents/Stages/Tasks, ListEvents/Categories/ScheduledEvents, AcceptScheduledEvent |
| 6 | Model Import | 6 | CreateModel, ListModels, ShowModel, DeleteModel, ShowModelEngineAndRuntime, CreateModelArtsAgency |
| 7 | Auto Search | 7 | ShowAutoSearchTrials/PerTrial/ParamsAnalysis/YamlTemplates, ShowAutoSearchTrialEarlyStop |
| 8 | Training Image Save | 2 | CreateSaveImageJob, ShowSaveImageJob |
When executing any command, always refer to the reference file for exact parameter names, required/optional flags, and usage patterns.
| 序号 | 功能域 | API数量 | 核心操作 |
|---|---|---|---|
| 1 | 训练作业管理 | 14 | CreateTrainingJob、ListTrainingJobs、ShowTrainingJobDetails、StopTrainingJob、DeleteTrainingJob、ShowTrainingJobLogs/Metrics/Engines/Flavors/Quotas |
| 2 | 算法管理 | 7 | CreateAlgorithm、ListAlgorithms、ShowAlgorithmByUuid、ChangeAlgorithm、DeleteAlgorithm、ShowSearchAlgorithms、CreateAlgorithmVersionToGallery |
| 3 | 训练作业标签 | 3 | CreateTrainJobTags、ShowTrainJobTags、DeleteTrainJobTags |
| 4 | 训练实验 | 6 | CreateTrainingExperiment、列出/查看/删除/变更/检查实验 |
| 5 | 训练作业事件 | 7 | ListTrainingJobEvents/Stages/Tasks、ListEvents/Categories/ScheduledEvents、AcceptScheduledEvent |
| 6 | 模型导入 | 6 | CreateModel、ListModels、ShowModel、DeleteModel、ShowModelEngineAndRuntime、CreateModelArtsAgency |
| 7 | 自动搜索 | 7 | ShowAutoSearchTrials/PerTrial/ParamsAnalysis/YamlTemplates、ShowAutoSearchTrialEarlyStop |
| 8 | 训练镜像保存 | 2 | CreateSaveImageJob、ShowSaveImageJob |
执行任何命令时,请务必参考参考文件获取准确的参数名称、必填/可选标识及使用方式。
| Parameter | Required | Description | Example |
|---|---|---|---|
| Yes | Huawei Cloud region | |
| Job ops | Training job UUID | |
| Algorithm ops | Algorithm UUID | |
| Experiment ops | Training experiment UUID | |
| Model ops | Model UUID | |
| SaveImage ops | Save image job UUID | |
| No (auto) | Project ID, auto-resolved if omitted | Omit for default |
| No | Workspace ID | Omit for default workspace |
| 参数 | 是否必填 | 描述 | 示例 |
|---|---|---|---|
| 是 | 华为云区域 | |
| 作业操作时需填 | 训练作业UUID | |
| 算法操作时需填 | 算法UUID | |
| 实验操作时需填 | 训练实验UUID | |
| 模型操作时需填 | 模型UUID | |
| 镜像保存操作时需填 | 镜像保存作业UUID | |
| 否(自动解析) | 项目ID,省略时自动解析 | 使用默认值可省略 |
| 否 | 工作空间ID | 使用默认工作空间可省略 |
from huaweicloudsdkcore.auth.credentials import BasicCredentials
from huaweicloudsdkmodelarts.v2.modelarts_client import ModelArtsClient
from huaweicloudsdkmodelarts.v2.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()from huaweicloudsdkcore.auth.credentials import BasicCredentials
from huaweicloudsdkmodelarts.v2.modelarts_client import ModelArtsClient
from huaweicloudsdkmodelarts.v2.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()| Document | Description |
|---|---|
| references/cli-command-examples.md | Detailed CLI command syntax and examples for all 52 APIs |
| references/iam-policies.md | Least-privilege IAM policies |
| references/verification-method.md | Verification and testing methods |
| references/dataflow-diagram.md | Mermaid data flow diagram |
| references/acceptance-criteria.md | Acceptance criteria checklist |
| references/api-paths.md | REST API paths from SDK source |
| references/cli-installation-guide.md | CLI installation and authentication guide |
| references/known-issues.md | Known issues and workarounds |
| 文档 | 描述 |
|---|---|
| references/cli-command-examples.md | 所有52个API的详细CLI命令语法及示例 |
| references/iam-policies.md | 最小权限IAM策略 |
| references/verification-method.md | 验证与测试方法 |
| references/dataflow-diagram.md | Mermaid数据流图 |
| references/acceptance-criteria.md | 验收标准清单 |
| references/api-paths.md | SDK源码中的REST API路径 |
| references/cli-installation-guide.md | CLI安装与认证指南 |
| references/known-issues.md | 已知问题及解决方案 |
--cli-jsonInput--cli-jsonInput@{"body": {...}}ShowObsUrlOfTrainingJobLogscreatingwaitingrunningSee references/known-issues.md for full details.
--cli-jsonInput--cli-jsonInput@{"body": {...}}ShowObsUrlOfTrainingJobLogscreatingwaitingrunning详见references/known-issues.md获取完整信息。
{region}project_id--cli-jsonInput{region}project_id--cli-jsonInput