Command Palette

Search for a command to run...

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

huawei-cloud-vpcep-list

БесплатноЗапускает вложенные скриптыНе проверен

1. List Huawei Cloud VPCEP (VPC 终端节点服务) resources in a tenant through KooCLI — three read-only views: terminal endpoints (`VPCEP ListEndpoints`, GET…

wlc-devот wlc-dev191 установка в других каталогах

Об этом скилле

Huawei Cloud VPCEP (终端节点服务) Endpoint / Service List

Overview

Query the VPCEP inventory of a tenant through KooCLI read-only GET APIs: terminal endpoints (ListEndpoints), endpoint services owned by the account (ListEndpointService), and public endpoint services published by O&M (ListServicePublicDetails). The skill targets troubleshooting ("the endpoint is created but cannot connect", "which endpoints hang under this VPC", "what is the public endpoint service name for OBS/DNS") and daily inventory.

Architecture:

agent → python3 scripts/list_vpcep.py --view endpoint|service|public
      → VPCEP ListEndpoints | ListEndpointService | ListServicePublicDetails
        --cli-region=<region> --limit=<n> --offset=<n> [+ real query params]
      → Huawei Cloud VPCEP OpenAPI (vpcep.<region>.myhuaweicloud.com)
      → client-side filters → concise / --table / --json / --format md

(hcloud binary missing) → fallback: huaweicloudsdkvpcep
      VpcepClient.list_endpoints / list_endpoint_service /
      list_service_public_details

Key properties:

  • Read-only by design — only GET list operations are ever invoked. A write-intent guard scans arguments before argparse and rejects mutating vocabulary (create / delete / update / batch / whitelist / accept / reject / bind / unbind, …) with exit code 1 before a single command runs.
  • CLI first, SDK fallback — KooCLI is the primary execution path; when the hcloud binary is absent the script falls back to the official huaweicloudsdkvpcep SDK. Credentials are always read by the CLI profile / SDK environment — never handled or echoed by the script.
  • Three views — --view endpoint (default), --view service (services owned by the account), --view public (public services visible to all users).
  • Offset + limit paging — every request sends --limit and --offset; paging stops at a short page or when total_count is reached (max 100 pages).
  • Non-available highlighted — status other than available is rendered in a separate exception section with a [!] marker and [异常] status cell.
  • Offline-testable — mock-hcloud and fake-SDK unit tests cover every view, paging, filters, guard, error classification and Markdown export.

Out of scope: all mutating VPCEP actions (create / update / delete an endpoint or service, add / remove permissions or whitelist entries, accept / reject connections, bind / unbind routetables). Those require a dedicated write-capable skill with explicit 用户确认 (user confirmation).

Prerequisites

  1. KooCLI (hcloud) installed — see references/cli-installation-guide.md. Alternative: pip install huaweicloudsdkcore huaweicloudsdkvpcep to enable the SDK fallback path.
  2. Active credential profile — configure credentials out-of-band (run the KooCLI configure command in your terminal, or set credential environment variables). Never paste AK/SK into chat; the script never reads, echoes, or stores secrets itself — authentication is delegated entirely to the hcloud profile / SDK environment.
  3. project_id (SDK fallback only) — VPCEP REST paths are /v1/{project_id}/vpc-endpoints and /v1/{project_id}/vpc-endpoint-services; when falling back to the SDK, supply the project id via --project-id or the HUAWEICLOUD_SDK_PROJECT_ID / HUAWEI_PROJECT_ID environment variables. KooCLI resolves it from the profile automatically.
  4. IAM permission — read-only vpcep:endpoints:list, vpcep:endpointServices:list and vpcep:endpointServices:listPublic; least-privilege policy in references/iam-policies.md.
  5. Python 3.8+ (standard library only — argparse / json / subprocess).
  6. Outbound HTTPS access to vpcep.cn-north-4.myhuaweicloud.com.

Workflow

  1. Confirm the target region (default cn-north-4) and the view: endpoint (default), service, or public.
  2. Confirm KooCLI readiness (optional, read-only) by listing the active credential profile.
  3. Run the list script with the desired view, output mode and filters.
  4. Read the result — concise list for humans, --table for a fixed-column inventory, --json for downstream tooling, --format md for a local report.
  5. Handle non-available resources — they appear in the separate exception section; use --status failed (or another state) to list only abnormal rows.
  6. Handle empty / error cases per the Error Handling table below (the script prints explicit Chinese hints for empty region, 403, invalid ID and missing AK/SK).

Core Commands

# Endpoint view (default): concise name / status / service list
python3 scripts/list_vpcep.py --region cn-north-4

# Endpoint view fixed-column table
python3 scripts/list_vpcep.py --table --region cn-north-4

# Endpoint services owned by the account
python3 scripts/list_vpcep.py --view service --table --region cn-nor
Полный SKILL.md на ClawHub

Установить huawei-cloud-vpcep-list в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл huawei-cloud-vpcep-list?

1. List Huawei Cloud VPCEP (VPC 终端节点服务) resources in a tenant through KooCLI — three read-only views: terminal endpoints (`VPCEP ListEndpoints`, GET /v1/{project_id}/vpc-endpoints), endpoint services owned by the account (`VPCEP ListEndpointService`, GET /v1/{project_id}/vpc-endpoint-services), and public endpoint services published by O&M (`VPCEP ListServicePublicDetails`, GET /v1/{project_id}/vpc-endpoint-services/public). Falls back to the official `huaweicloudsdkvpcep` SDK when hcloud is absent. 2. Three views: --view endpoint (default) / service / public; offset+limit paging until a short page; client-side filters --name / --fuzzy / --id / --vpc-id / --service-name / --status; --region override (default cn-north-4). 3. Output modes: concise name/status/service list (default), fixed-column --table (ID / 名称 / 状态 / 所属服务名 / 服务ID / 服务类型 / IP / VPC ID / 是否启用DNS / 是否启用白名单 / 创建时间 / region), raw --json, and --format md (fixed columns, '-' for missing fields, atomic write). 4. Non-available resources (creating / failed / deleting / rejected) are split into a separate highlighted section and never mixed with available rows; `--status failed` can list only abnormal endpoints. 5. Explicit Chinese hints for empty lists, invalid IDs, 403 / missing IAM permission, missing AK/SK credentials and KooCLI [USE_ERROR], with a non-zero exit code and no traceback. 6. Built-in write-intent guard: create / update / delete / batch-add / batch-remove / add-whitelist / remove-whitelist / accept / reject / bind / unbind intents are rejected before execution (exit 1); this skill is strictly read-only. 7. Triggers include: "查询 VPCEP", "终端节点列表", "VPC 终端节点", "终端节点服务", "公共终端节点服务", "VPCEP endpoint inventory", "list vpc endpoints", "list endpoint services", "list public endpoint services", "华为云 VPCEP".

Как установить скилл huawei-cloud-vpcep-list?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл huawei-cloud-vpcep-list запускает скрипты?

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

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

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