Install
openclaw skills install huawei-cloud-network-queryQueries Huawei Cloud network resources (VPC/EIP/ELB/NAT/VPN/DNS). Covers VPCs, subnets, security groups, firewalls, route tables, flow logs, EIPs, bandwidths, load balancers, listeners, pools, health monitors, NAT gateways, SNAT/DNAT rules, VPN gateways, VPN connections, DNS zones, record sets, PTR records, and endpoints. No write operations. Use this skill when the user needs to query network topology, security group rules, load balancer config, NAT rules, VPN status, or DNS resolution info. Triggers: VPC, 子网, 安全组, EIP, 弹性公网IP, ELB, 负载均衡, NAT网关, VPN, DNS, 域名解析, 路由表, 防火墙, 带宽, network, subnet, security group.
openclaw skills install huawei-cloud-network-query⚠️ Execution Method (Must Read): This skill executes queries via local Python scripts. Using hcloud, openstack or other CLI tools or direct API calls is prohibited.
- Query scripts are located under the skill directory
scripts/<service_category>/(e.g.,scripts/as/list_scaling_groups.py)- All scripts and environment check scripts are inside the skill package. You must use
skill action=execto execute them. Do not run them directly in a shell.- For specific script paths and parameters, refer to
references/<service>/guide.md- Do not attempt hcloud, openstack, curl IAM or other CLI/API methods. This skill does not depend on those tools.
- All paths are relative to the skill directory, which is the directory where this SKILL.md is located.
This skill is an independent read-only query skill that queries Huawei Cloud resources, available specifications, and existing resource information by calling the Huawei Cloud Python SDK via local Python scripts.
This skill is applicable to the following scenarios:
This skill is NOT responsible for:
This skill provides query capabilities through categorized scripts in the scripts directory, and usage instructions through categorized guides in the references directory. The capabilities provided by this skill include:
Important: Script paths executed within this skill are all relative paths under the skill directory, which is the directory where this SKILL.md is located.
-h to view usage before executing each scriptYou must run the environment check script first to complete environment validation and dependency installation in one step:
skill action=exec: bash skill://scripts/check_env.shskill action=exec: powershell -ExecutionPolicy Bypass -File skill://scripts/check_env.ps1Windows Note: Do not use
&&to concatenate commands (PowerShell 5.x does not support it). Use semicolons if you need to change directories first.
The script will check in order: Python >= 3.6 → Install dependencies → Validate SDK → Validate credentials → Validate service availability. If the environment check fails, fix the issues before continuing with other scripts.
Environment Variables:
| Variable | Required | Description |
|---|---|---|
| HW_ACCESS_KEY | Yes | Huawei Cloud AK |
| HW_SECRET_KEY | Yes | Huawei Cloud SK |
| HW_REGION_NAME | No | Default cn-north-4 |
| HW_PROJECT_ID | No | Project ID (automatically obtained via IAM API when not set) |
| HW_SECURITY_TOKEN | No | Required when using temporary AK/SK |
Do not output the values of the above environment variables. For additional parameters required by other resource scripts (availability zone, enterprise project, etc.), see the corresponding guide.md.
When this skill is invoked, you must follow these steps. Do not wait for the user to prompt again:
Run the environment check script to ensure dependencies are installed and credentials are configured:
skill action=exec: bash skill://scripts/check_env.shskill action=exec: powershell -ExecutionPolicy Bypass -File skill://scripts/check_env.ps1If the environment check fails, fix the issues as prompted and re-run until it passes.
references/<service>/guide.md to determine the script path and parameters to execute-h to view the script usage:
skill action=exec: skill://.venv/bin/python3 skill://scripts/<service>/<script>.py -hskill action=exec: skill://.venv/Scripts/python3.exe skill://scripts/<service>/<script>.py -hskill action=exec: skill://.venv/bin/python3 skill://scripts/<service>/<script>.py <parameters>skill action=exec: skill://.venv/Scripts/python3.exe skill://scripts/<service>/<script>.py <parameters>Important:
skill action=exec to execute them. Do not run them directly in a shell..venv/bin/python3; on Windows, it is at .venv/Scripts/python3.exepython3--project_id parameter is optional; when not provided, it is automatically obtained via IAM API based on the regionThe directory conventions are as follows (all paths are relative to the skill directory):
scripts/<resource_category>/ contains the corresponding Python query scripts. There is no need to read script contents; just execute the scripts according to the instructions in guide.mdreferences/<resource_category>/guide.md contains the usage guide for the corresponding resourceBefore executing a query script, confirm the following parameters:
| Parameter | Required | Description |
|---|---|---|
| region | Yes | Huawei Cloud region, e.g., cn-north-4 |
| --project_id | No | Project ID; automatically obtained when not provided |
| --availability_zone | No | Availability zone; required for some resource queries |
For script-specific parameters, see references/<service>/guide.md.
Query results are output in JSON format and include the following common fields:
total: Total number of matched resourcesitems: Resource list, where each resource contains key fields such as id, name, status, etc.-h parameter to view script usage and confirm parameters are correcttotal count is reasonable--help to view the complete list of parameters supported by a scriptreferences/<service>/guide.mdskill action=exec; do not run them directly in a shell