Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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-devот 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 ListEngines is 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

  1. KooCLI (hcloud) installed — see references/cli-installation-guide.md. Alternative: pip install huaweicloudsdkcore huaweicloudsdkcse for the fallback path.
  2. Active credential profile — configure credentials out-of-band (hcloud configure in your own terminal, or credential environment variables). Never paste AK/SK into chat; the script never reads, echoes or stores secrets.
  3. IAM permission — cse:engine:list (read-only); least-privilege policy in references/iam-policies.md.
  4. Python 3.8+ (standard library only — argparse / json / subprocess).
  5. Outbound HTTPS access to cse.<region>.myhuaweicloud.com.

Workflow

  1. Confirm the target region (default cn-north-4).
  2. Choose the engine type with --type (default ALL).
  3. Optionally filter by name with --name (exact) or --name ... --fuzzy (substring); the filter is applied client-side after all pages are fetched.
  4. Run the list script with the desired output mode.
  5. Read the result — concise for humans, --table for a full audit, --json for tooling.
  6. 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
Полный SKILL.md на ClawHub

Установить 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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить huawei-cloud-cse-engine-list с