huawei-cloud-eip-query
БесплатноЗапускает вложенные скриптыНе проверенHuawei Cloud EIP (Elastic Public IP) query and bandwidth monitoring skill using hcloud CLI (KooCLI). Supports listing Elastic Public IPs, viewing EIP details…
от huaweicloudskill204 установки в других каталогахОб этом скилле
Huawei Cloud EIP Query and Bandwidth Monitoring
1. Overview
Functional Overview
This skill combines EIP resource query (VPC EIP service) and EIP bandwidth monitoring (Cloud Eye / CES service) into one workflow. Users can first list and inspect Elastic Public IPs, then query their real-time or historical bandwidth monitoring data — usage rate, inbound/outbound traffic, and peak/avg bandwidth — to support daily inspection, traffic analysis, and fault troubleshooting.
Architecture Diagram
User Request → hcloud CLI (KooCLI)
├── hcloud eip ListPublicips/v2 → EIP resource list
├── hcloud eip ShowPublicip/v2 → EIP detail (bandwidth_id, size, status)
└── hcloud ces ShowMetricData → Cloud Eye monitoring data (SYS.VPC)
Application Scenarios
- Query EIP resources and their basic attributes (IP, status, bandwidth, type)
- Query EIP bandwidth usage rate (outbound/inbound) as percentage
- Query inbound/outbound traffic volume (Byte) over a time range
- Query bandwidth peak (
filter=max) and average (filter=average) values (bit/s) - Historical monitoring query with configurable start/end time and aggregation period
- Daily inspection, traffic analysis, capacity planning, fault troubleshooting
User Scenario Examples
- Basic EIP list: "List all Elastic Public IPs in my account"
- EIP detail: "Show details of EIP 0521f035-..."
- Bandwidth usage: "What is the bandwidth usage rate of EIP X in the last 24 hours?"
- Traffic analysis: "Show inbound/outbound traffic of EIP X for the last 7 days"
- Peak/avg bandwidth: "What is the peak and average bandwidth of EIP X today?"
2. Prerequisites
CLI Installation and Verification
Before starting any operation, install and verify Huawei Cloud CLI (hcloud):
> **⚠️ Mandatory: every `hcloud` command in this skill MUST be wrapped with `skill-quality-cli run --skill-name huawei-cloud-eip-query -- ` — bare `hcloud` calls are strictly forbidden.**
skill-quality-cli run --skill-name huawei-cloud-eip-query -- hcloud version
If not installed, follow the installation guide in references/cli-installation-guide.md.
Configuration Method
Credential configuration is the user's responsibility. This skill does not execute any credential configuration commands. Configure credentials in your terminal, then use
hcloud configure listto verify.
Reference configuration command:
skill-quality-cli run --skill-name huawei-cloud-eip-query -- hcloud configure init
Security Rules
[MUST] Before invoking any CLI command, check credential status:
skill-quality-cli run --skill-name huawei-cloud-eip-query -- hcloud configure list
- NEVER read, echo, or print AK/SK values
- NEVER ask the user to input AK/SK in the conversation or command line
- ONLY use
hcloud configure listto verify credential status
If no valid configuration exists, STOP and ask the user to configure credentials in their terminal.
IAM Permission Requirements
This skill is read-only. Required permissions:
vpc:publicIps:list- List EIPsvpc:publicIps:get- Get EIP detailsces:metrics:list- List Cloud Eye metricsces:metricData:get- Get Cloud Eye metric data
Detailed policies: references/iam-policies.md
Permission Failure Handling
If an operation fails with a permission error, guide the user to references/iam-policies.md
and help them configure the required custom IAM policy.
3. KooCLI Command Format Standard
skill-quality-cli run --skill-name huawei-cloud-eip-query -- hcloud <Service> <Operation> --cli-region=<region> [--key=value ...]
| Item | Description | Example |
|---|---|---|
| Service | EIP for VPC EIP; CES for Cloud Eye | EIP, CES |
| Operation | PascalCase (optional version suffix) | ListPublicips/v2, ShowMetricData |
| Region | --cli-region=<value> always required |
--cli-region=cn-north-4 |
| Parameters | --key=value simple; --dim.0=key,value indexed for CES dims |
--publicip_id=xxx |
4. Core Workflow
Step 1: List EIPs
skill-quality-cli run --skill-name huawei-cloud-eip-query -- hcloud eip ListPublicips/v2 --cli-region={region} --limit={limit}
Returned fields include id, public_ip_address, status, type, bandwidth_id,
bandwidth_name, bandwidth_size. Use the id as publicip_id for the next steps.
Step 2: Show EIP Detail (optional)
skill-quality-cli run --skill-name huawei-cloud-eip-query -- hcloud eip ShowPublicip/v2 --cli-region={region} --publicip_id={publicip_id}
Returns full EIP detail including bandwidth_id, bandwidth_size, bandwidth_share_type,
create_time, enterprise_project_id.
Step 3: List Available Metrics (optional)
skill-quality-cli run --skill-name huawei-cloud-eip-query -- hcloud ces ListMetrics --cli-region={region} --namespace=SYS.VPC
EIP monitoring metri
Установить huawei-cloud-eip-query в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл huawei-cloud-eip-query?
Huawei Cloud EIP (Elastic Public IP) query and bandwidth monitoring skill using hcloud CLI (KooCLI). Supports listing Elastic Public IPs, viewing EIP details, and querying Cloud Eye (CES) bandwidth monitoring data for EIPs: bandwidth usage rate (%), inbound/outbound traffic (Byte), peak/avg bandwidth (bit/s), across a configurable time range with aggregation period. Use when users need to query EIP resources, check EIP bandwidth utilization, analyze inbound/outbound traffic, monitor bandwidth peaks/averages, or troubleshoot EIP bandwidth issues. Triggers: "EIP query", "EIP list", "弹性公网IP查询", "EIP带宽监控", "带宽使用率", "流入流量", "流出流量", "带宽峰值", "带宽均值", "EIP监控", "带宽监控", "EIP bandwidth", "traffic monitoring", "CES metrics", "Cloud Eye metrics"
Как установить скилл huawei-cloud-eip-query?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл huawei-cloud-eip-query запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic