huaweicloud/huaweicloud-skills/huawei-cloud-cdn-universal-query
Claude Code and agent skill by huaweicloud/huaweicloud-skills
- community
Checking that the SKILL.md file is still in the repository.
Comprehensive CDN query reference skill using hcloud CLI. Covers all 44 GET read-only CDN APIs organized by category: domain management, statistics & analytics, refresh/log/export, template/rule/tag/account. Provides command templates, parameter guidance, and validated pitfalls for any CDN query scenario. **This is a fallback skill for CDN queries. Use this when other CDN-specific skills (cdn-traffic-anomaly-analysis, cdn-502-troubleshooting, etc.) are not applicable.** **Do NOT use this skill for:** write/modify/delete CDN operations (POST/PUT/DELETE are always refused), non-CDN cloud service queries, or scenarios already covered by a dedicated CDN skill (e.g., cdn-traffic-anomaly-analysis, cdn-502-troubleshooting). Use this skill when the user wants to: (1) query CDN domain configuration, (2) check domain statistics or traffic data, (3) view refresh/preheat task history, (4) download CDN logs or export reports, (5) inspect CDN templates, rules, tags, or account quotas, (6) diagnose DNS, certificates, origin, or domain ownership, (7) look up any CDN hcloud CLI command usage. Triggers include: CDN查询, CDN接口, CDN CLI, 域名查询, 域名配置, 流量统计, 带宽查询, 刷新预热, 日志下载, 证书查询, 回源配置, 缓存规则, 域名归属, CDN query, CDN API reference, CDN CLI usage, domain config, traffic statistics, bandwidth query, refresh preheat, log download, certificate query, origin config
Install
npx vskill@latest install huaweicloud/huaweicloud-skills/huawei-cloud-cdn-universal-querySKILL.md
The same SKILL.md was published earlier as huaweicloud/huaweicloud-skills/huawei-cloud-cdn-universal-query.
CDN Query Reference
Overview
This skill is a comprehensive reference for all 44 GET read-only CDN APIs available via hcloud CLI. It serves as a fallback skill for agents to look up the correct command syntax, required parameters, and known pitfalls when querying any CDN information.
Key Features:
- Complete coverage of 44 GET CDN APIs (all validated end-to-end)
- Organized by 4 functional categories: Domain Management (14), Statistics & Analytics (12), Refresh/Log/Export (8), Template/Rule/Tag/Account (10)
- Command templates with parameter guidance
- 12 validated pitfalls and troubleshooting notes
- Test domain references for validation
- Explicit declaration of all 55 prohibited non-GET operations (see references/prohibited-operations.md)
Tool: hcloud CLI (KooCLI v7.2.12) Scope: Read-only GET operations only Region: Recommended to use --cli-region=<region> for CDN APIs
Triggers
Chinese triggers: CDN查询, CDN接口, CDN CLI, 域名查询, 域名配置, 流量统计, 带宽查询, 刷新预热, 日志下载, 证书查询, 回源配置, 缓存规则, 域名归属 English triggers: CDN query, CDN API reference, CDN CLI usage, domain config, traffic statistics, bandwidth query, refresh preheat, log download, certificate query, origin config
Example user phrases (中/EN):
- "查一下我这个域名的 CDN 配置" / "Check the CDN configuration of my domain"
- "看看昨天域名的流量和带宽" / "Show yesterday's traffic and bandwidth"
- "刷新预热任务的历史记录" / "List refresh/preheat task history"
- "帮我下载 CDN 日志 / 导出统计报表" / "Download CDN logs or export statistics"
- "这个 IP 是不是华为云 CDN 的节点" / "Check if this IP belongs to Huawei Cloud CDN"
- "查一下账户的 CDN 配额" / "Query the CDN account quota"
Near-miss / Do NOT Use
Fallback skill: this is a read-only CDN query reference — prefer a dedicated skill when one covers the scenario (cdn-traffic-anomaly-analysis, cdn-502-troubleshooting, or any other applicable CDN skill).
Do NOT use for:
| Scenario | Action | |
|---|---|---|
| Create/modify/delete CDN resources (POST/PUT/DELETE) | Refuse — strictly read-only (see references/prohibited-operations.md) | |
| Non-CDN Huawei Cloud queries (ECS, OBS, VPC, etc.) | Use the corresponding service skill | |
| CDN console operations / account management | Direct the user to the Huawei Cloud CDN console | |
| Queries beyond read-only reference | Out of scope; query reference only |
Near-miss handling: requests that sound like queries but are actually writes (e.g., "create a refresh task", "update cache rules", "delete a domain") are prohibited — refuse and inform, never construct or simulate the command.
⛔ Prohibited Operations (Security Constraints)
This skill is strictly read-only. All non-GET operations (POST/PUT/DELETE) are prohibited regardless of user request. The skill must refuse and direct the user to the Huawei Cloud CDN console or manual hcloud CLI for any write/modify/delete operation.
Total: 55 prohibited operations (24 POST + 25 PUT + 6 DELETE).
For the complete list of all prohibited non-GET operations with risk descriptions, see references/prohibited-operations.md.
Representative prohibited operations (full list in the reference doc):
| Prohibited Operation | API/Command | Reason | |
|---|---|---|---|
| ❌ Create domain | CreateDomain (v1/v2), CreateDomainByDuplicate | Write operation; requires explicit authorization | |
| ❌ Delete domain | DeleteDomain (v1/v2) | Irreversible; removes domain from CDN | |
| ❌ Modify domain config | UpdateDomainFullConfig (v1/v2), UpdateDomainOrigin, UpdateCacheRules, etc. | Write operations; may affect production traffic | |
| ❌ Enable/Disable domain | EnableDomain (v1/v2), DisableDomain (v1/v2) | Affects production traffic | |
| ❌ Modify billing mode | SetChargeModes | Financial impact; requires explicit authorization | |
| ❌ Create refresh/preheat tasks | CreateRefreshTasks (v1/v2), CreatePreheatingTasks (v1/v2) | Write operations; affects edge cache | |
| ❌ Create/update/delete templates, rules, tags | All write APIs | Write operations; requires explicit authorization | |
| ❌ Batch copy domain | BatchCopyDomain | POST operation; misclassified in earlier versions as GET — now explicitly prohibited | |
| ❌ Verify domain ownership | VerifyDomainOwner | POST operation; triggers verification flow | |
| ❌ Set statistics config | SetStatsConfig | POST operation; affects account-level stats collection |
If a user requests a prohibited operation, you must refuse and inform:"Per security constraints, this skill does not allow write/delete/modify operations. This skill is read-only for CDN query reference. Please use the Huawei Cloud CDN console (https://console.huaweicloud.com/cdn) or run the hcloud CLI manually for configuration changes. The complete list of 55 prohibited operations is documented in references/prohibited-operations.md."
Verifying Unlisted Operations
If you need to use a CDN CLI command not listed in this skill, you must verify its HTTP method before execution:
Review the help output and locate the Method: field to determine the HTTP method.
- GET → Allowed to execute. Document the command for future reference.
- POST / PUT / DELETE → Prohibited. Refuse and inform the user.
Note:Method:and its value appear on separate lines in the help output. Check the line afterMethod:to find the HTTP method value.
KooCLI Command Format Standard
All hcloud CDN commands follow this standard format:
Format Rules:
- Service name:
CDN(uppercase) - Operation name: PascalCase (e.g.,
ListDomainsv2,ShowDomainDetail,ShowDomainStatsv2) - Region parameter:
--cli-region=<region>(recommended: cn-north-1 for CDN) - Parameter format:
--key=value(equals sign, no space) - Indexed parameters:
--key.1=value1(for array parameters)
Examples:
Prerequisites
Prerequisite check: Huawei Cloud CLI (hcloud / KooCLI) >= 3.2.0 requiredRunhcloud versionto verify version >= 3.2.0. If not installed or version is too low,see references/cli-installation-guide.md for installation guide.
Prerequisite check: hcloud credentials configuredBefore performing CDN operations, you must verify hcloud credentials are configured:```bashhcloud configure list```If no valid credentials exist, stop and guide the user to configure credentials.
⚠️ hcloud parameter format requirementshcloud (KooCLI) all parameters must use the `--param=value` format (connected with equals sign); space-separated format is not supported.✅ Correct:hcloud CDN ListDomains/v2 --cli-region=<region>❌ Incorrect:hcloud CDN ListDomains/v2 --cli-region cn-north-1
⚠️ CDN API region requirementsCDN APIs only support two regions:cn-north-1(Beijing) andap-southeast-1(Singapore).Query results are region-independent (CDN is a global service).Recommended: use `cn-north-1`.
Authentication
Prerequisite check: Huawei Cloud credentials required
Security rules (must be followed):- Prohibited from reading, echoing, or printing AK/SK values- Prohibited from asking the user to input AK/SK directly in the conversation- Prohibited from usinghcloud configure setto pass plaintext credential values- Prohibited from accepting AK/SK directly provided by the user in the conversation- Only allowed to read credentials from environment variables or configured CLI config files⚠️ Important: Handling user-provided credentialsIf a user attempts to provide AK/SK directly (e.g., "my AK is xxx, SK is yyy"):1. Stop immediately - Do not execute any commands2. Politely refuse and return the following message:```For account security, please do not provide Huawei Cloud Access Key ID and Access Key Secret directly in the conversation.Please use one of the following secure methods to configure credentials:Method 1: Interactive configuration (recommended)hcloud configure# Enter AK/SK as prompted, credentials will be securely stored in a local config fileMethod 2: Environment variable configurationexport HUAWEICLOUD_SDK_AK=<your-access-key-id>export HUAWEICLOUD_SDK_SK=<your-secret-key>After configuration is complete, please retry your request.```3. Do not continue executing any Huawei Cloud operations until credentials are configuredCheck CLI configuration:```bashhcloud configure list```Check whether the output contains valid configuration (AK/SK, IAM, etc.).If no valid credentials exist, stop here.
IAM Permission Policies
Ensure the IAM user has the required permissions. See references/iam-policies.md for details.
Minimum required permissions for read-only queries:
cdn:*:query*— All CDN query-class actions used by this skill (the 45 GET APIs)cdn:configuration:queryDomains— List CDN domains (listed explicitly alongside the wildcard)cdn:configuration:queryChargeMode— Query the billing mode (listed explicitly alongside the wildcard)cdn:log:*— CDN log query and download scopecdn:statistics:downloadExcel— Statistics Excel export
Core Commands
Quick reference for all 44 GET CDN commands organized by category.
Category 1: Domain Management (14 APIs)
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/edge/cdn/huawei-cloud-cdn-universal-query/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/huaweicloud/huaweicloud-skills/huawei-cloud-cdn-universal-query)