Queries Huawei Cloud storage resources (EVS/OBS/SFS/CBR). Covers cloud disks (volumes/snapshots/types/quotas/recycle bin), OBS buckets (ACL/metadata/notifica...
Coding
huawei-cloud-vbs-list
Try itQuery the current Huawei Cloud backup (VBS/Volume Backup Service) list. Lists all backups in the user's project, with optional filtering by status, name, resource type, vault, and time range. The legacy VBS service has been superseded by CBR (Cloud Backup and Recovery), so this skill queries backups through the CBR ListBackups API/CLI. Use when the user wants to: (1) list all backups / VBS backup list, (2) check backup status and details, (3) filter backups by name, status, resource type, vault, or time range, (4) inspect backup inventory for daily inspection or troubleshooting. Triggers include: "VBS", "备份列表", "备份", "云硬盘备份", "backup list", "list backups", "备份状态", "CBR", "Cloud Backup", "vbs list"
What it does
Query the current Huawei Cloud backup (VBS/Volume Backup Service) list. Lists all backups in the user's project, with optional filtering by status, name, resource type, vault, and time range. The legacy VBS service has been superseded by CBR (Cloud Backup and Recovery), so this skill queries backups through the CBR ListBackups API/CLI. Use when the user wants to: (1) list all backups / VBS backup list, (2) check backup status and details, (3) filter backups by name, status, resource type, vault, or time range, (4) inspect backup inventory for daily inspection or troubleshooting. Triggers include: "VBS", "备份列表", "备份", "云硬盘备份", "backup list", "list backups", "备份状态", "CBR", "Cloud Backup", "vbs list"
The skill document
Huawei Cloud VBS Backup List Skill
Overview
Query the current user's backup (VBS / Volume Backup Service) list on Huawei Cloud.
Note on VBS → CBR migration: The VBS (Volume Backup Service) has been integrated into CBR (Cloud Backup and Recovery). All backups created under VBS are now managed and queryable through CBR. This skill therefore uses the CBR
ListBackupsoperation (GET /v3/{project_id}/backups) to list backups, which is the successor of the legacy VBS list-backups API.
This skill provides:
- List all backups in the current project
- Filter by status, name, resource type, vault ID, AZ, resource ID, time range, etc.
- Summarize key fields (ID, name, status, resource type, created time, vault)
- CLI-first execution with SDK fallback
Architecture
Huawei Cloud VBS/CBR Backup List
└── ListBackups (GET /v3/{project_id}/backups)
├── CLI: hcloud CBR ListBackups --cli-region= [--param=value...]
└── SDK: huaweicloudsdkcbr.v1.CbrClient.list_backups(ListBackupsRequest)
Prerequisites
Prerequisite check: Huawei Cloud CLI (hcloud / KooCLI) >= 3.2.0 required Check the CLI version (run hcloud with the
versionargument) and confirm a version string is printed. If not installed or too old, see references/cli-installation-guide.md.
Prerequisite check: Huawei Cloud credentials required Check the CLI profile (run hcloud with the
configure listarguments) and confirm a profile with valid AK/SK exists. Credentials must be read from the configured CLI profile or environment variables. Never ask for or echo AK/SK values in the conversation.
IAM Permission Policies
The IAM user must be granted the CBR read permission. See references/iam-policies.md.
Minimum required permissions:
cbr:backups:list— List backups
Core Workflows
Task 1: List All Backups
Query the full backup list of the current project/region.
hcloud CBR ListBackups --cli-region={region} --limit=50
Task 2: Filter Backups
Apply one or more query filters to narrow down the result.
# By status
hcloud CBR ListBackups --cli-region={region} --status=available
# By name (fuzzy match)
hcloud CBR ListBackups --cli-region={region} --name=backup_for_image
# By resource type
hcloud CBR ListBackups --cli-region={region} --resource_type=OS::Nova::Server
# By vault
hcloud CBR ListBackups --cli-region={region} --vault_id={vault_id}
# By time range (format %YYYY-%mm-%ddT%HH:%MM:%SSZ)
hcloud CBR ListBackups --cli-region={region} --start_time=2026-01-01T00:00:00Z --end_time=2026-12-31T23:59:59Z
Task 3: Paginated / Summarized Output
Pagination and summary of key backup attributes.
# Pagination
hcloud CBR ListBackups --cli-region={region} --limit=10 --offset=10
# Full JSON output (for agent consumption / parsing)
hcloud CBR ListBackups --cli-region={region} --limit=50 --cli-output=json
Core Commands
| Command | Description |
|---|---|
hcloud CBR ListBackups --cli-region={region} --limit=50 | List all backups in the project |
hcloud CBR ListBackups --cli-region={region} --status=available | Filter by status |
hcloud CBR ListBackups --cli-region={region} --name={name} | Filter by backup name |
hcloud CBR ListBackups --cli-region={region} --resource_type=OS::Nova::Server | Filter by resource type |
hcloud CBR ListBackups --cli-region={region} --vault_id={vault_id} | Filter by vault ID |
hcloud CBR ListBackups --cli-region={region} --start_time=... --end_time=... | Filter by time range |
python3 scripts/list_vbs_backups.py --region {region} [--status ...] [--name ...] [--resource-type ...] [--vault-id ...] [--limit N] | SDK-based listing with summarized table output |
KooCLI parameter format: all parameters use the
--param=value(equals-sign) format.
Status values:
available,protecting,deleting,restoring,error,waiting_protect,waiting_delete,waiting_restore.
Resource types:
OS::Cinder::Volume(云硬盘),OS::Nova::Server(云服务器).
Script Tools
scripts/list_vbs_backups.py — SDK-based backup listing with summary
Reads AK/SK from HUAWEICLOUD_SDK_AK / HUAWEICLOUD_SDK_SK environment variables (or HUAWEI_ACCESS_KEY / HUAWEI_SECRET_KEY), lists backups via the CBR SDK, and prints a concise summary table.
# List all backups (first page)
python3 scripts/list_vbs_backups.py --region cn-north-4
# Filter by status
python3 scripts/list_vbs_backups.py --region cn-north-4 --status available
# Filter by name / resource type / vault
python3 scripts/list_vbs_backups.py --region cn-north-4 --name backup_for_image --resource-type OS::Nova::Server --vault-id bf33d48b-...
# Control page size
python3 scripts/list_vbs_backups.py --region cn-north-4 --limit 20 --offset 0
Parameter Confirmation
Before executing any task, confirm the following parameters with the user. Guessing is prohibited.
Two parameter conventions — do not mix:
- CLI (hcloud): KooCLI parameters use underscores and the
--param=valueform, e.g.--resource_type=OS::Nova::Server,--vault_id=,--start_time=....- SDK script (
scripts/list_vbs_backups.py): the script's argparse interface uses hyphens, e.g.--resource-type OS::Nova::Server,--vault-id,--start-time .... Using the underscore form against the script raisesunrecognized arguments.
| Parameter | Required/Optional | Description | Default |
|---|---|---|---|
{region} | Required | Huawei Cloud region (e.g., cn-north-4); must be provided or resolved from the profile | - |
--status | Optional | Filter by backup status | - |
--name | Optional | Filter by backup name (fuzzy) | - |
--resource_type (CLI) / --resource-type (script) | Optional | Filter by resource type (OS::Cinder::Volume / OS::Nova::Server) | - |
--vault_id (CLI) / --vault-id (script) | Optional | Filter by vault ID | - |
--start_time / --end_time (CLI) / --start-time / --end-time (script) | Optional | Time range filter in %YYYY-%mm-%ddT%HH:%MM:%SSZ format | - |
--limit | Optional | Page size | 50 |
--offset | Optional | Page offset | 0 |
KooCLI Command Format Standard
hcloud --cli-region= [--key=value ...]
| Feature | Description | Example |
|---|---|---|
| Service name | Exact KooCLI Service name beginning with uppercase/title case | CBR |
| Operation name | PascalCase | ListBackups |
| Region parameter | --cli-region= | --cli-region=cn-north-4 |
| Simple parameter | --key=value | --status=available |
All concrete commands must use the --param=value equals-sign format.
Verification Method
See references/verification-method.md for details.
Quick validation:
# Confirm CLI works (returns backup list or empty array)
hcloud CBR ListBackups --cli-region=cn-north-4 --limit=1
# Confirm SDK script works
python3 scripts/list_vbs_backups.py --region cn-north-4 --limit=5
Reference Documents
| Document | Description |
|---|---|
| references/iam-policies.md | Least-privilege IAM policy for listing backups |
| references/verification-method.md | Verification steps and sample outputs |
| references/dataflow-diagram.md | Mermaid data flow diagram |
| references/acceptance-criteria.md | Acceptance criteria |
| references/cli-installation-guide.md | CLI installation and authentication guide |
Related skills
Query the list of Huawei Cloud EVS (Elastic Volume Service) disks under the current tenant / project, focused on the EVS disk NAME list. Returns each disk's name, id, status and size; can also output a pure EVS name-only list. Supports filtering by status, name and pagination (limit/offset). Uses the KooCLI command `hcloud EVS ListVolumes --cli-region={region}` (primary) against the v2 API, or the huaweicloudsdkevs Python SDK (fallback). Read-only — never creates, modifies or deletes any disk. Use this skill whenever the user wants to list/inspect the EVS disks of the tenant or query the EVS disk name list, e.g. for disk inventory, daily inspection, or cost review. Triggers include: "list EVS", "EVS list", "query EVS names", "EVS name list", "云硬盘列表", "查询云硬盘", "EVS磁盘名称", "云硬盘名称", "list volumes", "list elastic volumes", "how many EVS disks".
Invoke this skill to capture poor experiences and distill them into high-value requirements (Voice of Developer). Use when user encounters any Huawei Cloud related issues, like user expresses dissatisfaction, encounters errors, or wants to report issues/suggestions.Triggers include: "体验差","反馈问题","反馈建议","这个有bug","拒绝了请求","报告问题","反馈体验","report a problem","report a suggestion","bug report","poor experience","voice of developer"
Query the list of Huawei Cloud BMS (Bare Metal Server) instances under the current tenant / project, focused on the BMS NAME list. Returns each server's name, id and status; can also output a pure BMS name-only list. Supports filtering by status, name and pagination (limit/offset). Uses the KooCLI command `hcloud BMS ListBareMetalServers --cli-region={region}` (primary) against the v1 API, or the huaweicloudsdkbms Python SDK (fallback). Read-only — never creates, modifies or deletes any bare metal server. Use this skill whenever the user wants to list/inspect the BMS instances of the tenant or query the BMS name list, e.g. for BMS inventory, daily inspection, or cost review. Triggers include: "list BMS", "BMS list", "query BMS names", "BMS name list", "裸金属服务器列表", "查询裸金属服务器", "BMS名称列表", "裸金属服务器名称", "list bare metal servers", "how many BMS".
Read-only query of Huawei Cloud ECS, BMS, IMS, and AS resources via local Python scripts.
Queries Huawei Cloud Cloud Connect (CC) Global Connection Bandwidth (GCB) resources via hcloud CLI. Covers single GCB detail query (including bound instance info), GCB list query with filters, GCB tenant configuration query (size ranges, quotas, charge modes, supported services), and list of GCBs eligible for binding to a specific service type. No write operations. Use this skill when the user needs to inspect global connection bandwidth details, check GCB-bound instances, review GCB tenant configs and quotas, or find GCBs available for binding. Triggers include: 全域互联带宽, GCB, Global Connection Bandwidth, global-connection-bandwidth, 云连接带宽, CC带宽, bandwidth config, 绑定带宽, support binding bandwidth, gcb-query.