huaweicloud/huaweicloud-skills228 files

Huawei Cloud Network Query

Queries 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.

Specification
Skill ID
huaweicloud/huaweicloud-skills/huawei-cloud-network-query
Publisher
huaweicloud
Repository
huaweicloud-skills
Installs
303
Files
228
Synced
Sep 16, 2026
How to use it

Open any RiverX project, open the Skills panel in the chat, and search for this identifier. The files are fetched from the source repository at install time.

huaweicloud/huaweicloud-skills/huawei-cloud-network-queryInstalls these files
  • SKILL.md
  • references/dns/guide.md
  • references/eip/guide.md
  • references/elb/guide.md
  • references/nat/guide.md
  • references/vpc/guide.md
  • references/vpn/guide.md
  • requirements.txt
  • scripts/check_env.ps1
  • scripts/check_env.sh
  • scripts/config.py
  • scripts/dns/list_api_versions.py
  • scripts/dns/list_custom_line.py
  • scripts/dns/list_endpoint_ipaddresses.py
  • scripts/dns/list_endpoint_vpcs.py
  • scripts/dns/list_endpoints.py
  • scripts/dns/list_instances.py
  • scripts/dns/list_line_groups.py
  • scripts/dns/list_name_servers.py
  • scripts/dns/list_private_zones.py
  • scripts/dns/list_ptr_records.py
  • scripts/dns/list_ptrs.py
  • scripts/dns/list_public_zone_lines.py
  • scripts/dns/list_public_zones.py
  • scripts/dns/list_record_sets.py
  • scripts/dns/list_record_sets_by_zone.py
  • scripts/dns/list_record_sets_with_line.py
  • scripts/dns/list_resolver_query_log_configs.py
  • scripts/dns/list_resolver_rules.py
  • scripts/dns/list_system_lines.py
  • scripts/dns/list_tags.py
  • scripts/dns/show_api_info.py
  • scripts/dns/show_authorize_txt_record.py
  • scripts/dns/show_batch_create_record_sets_task.py
  • scripts/dns/show_batch_operation_task.py
  • scripts/dns/show_dnssec_config.py
  • scripts/dns/show_domain_detection.py
  • scripts/dns/show_domain_quota.py
  • scripts/dns/show_email_record_set.py
  • scripts/dns/show_endpoint.py
  • scripts/dns/show_line_group.py
  • scripts/dns/show_private_zone.py
  • scripts/dns/show_private_zone_name_server.py
  • scripts/dns/show_ptr.py
  • scripts/dns/show_ptr_record_set.py
  • scripts/dns/show_public_zone.py
  • scripts/dns/show_public_zone_name_server.py
  • scripts/dns/show_record_set.py
  • scripts/dns/show_record_set_by_zone.py
  • scripts/dns/show_record_set_with_line.py
  • scripts/dns/show_resolver_query_log_config.py
  • scripts/dns/show_resolver_rule.py
  • scripts/dns/show_resource_tag.py
  • scripts/dns/show_retrieval.py
  • scripts/dns/show_retrieval_verification.py
  • scripts/dns/show_website_record_set.py
  • scripts/dns/show_zone_name_server.py
  • scripts/eip/count_eip_available_resources.py
  • scripts/eip/list_bandwidth.py
  • scripts/eip/list_bandwidths_limit.py
  • scripts/eip/list_common_pools.py
  • scripts/eip/list_eip_bandwidths.py
  • scripts/eip/list_project_geip_bindings.py
  • scripts/eip/list_publicip_pool.py
  • scripts/eip/list_publicips.py
  • scripts/eip/list_share_bandwidth_types.py
  • scripts/eip/list_tenant_vpc_igws.py
  • scripts/eip/show_internal_vpc_igw.py
  • scripts/eip/show_publicip.py
  • scripts/eip/show_publicip_pool.py
  • scripts/eip/show_publicip_pool_types.py
  • scripts/elb/count_preoccupy_ip_num.py
  • scripts/elb/list_all_l7_rules.py
  • scripts/elb/list_all_members.py
  • scripts/elb/list_api_versions.py
  • scripts/elb/list_availability_zones.py
  • scripts/elb/list_certificates.py
  • scripts/elb/list_domain_i_ps.py
  • scripts/elb/list_feature_configs.py
  • scripts/elb/list_flavors.py
  • scripts/elb/list_health_monitors.py
  • scripts/elb/list_ip_groups.py
  • scripts/elb/list_jobs.py
  • scripts/elb/list_l7_policies.py
  • scripts/elb/list_l7_rules.py
  • scripts/elb/list_listener_tags.py
  • scripts/elb/list_listeners.py
  • scripts/elb/list_load_balancers.py
  • scripts/elb/list_loadbalancer_feature.py
  • scripts/elb/list_loadbalancer_tags.py
  • scripts/elb/list_logtanks.py
  • scripts/elb/list_master_slave_pools.py
  • scripts/elb/list_members.py
  • scripts/elb/list_pools.py
  • scripts/elb/list_quota_details.py
  • scripts/elb/list_recycle_bin_load_balancers.py
  • scripts/elb/list_security_policies.py
  • scripts/elb/list_system_security_policies.py
  • scripts/elb/show_certificate.py
  • scripts/elb/show_certificate_private_key_echo.py
  • scripts/elb/show_flavor.py
  • scripts/elb/show_health_monitor.py
  • scripts/elb/show_ip_group.py
  • scripts/elb/show_ip_group_related_listeners.py
  • scripts/elb/show_job.py
  • scripts/elb/show_l7_policy.py
  • scripts/elb/show_l7_rule.py
  • scripts/elb/show_listener.py
  • scripts/elb/show_listener_tags.py
  • scripts/elb/show_load_balancer.py
  • scripts/elb/show_load_balancer_ports.py
  • scripts/elb/show_load_balancer_status.py
  • scripts/elb/show_load_balancer_topology.py
  • scripts/elb/show_loadbalancer_tags.py
  • scripts/elb/show_logtank.py
  • scripts/elb/show_master_slave_pool.py
  • scripts/elb/show_member.py
  • scripts/elb/show_member_health_check_job.py
  • scripts/elb/show_pool.py
  • scripts/elb/show_quota.py
  • scripts/elb/show_recycle_bin.py
  • scripts/elb/show_security_policy.py
  • scripts/ensure_env.py
  • scripts/iam/get_project_id.py
  • scripts/nat/list_nat_gateway_by_tag.py
  • scripts/nat/list_nat_gateway_dnat_rules.py
  • scripts/nat/list_nat_gateway_snat_rules.py
  • scripts/nat/list_nat_gateway_specs.py
  • scripts/nat/list_nat_gateway_tag.py
  • scripts/nat/list_nat_gateways.py
  • scripts/nat/list_private_dnats.py
  • scripts/nat/list_private_nat_tags.py
  • scripts/nat/list_private_nats.py
  • scripts/nat/list_private_nats_by_tags.py
  • scripts/nat/list_private_snats.py
  • scripts/nat/list_specs.py
  • scripts/nat/list_transit_ip.py
  • scripts/nat/list_transit_ip_tags.py
  • scripts/nat/list_transit_ips_by_tags.py
  • scripts/nat/list_transit_subnet.py
  • scripts/nat/list_transit_subnet_tags.py
  • scripts/nat/list_transit_subnets_by_tags.py
  • scripts/nat/show_nat_gateway.py
  • scripts/nat/show_nat_gateway_dnat_rule.py
  • scripts/nat/show_nat_gateway_snat_rule.py
  • scripts/nat/show_nat_gateway_tag.py
  • scripts/nat/show_private_dnat.py
  • scripts/nat/show_private_nat.py
  • scripts/nat/show_private_nat_tags.py
  • scripts/nat/show_private_snat.py
  • scripts/nat/show_transit_ip.py
  • scripts/nat/show_transit_ip_tags.py
  • scripts/nat/show_transit_subnet.py
  • scripts/nat/show_transit_subnet_tags.py
  • scripts/vpc/list_address_group.py
  • scripts/vpc/list_address_groups_dependency.py
  • scripts/vpc/list_firewall.py
  • scripts/vpc/list_flow_logs.py
  • scripts/vpc/list_ports.py
  • scripts/vpc/list_privateips.py
  • scripts/vpc/list_route_tables.py
  • scripts/vpc/list_security_group_rules.py
  • scripts/vpc/list_security_groups.py
  • scripts/vpc/list_sub_network_interfaces.py
  • scripts/vpc/list_subnets.py
  • scripts/vpc/list_traffic_mirror_filter_rules.py
  • scripts/vpc/list_traffic_mirror_filters.py
  • scripts/vpc/list_traffic_mirror_sessions.py
  • scripts/vpc/list_virsubnet_cidr_reservations.py
  • scripts/vpc/list_virsubnets.py
  • scripts/vpc/list_vpc_peerings.py
  • scripts/vpc/list_vpc_routes.py
  • scripts/vpc/list_vpcs.py
  • scripts/vpc/show_address_group.py
  • scripts/vpc/show_firewall.py
  • scripts/vpc/show_flow_log.py
  • scripts/vpc/show_network_ip_availabilities.py
  • scripts/vpc/show_port.py
  • scripts/vpc/show_privateip.py
  • scripts/vpc/show_quota.py
  • scripts/vpc/show_route_table.py
  • scripts/vpc/show_security_group.py
  • scripts/vpc/show_security_group_rule.py
  • scripts/vpc/show_sub_network_interface.py
  • scripts/vpc/show_sub_network_interfaces_quantity.py
  • scripts/vpc/show_subnet.py
  • scripts/vpc/show_traffic_mirror_filter.py
  • scripts/vpc/show_traffic_mirror_filter_rule.py
  • scripts/vpc/show_traffic_mirror_session.py
  • scripts/vpc/show_virsubnet.py
  • scripts/vpc/show_virsubnet_cidr_reservation.py
  • scripts/vpc/show_vpc.py
  • scripts/vpc/show_vpc_peering.py
  • scripts/vpc/show_vpc_route.py
  • scripts/vpn/list_availability_zones.py
  • scripts/vpn/list_cgws.py
  • scripts/vpn/list_connection_monitors.py
  • scripts/vpn/list_extended_availability_zones.py
  • scripts/vpn/list_p2c_vgw_availability_zones.py
  • scripts/vpn/list_p2c_vgw_connections.py
  • scripts/vpn/list_p2c_vgws.py
  • scripts/vpn/list_p2c_vpn_gateway_jobs.py
  • scripts/vpn/list_project_tags.py
  • scripts/vpn/list_resources_by_tags.py
  • scripts/vpn/list_vgws.py
  • scripts/vpn/list_vpn_access_policies.py
  • scripts/vpn/list_vpn_connections.py
  • scripts/vpn/list_vpn_gateway_jobs.py
  • scripts/vpn/list_vpn_servers_by_project.py
  • scripts/vpn/list_vpn_servers_by_vgw.py
  • scripts/vpn/list_vpn_user_groups.py
  • scripts/vpn/list_vpn_users.py
  • scripts/vpn/list_vpn_users_in_group.py
  • scripts/vpn/show_cgw.py
  • scripts/vpn/show_client_ca.py
  • scripts/vpn/show_connection_monitor.py
  • scripts/vpn/show_p2c_vgw.py
  • scripts/vpn/show_quotas_info.py
  • scripts/vpn/show_resource_tags.py
  • scripts/vpn/show_vgw.py
  • scripts/vpn/show_vpn_access_policy.py
  • scripts/vpn/show_vpn_connection.py
  • scripts/vpn/show_vpn_connection_log.py
  • scripts/vpn/show_vpn_connections_log_config.py
  • scripts/vpn/show_vpn_gateway_certificate.py
  • scripts/vpn/show_vpn_gateway_routing_table.py
  • scripts/vpn/show_vpn_user.py
  • scripts/vpn/show_vpn_user_group.py

What this skill tells the agent

Huawei Cloud Resource 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=exec` to 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.

Overview

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:

  1. Query available cloud resource specifications in a specific region
  2. Query which images are available for a certain operating system
  3. Query cloud disk types and existing cloud disk information
  4. Query existing resources and their key attributes
  5. Query resources that were not created through Terraform or other IaC tools
  6. Prepare real parameters for automated configuration, resource verification, or environment inventory
  7. Obtain reusable information such as resource IDs, names, specifications, images, networks, and disks

This skill is NOT responsible for:

  1. Creating resources
  2. Modifying resources
  3. Deleting resources
  4. Guessing or fabricating information that has not been queried

Capability Scope

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:

  1. Query resource lists
  2. Query individual resource details
  3. Query selection information such as available specifications, images, and disk types
  4. Query key identifiers and dependency relationships of existing resources

Usage Principles

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.

  1. This skill only performs queries; it does not perform any write operations
  2. Prioritize information explicitly specified by the user, such as region, project, AZ, resource name, resource ID, etc.
  3. Query results must be based on actual API responses; do not infer from experience
  4. Returned results should prioritize retaining key fields for subsequent reuse
  5. When the result set is large, narrow the scope first by conditions such as region, name, id, status, tag, etc.
  6. If there is no corresponding script or guide for the current resource type, clearly state that it is not supported; do not return unreliable results
  7. If the user does not provide necessary scope information and there are no default values in the environment, confirm with the user before executing the query
  8. Execute directly according to guide.md; do not view the script contents in the scripts directory
  9. Cache output when it is large
  10. You must run -h to view usage before executing each script
  11. Do not make up script names. Execute according to the script names in guide.md. If a script name is not in guide.md, it means it is not supported

Prerequisites

You must run the environment check script first to complete environment validation and dependency installation in one step:

  • Linux / macOS: skill action=exec: bash skill://scripts/check_env.sh
  • Windows: skill action=exec: powershell -ExecutionPolicy Bypass -File skill://scripts/check_env.ps1
Windows 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:

VariableRequiredDescription
HW_ACCESS_KEYYesHuawei Cloud AK
HW_SECRET_KEYYesHuawei Cloud SK
HW_REGION_NAMENoDefault cn-north-4
HW_PROJECT_IDNoProject ID (automatically obtained via IAM API when not set)
HW_SECURITY_TOKENNoRequired 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.


Execution Flow

When this skill is invoked, you must follow these steps. Do not wait for the user to prompt again:

Step 1: Environment Preparation

Run the environment check script to ensure dependencies are installed and credentials are configured:

  • Linux / macOS: skill action=exec: bash skill://scripts/check_env.sh
  • Windows: skill action=exec: powershell -ExecutionPolicy Bypass -File skill://scripts/check_env.ps1

If the environment check fails, fix the issues as prompted and re-run until it passes.

Step 2: Identify and Execute Query Scripts

  1. Based on the user's query intent, read references/<service>/guide.md to determine the script path and parameters to execute
  2. First run -h to view the script usage:
  • Linux / macOS: skill action=exec: skill://.venv/bin/python3 skill://scripts/<service>/<script>.py -h
  • Windows: skill action=exec: skill://.venv/Scripts/python3.exe skill://scripts/<service>/<script>.py -h
  1. Assemble parameters based on user needs and execute the script:
  • Linux / macOS: skill action=exec: skill://.venv/bin/python3 skill://scripts/<service>/<script>.py <parameters>
  • Windows: skill action=exec: skill://.venv/Scripts/python3.exe skill://scripts/<service>/<script>.py <parameters>
  1. Format the results and return them to the user

Important:

  • All scripts and environment check scripts are inside the skill package. You must use `skill action=exec` to execute them. Do not run them directly in a shell.
  • The venv is automatically created by the check_env script. On Linux/macOS, Python is located at .venv/bin/python3; on Windows, it is at .venv/Scripts/python3.exe
  • Do not execute scripts directly with python3
  • Do not read the script source code in the scripts directory; just follow the instructions in guide.md
  • Cache results when the output is large
  • The --project_id parameter is optional; when not provided, it is automatically obtained via IAM API based on the region

Directory Structure

The directory conventions are as follows (all paths are relative to the skill directory):

  1. 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.md
  2. references/<resource_category>/guide.md contains the usage guide for the corresponding resource
  3. Each script is responsible for a single, clear query action
  4. Each resource category must maintain at least one guide.md to document script capabilities, parameters, and usage

Parameter Confirmation

Before executing a query script, confirm the following parameters:

ParameterRequiredDescription
regionYesHuawei Cloud region, e.g., cn-north-4
--project_idNoProject ID; automatically obtained when not provided
--availability_zoneNoAvailability zone; required for some resource queries

For script-specific parameters, see references/<service>/guide.md.


Output Format