Save, search, and manage personal notes and knowledge bases in Get笔记 on explicit request.
Coding
huawei-cloud-cce-list
Try it查询华为云CCE(云容器引擎)集群列表,支持表格化输出集群名称、状态、版本、节点数等关键字段
What it does
This skill queries the list of **CCE (Cloud Container Engine) clusters** under the current Huawei Cloud tenant / project and returns their key attributes — in particular the **CCE cluster name list** (), along with (), (), Kubernetes and . It is a read-only inspection skill: it never creates, mo…
The skill document
Huawei Cloud CCE Cluster List Skill
Overview
This skill queries the list of CCE (Cloud Container Engine) clusters under the
current Huawei Cloud tenant / project and returns their key attributes — in particular
the CCE cluster name list (metadata.name), along with id (metadata.uid),
status (status.phase), Kubernetes version and flavor. It is a read-only
inspection skill: it never creates, modifies, or deletes clusters, nodes, or any
related resources.
Architecture:
Agent → hcloud CLI (KooCLI, CCE ListClusters, primary) → Huawei Cloud CCE v3 API
↘ huaweicloudsdkcce Python SDK (fallback) ↗
API path (verified from huaweicloudsdkcce v3 SDK _list_clusters_http_info):
| Operation | Method | API Path |
|---|---|---|
| List clusters | GET | /api/v3/projects/{project_id}/clusters |
Applicable Scenarios:
- CCE cluster inventory: "list all CCE clusters of this tenant" or "show me the CCE cluster name list"
- Daily inspection: snapshot of all clusters with their status and version
- Cost review: enumerate clusters and their flavor to spot unused or oversized resources
- Fast lookup: retrieve the exact cluster name(s) for follow-up operations
能力边界(Capability Boundary): 本 Skill 仅查询 CCE 集群列表。不创建/删除/修改集群,也不查询/操作集群内的 节点(node)、节点池(nodepool)、Addon 等其它资源。若用户询问"创建/删除/扩容集群"、 "查询集群节点"、"获取 kubeconfig"等,请明确告知本 Skill 不提供该能力。 单集群详情(show-by-id)查询不在本 Skill 范围内,请使用对应的 CCE 详情/管理类 skill。
Prerequisites
- hcloud CLI (KooCLI) installed and authenticated — See
references/cli-installation-guide.md - Python 3.8+ with
huaweicloudsdkccepackage installed (SDK fallback only) - IAM permissions —
cce:cluster:list(or the system policyCCE ReadOnlyAccess) is required to list clusters. Seereferences/iam-policies.md - A region where the tenant owns CCE clusters; specify it with
--cli-region
Workflow
- Identify the intent — Confirm the user wants to list CCE clusters (and optionally the filters: status, cluster type, or name-only output).
- Confirm region — Default
cn-north-4; let the user override with another region if needed. - Run the query — Use the CLI command below with the requested filters.
- Present the results — Show the cluster name, id, status and version for each cluster; on a name-list request, output just the names.
- Handle errors — If the CLI fails (credentials/permissions/network), retry with
the SDK fallback described in
references/verification-method.md.
Core Commands
KooCLI format:
hcloud --cli-region= [--key=value]
List all CCE clusters (names, ids, status)
hcloud CCE ListClusters --cli-region={region} --cli-output=json
List only the CCE cluster names
hcloud CCE ListClusters --cli-region={region} --cli-output=json | jq -r '.items[].metadata.name'
Compact fields: name, id, status, version
hcloud CCE ListClusters --cli-region={region} --cli-output=json \
| jq -r '.items[] | [.metadata.name, .metadata.uid, .status.phase, .spec.version] | @tsv'
Filter by cluster status
hcloud CCE ListClusters --cli-region={region} --status=Available --cli-output=json
Status enum: Available, Unavailable, ScalingUp, ScalingDown, Creating,
Deleting, Upgrading, Resizing, RollingBack, RollbackFailed, Empty.
Filter by cluster type
hcloud CCE ListClusters --cli-region={region} --type=VirtualMachine --cli-output=json
Type options: VirtualMachine (CCE cluster), ARM64 (Kunpeng cluster).
Include node/addon detail
hcloud CCE ListClusters --cli-region={region} --detail=true --cli-output=json
Note: In the CCE v3 list response, the cluster name is
metadata.name(andmetadata.aliasis usually the same value). The cluster id ismetadata.uid, the cluster status isstatus.phase, and the Kubernetes version isspec.version.
Parameter Confirmation
| Parameter | Required | Description | Example |
|---|---|---|---|
{region} | Yes | Huawei Cloud region | cn-north-4 |
{status} | No | Cluster status filter | Available |
{type} | No | Cluster type filter | VirtualMachine |
KooCLI Command Format Standard
The KooCLI command format is:
hcloud --cli-region= [--key=value ...]
Note: this is a generic format template, not an executable command — replace
,, `` and the parameters with real values (e.g.hcloud CCE ListClusters --cli-region=cn-north-4).
- Service name:
CCE(starts with uppercase). - Operation name: PascalCase —
ListClusters. - Region: always pass
--cli-region=. - Simple parameters use
--key=value, for example--status=Available.
Reference Documents
- IAM Policies — Least-privilege IAM permissions
- CLI Installation Guide — hcloud CLI setup and authentication
- Verification Method — How to verify the skill works
- Dataflow Diagram — Request flow diagram
- Acceptance Criteria — Acceptance test checklist
Related skills
Generate and edit Draw.io, Mermaid, and Excalidraw diagrams from natural language using a structured JSON spec.
Stores durable facts in a categorized, plain-markdown vault on disk, alongside your agent's built-in memory.
Read and write Excel workbooks, worksheets, ranges, tables, and charts in OneDrive through Microsoft Graph with managed OAuth.
Join a video meeting as an AI bot with voice, avatar, and screenshare across four operating modes.
Find why your productivity system keeps failing, then apply the smallest fix — capacity math, bottleneck routing, durable local notes.
More from yangaiwu
Browse all skills管理 Blog System API v1.0.0 的文章/标签/用户/评论/留言/说说/文件上传/健康检查。 无认证公开 API,27 个子命令(26 API + 1 capability-list),输出 JSON 与 Markdown 表格。 纯 CLI 管理 skill,不含 Grape Agent 加载集成与自动回复 Issue 能力。
Manage Blog System API v1.0.0 via 27 CLI subcommands covering articles, tags, users, comments, messages, moods, uploads, and health checks.
查询华为云 CES(云监控服务)监控指标列表与指标数据。支持指标列表查询(ListMetrics) 按命名空间/指标名/维度/排序过滤,以及指标数据查询(ShowMetricData)按时间范围、 聚合粒度、聚合方式获取监控数据点。只读操作,JSON 输出全部字段,AK/SK 环境变量认证。
查询华为云 CCI(Cloud Container Instances,云容器实例)实例详情的只读 Skill。 通过 KooCLI(hcloud)执行 CCI 只读查询命令,覆盖命名空间列表、Pod 列表与详情、 Deployment/StatefulSet/Service/Network 等资源的只读查询场景。 适用于日常巡检、故障排查、资源管理。仅 List/Read 只读操作,不涉及 Create/Delete/Update。
管理 Blog System (FastAPI) 全部 32 个 API 端点:文章/标签/用户/评论/留言/说说/ 文件上传/健康检查/博客页面/后台管理。无认证公开 API,支持 CLI 子命令调用。
博客内容发布 Skill,基于 FastAPI 博客系统 OpenAPI 文档自动生成。 覆盖文章/标签/用户/评论/留言/说说/文件上传/健康检查全部 API。