huawei-cloud-cse-engine-list
БесплатноЗапускает вложенные скриптыНе проверен1. Read-only inventory of Huawei Cloud CSE microservice engines in a tenant region through KooCLI: `hcloud CSE ListEngines` (GET…
от wlc-dev185 установок в других каталогахОб этом скилле
Huawei Cloud CSE Microservice Engine List
Overview
Query the read-only list of Huawei Cloud CSE microservice engines in a tenant region through KooCLI, and fall back to the official SDK when hcloud is absent.
| Item | Value |
|---|---|
| KooCLI service / operation | CSE / ListEngines |
| REST path | GET /v2/{project_id}/enginemgr/engines |
| Method | GET (read-only) |
| Scope | region |
| SDK fallback | huaweicloudsdkcse.v1 → CseClient.list_engines |
Service code, operation name, parameters and REST path are verified against the
live KooCLI metadata (hcloud CSE ListEngines --help, KooCLI 7.3.12) and the
official SDK _list_engines_http_info resource path — see
references/verification-method.md.
Architecture:
agent → python3 scripts/list_cse_engines.py --region <region> [--type ...] [--name ...]
→ hcloud CSE ListEngines → CSE OpenAPI (regional endpoint)
→ parsed JSON → concise / --table / --json
(hcloud binary missing) → fallback: huaweicloudsdkcse CseClient.list_engines
Typical uses:
- Engine inventory — how many CSE / Nacos / MicroGateway engines exist in a region, their IDs, flavors and instance capacity.
- Version and status audit — current version vs latest version, engine status, and creation time.
- Mixed-engine detection — confirm whether a tenant runs both CSE (ServiceComb) engines and Nacos / gateway engines.
Key properties:
- Read-only by design — only
ListEnginesis ever constructed; the write-intent guard rejects mutating intents before any command runs. - CLI first, SDK fallback — KooCLI is the primary path; when the hcloud binary is absent the official SDK is used with the same output modes.
- Full pagination —
total-driven paging (full-page fallback, max 100 pages). - Secret-safe — credentials come only from the active KooCLI profile or standard environment variables; the script never reads, echoes or stores secrets.
Out of scope: creating, deleting, upgrading, resizing, rebooting or otherwise mutating engines; engine detail / job inspection. Those require a dedicated write-capable skill and explicit user confirmation.
Prerequisites
- KooCLI (
hcloud) installed — see references/cli-installation-guide.md. Alternative:pip install huaweicloudsdkcore huaweicloudsdkcsefor the fallback path. - Active credential profile — configure credentials out-of-band
(
hcloud configurein your own terminal, or credential environment variables). Never paste AK/SK into chat; the script never reads, echoes or stores secrets. - IAM permission —
cse:engine:list(read-only); least-privilege policy in references/iam-policies.md. - Python 3.8+ (standard library only — argparse / json / subprocess).
- Outbound HTTPS access to
cse.<region>.myhuaweicloud.com.
Workflow
- Confirm the target region (default
cn-north-4). - Choose the engine type with
--type(defaultALL). - Optionally filter by name with
--name(exact) or--name ... --fuzzy(substring); the filter is applied client-side after all pages are fetched. - Run the list script with the desired output mode.
- Read the result — concise for humans,
--tablefor a full audit,--jsonfor tooling. - Handle empty / error cases per the Error Handling table below.
Core Commands
# 1) All engines in the default region (cn-north-4), concise inventory
python3 scripts/list_cse_engines.py --region cn-north-4
# 2) Only Nacos engines, full-field table
python3 scripts/list_cse_engines.py --type Nacos --table
# 3) Only microservice-gateway engines, JSON output
python3 scripts/list_cse_engines.py --type MicroGateway --json
# 4) Exact name lookup (client-side, case-insensitive)
python3 scripts/list_cse_engines.py --name cse-prod
# 5) Fuzzy name lookup (client-side substring)
python3 scripts/list_cse_engines.py --name prod --fuzzy
# 6) Explicit sub-project + larger page size
python3 scripts/list_cse_engines.py --project-id <project-id> --page-size 50
Equivalent direct KooCLI command (the script wraps exactly this, with paging):
hcloud CSE ListEngines --cli-region=cn-north-4 --limit=100 --offset=0 --type=ALL
Parameter Confirmation
| Parameter | Required | Description | Example |
|---|---|---|---|
--region / -r |
No | Huawei Cloud region (default cn-north-4) |
cn-south-1 |
--type |
No | Engine type, server-side: ALL | CSE | Nacos | MicroGateway (case-insensitive, default ALL) |
Nacos |
--name |
No | Engine name filter, client-side, case-insensitive exact match | cse-prod |
--fuzzy |
No | Turn --name into a case-insensitive substring match |
— |
--project-id |
No | Sub-project ID; when omitted KooCLI uses the profile's default project | `41bd...e3 |
Установить huawei-cloud-cse-engine-list в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл huawei-cloud-cse-engine-list?
1. Read-only inventory of Huawei Cloud CSE microservice engines in a tenant region through KooCLI: `hcloud CSE ListEngines` (GET /v2/{project_id}/enginemgr/engines). Returns name / ID / type / version / status / flavor / instance counts / creation time / region. 2. Automatic fallback to the official Python SDK `huaweicloudsdkcse` (`CseClient.list_engines`, the v1 SDK module that wraps the same v2 REST API) when the hcloud binary is not installed. 3. Filtering: `--type` server-side (ALL / CSE / Nacos / MicroGateway), `--name` client-side exact match, `--fuzzy` client-side substring match, `--region` override (default cn-north-4), optional `--project-id`. 4. Three output modes: concise inventory (default), `--table` full-field table, and `--json` normalized items. 5. `total`-driven paging: every page is fetched until the reported total is reached (with a full-page fallback when `total` is absent). 6. Empty list prints 「未找到微服务引擎」and exits 0. 7. Explicit error hints for 403 / insufficient IAM permission (`cse:engine:list`), missing or invalid AK/SK, KooCLI `[USE_ERROR]` parameter errors, and network failures — never a traceback. 8. Built-in write-intent guard: any mutating intent (create / delete / update / upgrade / modify / remove / start / stop / resize ...) is rejected before execution — strictly read-only. 9. Offline unit tests (mocked hcloud + fake SDK) cover filtering, paging, output modes, error classification, SDK fallback and the guard. 10. Triggers include: "CSE 微服务引擎列表", "查询CSE引擎", "微服务引擎盘点", "CSE引擎版本核查", "Nacos引擎列表", "网关引擎列表", "ListEngines", "CSE engine inventory", "list CSE engines", "华为云CSE引擎".
Как установить скилл huawei-cloud-cse-engine-list?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл huawei-cloud-cse-engine-list запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic