Command Palette

Search for a command to run...

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

huawei-cloud-scm-cert-list

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

1. Inventory the Huawei Cloud SCM (SSL Certificate Manager / 云证书管理服务) certificates of the current account in one region, strictly read-only. Primary path…

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

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

Huawei Cloud SCM Certificate List

Overview

Inventory the SSL/TLS certificates managed by Huawei Cloud SCM in one region through KooCLI hcloud SCM ListCertificates, returning certificate name, ID, bound domain (and SANs), type family (DV/OV/EV), status, expiry time, remaining days, derived source and the region. Aimed at certificate inventory (证书盘点), expiry patrol (到期巡检), deployment pre-check (部署前核对) and compliance review.

Operation REST path Method Purpose
SCM ListCertificates /v3/scm/certificates GET list SCM certificates of the region

The REST path is verified from the official SDK source (huaweicloudsdkscm/v3/scm_client.py, _list_certificates_http_info → resource_path = "/v3/scm/certificates"), not inferred.

Architecture:

agent → python3 scripts/list_scm_certs.py [--region=<region>] [--table|--json]
      → hcloud SCM ListCertificates --cli-region=<region> --limit=<n> --offset=<m>
        └─ (hcloud missing / failed) → huaweicloudsdk SCM SDK ListCertificates
      → Huawei Cloud SCM OpenAPI → parsed JSON → compact list / table / JSON

Key properties:

  • Read-only by design — only ListCertificates is ever constructed; the write-intent guard rejects --action create|delete|update|import|push|... (and a write keyword passed as the search content) before any command runs. Certificate application, purchase, import, deployment push, revocation and deletion are explicitly out of scope and require a dedicated write-capable skill with explicit user confirmation.
  • CLI first, SDK fallback — hcloud is the primary path; when it is missing or fails with a transient/backend error the script falls back to huaweicloudsdkscm (SDK credentials come from HUAWEICLOUD_SDK_AK / HUAWEICLOUD_SDK_SK only; SCM is a global service, so the SDK client is built with GlobalCredentials, optionally seeded by HUAWEICLOUD_SDK_DOMAIN_ID). 403, credential and [USE_ERROR] failures never fall back — they are reported as-is so a permission problem is never silently turned into "no certificates".
  • Complete inventory — offset+limit paging until a short page or total_count is reached, with --max-pages as a safety cap.
  • Precise expiry filter — --expiring N is a client-side filter on the computed days_left (≤ N, including already expired certificates), so it is exact regardless of the server-side expired_days_since semantics.
  • No files written — everything goes to stdout; secrets are delegated to the KooCLI profile or environment.
  • Offline-testable — all code paths are covered by unit tests that mock the hcloud subprocess and inject a fake SDK client.

Out of scope: applying for / buying / importing / pushing / deploying / revoking / deleting / updating certificates, CSR management, private CA management, ShowCertificate deep-dive, cross-region aggregation and file export.

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. Missing hcloud is not fatal: the script falls back to the SDK.
  2. Active credential profile — configure credentials out-of-band (run the KooCLI configure command in your terminal, or export HUAWEICLOUD_SDK_AK / HUAWEICLOUD_SDK_SK). Never paste AK/SK into chat; the script never reads, echoes, or stores secrets itself.
  3. IAM permission — read-only scm:cert:list (certificate list); least-privilege policy in references/iam-policies.md.
  4. Python 3.8+ — standard library only for the CLI path; the SDK fallback additionally needs huaweicloudsdkcore + huaweicloudsdkscm.
  5. Outbound HTTPS access to *.myhuaweicloud.com.
  6. 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 region (default cn-north-4) — SCM certificates are region-scoped; SCM endpoints exist in cn-north-4, ap-southeast-1 and my-kualalumpur-1 per the SDK region table.
  2. Run the list script with the desired output mode and filters.
  3. Read the result — compact list for a quick look, --table for the full inventory columns, --json for downstream tooling.
  4. Handle the empty / error cases per the Edge Cases table (the script prints an explicit, actionable hint for each of them).

Core Commands

⚠️ Mandatory: every hcloud command in this skill MUST be wrapped with skill-quality-cli run --skill-name huawei-cloud-scm-cert-list -- — bare hcloud calls are strictly forbidden.

# Primary path: read-only certificate lis
Полный SKILL.md на ClawHub

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

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

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

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

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

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

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

FAQ

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

1. Inventory the Huawei Cloud SCM (SSL Certificate Manager / 云证书管理服务) certificates of the current account in one region, strictly read-only. Primary path: KooCLI `hcloud SCM ListCertificates` (read-only GET /v3/scm/certificates); when hcloud is unavailable or fails, fall back to the official `huaweicloudsdk` SCM SDK (huaweicloudsdkscm). 2. Output modes: a compact list of 证书名称 | 绑定域名 | 到期时间 (default), a full 8-column table with --table (证书ID / 名称 / 域名 / 类型 / 状态 / 到期时间 / 剩余天数 / region), and --json for the raw merged response body. 3. Filters: --content (certificate name / bound domain / SAN, server-side and client-side), --expiring N (client-side "expires in at most N days"), --expired-days-since N (server-side), --enterprise-project-id, --region (default cn-north-4). 4. Pagination: --limit 10/20/50 with automatic offset+limit paging until the whole certificate inventory is collected (--max-pages safety cap). 5. Built-in read-only guard: any mutating intent (create / delete / update / import / push / deploy / revoke / renew / buy ...) is rejected before execution with exit code 1 — this skill never writes to SCM. 6. Explicit error hints for an empty certificate list, 403 / missing `scm:cert:list` permission, missing credentials, missing hcloud, network failures and KooCLI [USE_ERROR] — always without a traceback. 7. Triggers include: "list SSL certificates", "SSL 证书列表", "证书盘点", "查询证书", "哪些证书快到期", "证书到期巡检", "SCM 证书", "证书类型 DV OV EV", "ssl cert inventory", "list scm certificates", "华为云证书". 8. Offline unit tests cover routing, pagination, output modes, filters, error classification and the write-intent guard (mock hcloud subprocess + fake SDK client).

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

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

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

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

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

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