Install
openclaw skills install @dev-skills-operator/huawei-cloud-resource-inventoryQuery all Huawei Cloud resources under a tenant across all regions and display their inter-resource relationships in grouped tables. Aggregates ECS / BMS / RDS / EVS / DCS / CCE / VPC / Subnet / EIP / ELB / NAT / DNS resources in a single run, builds an in-memory relationship index (network topology, storage mount, dependency), and outputs results as plain-text tables grouped by resource type. Read-only — never creates, modifies, or deletes any resource. Use this skill when the user needs a full resource inventory, resource relationship audit, network topology overview, or cross-region resource census. Triggers include: "查询租户资源", "资源清单", "资源关联", "资源盘点", "resource inventory", "cloud resource list", "全量资源查询", "资源拓扑", "tenant resources", "资源关联关系", "cross-region resource audit".
openclaw skills install @dev-skills-operator/huawei-cloud-resource-inventoryThis skill aggregates all Huawei Cloud resources under a tenant across multiple services and regions, builds inter-resource relationship indexes, and outputs results as plain-text tables grouped by resource type.
Agent → Python SDK (huaweicloudsdk{ecs,bms,rds,evs,dcs,cce,vpc,eip,elb,nat,dns,iam})
→ Cross-region parallel query
→ In-memory relationship index (VPC↔Subnet↔ECS, EIP↔ECS, EVS↔ECS, CCE↔VPC)
→ Grouped table output
| Resource Type | Service | Key Relationship Fields |
|---|---|---|
| VPC | VPC v3 | id, name, cidr |
| Subnet | VPC v2 | vpc_id (→VPC), az |
| ECS | ECS v2 | vpc_id, subnet_id, eip_port_ids, volume_ids |
| BMS | BMS v1 | az |
| EIP | EIP v2 | port_id (→ECS), associated_server |
| ELB | ELB v3 | vpc_id, subnet_id |
| NAT | NAT v2 | vpc_id (router_id), internal_network_id |
| RDS | RDS v3 | vpc_id, subnet_id |
| EVS | EVS v2 | attached_to (→ECS server_id) |
| DCS | DCS v2 | vpc_id, subnet_id |
| CCE | CCE v3 | vpc_id, subnet_id, node_count |
| DNS | DNS v2 | zone_type (public/private) |
Capability Boundary: This skill only queries resources. It does not create, modify, or delete any resource. It does not query billing, monitoring, or alarm data.
| Variable | Required | Description |
|---|---|---|
| AK (any of) | Yes | HUAWEICLOUD_SDK_AK / HW_ACCESS_KEY / OBS_ACCESS_KEY |
| SK (any of) | Yes | HUAWEICLOUD_SDK_SK / HW_SECRET_KEY / OBS_SECRET_KEY |
| HTTPS_PROXY | No | Proxy URL if behind a proxy |
See references/iam-policies.md for the minimum IAM permissions required.
pip install -r requirements.txt
export HUAWEICLOUD_SDK_AK="your-ak"
export HUAWEICLOUD_SDK_SK="your-sk"
# Query all resources across all regions
python3 scripts/resource_inventory.py
# Query a specific region
python3 scripts/resource_inventory.py --region cn-north-4
# Query specific resource types
python3 scripts/resource_inventory.py --resource-type ecs,vpc,eip
# Output as JSON
python3 scripts/resource_inventory.py --format json
# List supported capabilities
python3 scripts/resource_inventory.py --capability-list
| Command | Description |
|---|---|
python3 scripts/resource_inventory.py | Query all resources in all regions (table output) |
python3 scripts/resource_inventory.py --region cn-north-4 | Query all resources in a specific region |
python3 scripts/resource_inventory.py --resource-type ecs,vpc,eip | Query specific resource types |
python3 scripts/resource_inventory.py --format json | Output as JSON |
python3 scripts/resource_inventory.py --capability-list | List supported resource types |
| Parameter | Default | Description |
|---|---|---|
--region | all regions | Specific region to query |
--resource-type | all types | Comma-separated resource types |
--format | table | Output format: table or json |
--capability-list | - | List capabilities and exit |
This skill uses SDK mode (huaweicloudsdk Python packages), not hcloud CLI. No KooCLI commands are used. All API calls are made via Python SDK clients.
If CLI mode is needed in the future, the standard format would be:
hcloud <Service> <Operation> --cli-region={region} [--params]