Command Palette

Search for a command to run...

Назад к скиллам
скилл № 17261

huawei-cloud-aad-protected-ip-list

1. Query the Huawei Cloud Anti-DDoS (AAD, 抗DDoS) protected-IP inventory of the current account through KooCLI (hcloud AAD ListProtectedIp — read-only GET…

БесплатноЗапускает вложенные скрипты
wlc-devот wlc-dev199 установок в других каталогах

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

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

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

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

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

Huawei Cloud Anti-DDoS Protected IP List

Overview

Query the Anti-DDoS (AAD) protected-IP inventory of a tenant region through KooCLI AAD ListProtectedIp (GET /v1/cnad/protected-ips), returning protected IPs, status (normal / cleaning / blackholed), bound policy, package and region. This skill supports DDoS protection inventory, block-status troubleshooting and daily security patrol.

Command REST path Scope
hcloud AAD ListProtectedIp GET /v1/cnad/protected-ips protected IPs of the current account/region

Architecture:

agent → python3 scripts/list_aad_protected_ip.py [--region=<region>] [filters]
      → hcloud AAD ListProtectedIp --cli-region=<region> --limit=100 --offset=N
      → Huawei Cloud AAD OpenAPI → parsed JSON → offset/limit paging
      → default concise list / --table / --json
      (CLI unavailable → huaweicloudsdkaad SDK, same mapping and output layer)

Key properties:

  • Read-only by design — only the ListProtectedIp GET operation is ever constructed. A write-intent guard scans arguments before execution and rejects mutating intents with an explicit message (exit code 1).
  • KooCLI first, SDK fallback — credentials stay in the KooCLI profile; when the CLI is missing or cannot serve this operation, the official huaweicloudsdkaad SDK is used with environment credentials.
  • Automatic paging — --limit is the page size (1~100, values above 100 are clamped); the script loops offset until the full set is fetched.
  • Executable errors — empty results, 403, missing credentials, [USE_ERROR] and network failures each print a next-step hint and never a traceback.
  • Offline-testable — routing, output modes, filters, paging, error classification, SDK fallback and the write-intent guard are covered by unit tests that mock both backends.

Out of scope: every mutating Anti-DDoS action (create / delete policy, associate or disassociate IP, execute unblock, modify package or tag), traffic-cleaning statistics, attack-event analytics and alert subscriptions.

Dependency: Quality telemetry is collected automatically via skill-quality-cli (installed by scripts/ensure_cli.sh if absent).

Prerequisites

  1. KooCLI (hcloud) installed — see references/cli-installation-guide.md. The fallback SDK requires Python 3.8+ and huaweicloudsdkaad.
  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.
  3. IAM permission — read-only aad:protectedIp:list; the least-privilege policy is in references/iam-policies.md.
  4. Python 3.8+ for the wrapper (standard library only; the SDK is optional).
  5. Outbound HTTPS access to *.myhuaweicloud.com.
  • skill-quality-cli — ensured by bash scripts/ensure_cli.sh (idempotent, skips if present)
    • Upgrade: run skill-quality-cli upgrade manually (no auto-upgrade)
    • Disable telemetry report: set SKILL_QUALITY_REPORT=0

Workflow

  1. Confirm the target region (default cn-north-4); every AAD call is region-scoped.
  2. Choose the view — default concise list, --table for details, or --json for downstream tooling.
  3. Apply optional filters — --ip, --policy-id, --package-id, --tag.
  4. Run the list script; paging is automatic (--limit controls page size, --offset the starting position).
  5. Read the result — table for humans, --json for tooling.
  6. Handle the empty / error cases per the Edge Cases table below.

Core Commands

List protected IPs (default)

> **⚠️ Mandatory: every `hcloud` command in this skill MUST be wrapped with `skill-quality-cli run --skill-name huawei-cloud-aad-protected-ip-list -- ` — bare `hcloud` calls are strictly forbidden.**

skill-quality-cli run --skill-name huawei-cloud-aad-protected-ip-list -- python3 scripts/list_aad_protected_ip.py --region={region}

Under the hood the skill runs:

skill-quality-cli run --skill-name huawei-cloud-aad-protected-ip-list -- hcloud AAD ListProtectedIp --cli-region={region} --limit=100 --offset=0
Parameter Required Description
--cli-region Yes (auto) Region, agent fills automatically
--limit No Page size 1~100; the wrapper pages automatically
--offset No Starting offset, default 0
--ip No Exact protected-IP filter
--policy_id No Policy ID filter
--package_id No Package (instance) ID filter
--tag No Local tag filter

Detailed table

skill-quality-cli run --skill-name huawei-cloud-aad-protected-ip-list -- python3 scripts/list_aad_protected_ip.py --table --region={region}

Columns: 防护 IP | 状

Полный SKILL.md на ClawHub

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

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

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

FAQ

Что делает скилл huawei-cloud-aad-protected-ip-list?

1. Query the Huawei Cloud Anti-DDoS (AAD, 抗DDoS) protected-IP inventory of the current account through KooCLI (hcloud AAD ListProtectedIp — read-only GET /v1/cnad/protected-ips), returning protected IPs, block/cleaning status, bound policies, packages and regions. 2. Answers questions such as "哪些 IP 在被 DDoS 防护", "是否有 IP 处于封堵", "防护 IP 挂的是哪个策略/套餐", "Anti-DDoS 防护盘点". 3. Output modes: a concise list (default: 防护 IP | 封堵状态), --table (防护 IP | 状态 | 绑定策略 | 套餐 | region), and --json (raw response). 4. Filters: --ip (exact), --policy-id, --package-id, --tag, --region (default cn-north-4). --limit 1~100 with automatic offset paging fetches the full inventory. 5. Falls back to the official huaweicloudsdkaad SDK when KooCLI is missing or cannot serve the operation; the same field mapping and output layer are reused. 6. Explicit, executable error hints for an empty list, 403 / insufficient IAM permission, missing credentials, [USE_ERROR] and network failures — never a traceback. 7. Built-in write-intent guard: any mutating intent (add / delete / associate / disassociate / execute-unblock / modify / update / batch ...) is rejected before execution — this skill is strictly read-only. 8. Triggers include: "查询Anti-DDoS防护IP", "Anti-DDoS 防护 IP 列表", "哪些IP在被防护", "DDoS 防护盘点", "封堵状态排查", "AAD 防护对象列表", "list AAD protected IPs", "anti-ddos protected ip list".

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

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

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

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

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

Сравнить huawei-cloud-aad-protected-ip-list с