编程

huawei-cloud-vbs-list

试用

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"

它能做什么

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"

技能文档

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 ListBackups operation (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 version argument) 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 list arguments) 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

CommandDescription
hcloud CBR ListBackups --cli-region={region} --limit=50List all backups in the project
hcloud CBR ListBackups --cli-region={region} --status=availableFilter by status
hcloud CBR ListBackups --cli-region={region} --name={name}Filter by backup name
hcloud CBR ListBackups --cli-region={region} --resource_type=OS::Nova::ServerFilter 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=value form, 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 raises unrecognized arguments.
ParameterRequired/OptionalDescriptionDefault
{region}RequiredHuawei Cloud region (e.g., cn-north-4); must be provided or resolved from the profile-
--statusOptionalFilter by backup status-
--nameOptionalFilter by backup name (fuzzy)-
--resource_type (CLI) / --resource-type (script)OptionalFilter by resource type (OS::Cinder::Volume / OS::Nova::Server)-
--vault_id (CLI) / --vault-id (script)OptionalFilter by vault ID-
--start_time / --end_time (CLI) / --start-time / --end-time (script)OptionalTime range filter in %YYYY-%mm-%ddT%HH:%MM:%SSZ format-
--limitOptionalPage size50
--offsetOptionalPage offset0

KooCLI Command Format Standard

hcloud   --cli-region= [--key=value ...]
FeatureDescriptionExample
Service nameExact KooCLI Service name beginning with uppercase/title caseCBR
Operation namePascalCaseListBackups
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

DocumentDescription
references/iam-policies.mdLeast-privilege IAM policy for listing backups
references/verification-method.mdVerification steps and sample outputs
references/dataflow-diagram.mdMermaid data flow diagram
references/acceptance-criteria.mdAcceptance criteria
references/cli-installation-guide.mdCLI installation and authentication guide

相关技能

Queries Huawei Cloud storage resources (EVS/OBS/SFS/CBR). Covers cloud disks (volumes/snapshots/types/quotas/recycle bin), OBS buckets (ACL/metadata/notifica...

作者 huaweicloud-skills-team1 次安装

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"

作者 huaweicloud-skills-team

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

1 次安装

通过本地 Python 脚本只读查询华为云 ECS、BMS、IMS、AS 资源。

作者 huaweicloud-skills-team2 次安装

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.