Data & analysis

huawei-cloud-rds-list

Try it

Query the list of Huawei Cloud RDS (Relational Database Service, 云数据库) instances under the current tenant / project and return the RDS instance NAMES. By default the skill prints only the instance names (one per line); with extra flags it also returns id, status, engine type, flavor, private IPs and created time. Supports filtering by instance name, id, type (Single/Ha/Replica), datastore engine (MySQL/PostgreSQL/SQLServer/MariaDB) and VPC, plus pagination via limit/offset. Uses the KooCLI command `hcloud RDS ListInstances --cli-region={region}` (primary) or the huaweicloudsdkrds Python SDK (fallback). Read-only — never creates, modifies, deletes, restarts or stops any RDS instance. Use this skill whenever the user wants to list/inspect the RDS instances of the tenant or query the RDS instance name list, e.g. for database inventory, daily inspection, or cost review. Triggers include: "list RDS", "RDS list", "query RDS names", "RDS实例列表", "查询RDS", "RDS实例名称", "rds list", "how many RDS", "

What it does

Query the list of Huawei Cloud RDS (Relational Database Service, 云数据库) instances under the current tenant / project and return the RDS instance NAMES. By default the skill prints only the instance names (one per line); with extra flags it also returns id, status, engine type, flavor, private IPs and created time. Supports filtering by instance name, id, type (Single/Ha/Replica), datastore engine (MySQL/PostgreSQL/SQLServer/MariaDB) and VPC, plus pagination via limit/offset. Uses the KooCLI command `hcloud RDS ListInstances --cli-region={region}` (primary) or the huaweicloudsdkrds Python SDK (fallback). Read-only — never creates, modifies, deletes, restarts or stops any RDS instance. Use this skill whenever the user wants to list/inspect the RDS instances of the tenant or query the RDS instance name list, e.g. for database inventory, daily inspection, or cost review. Triggers include: "list RDS", "RDS list", "query RDS names", "RDS实例列表", "查询RDS", "RDS实例名称", "rds list", "how many RDS", "RDS inventory", "list database instances", "云数据库实例".

The skill document

Huawei Cloud RDS List Skill

Overview

This skill queries the list of Relational Database Service (云数据库 RDS) instances under the current Huawei Cloud tenant / project and returns their key attributes — by default only the RDS instance names (name, one per line), optionally together with id, status, type, engine, version, flavor, private_ips and created time. It is a read-only inspection skill: it never creates, modifies, deletes, restarts or stops any database instance.

Architecture:

Agent → hcloud CLI (KooCLI, RDS ListInstances, primary) → Huawei Cloud RDS v3 API
       ↘ huaweicloudsdkrds Python SDK (fallback)                  ↗

API path (verified from huaweicloudsdkrds v3 SDK _list_instances_http_info):

OperationMethodAPI Path
List RDS instancesGET/v3/{project_id}/instances

Execution-quality reporting: every invocation of scripts/list_rds_instances.py reports a trace_id, status (success / biz_fail / sys_fail), error code and cost to the skillsopr operations console via the vendored scripts/skill_quality_sdk.py. Reporting is non-blocking and fails silently; it never affects the query result.

Applicable Scenarios:

  • Database inventory: "list all RDS instances of this tenant" or "show me the RDS name list"
  • Daily inspection: snapshot of all RDS instances with their status and engine
  • Cost review: enumerate RDS instances and their flavors to spot unused or oversized databases
  • Fast lookup: retrieve the exact RDS instance name/id for follow-up operations
  • Auto detection: periodic checks that detect new/stopped/error RDS instances

能力边界(Capability Boundary): 本 Skill 仅查询 RDS 实例列表。不创建/删除/修改/重启/停止 RDS 实例, 也不查询备份、参数组、日志等其它 RDS 资源。 若用户询问"创建/删除 RDS"、"重启 RDS"、"查询备份"等, 请明确告知本 Skill 不提供该能力。

Prerequisites

  1. hcloud CLI (KooCLI) installed and authenticated — See references/cli-installation-guide.md
  2. Python 3.8+ with huaweicloudsdkrds package installed (SDK fallback only)
  3. IAM permissionsrds:instance:list (or the system policy RDS ReadOnlyAccess) is required to list RDS instances. See references/iam-policies.md
  4. A region where the tenant owns RDS instances; specify it with --cli-region

Workflow

  1. Identify the intent — Confirm the user wants to list RDS instances (and optionally the filters: name, id, type, engine, or name-only output).
  2. Confirm region — Default cn-north-4; let the user override with another region if needed.
  3. Run the query — Use the CLI command below with the requested filters.
  4. Present the results — By default output only the RDS instance names (one per line); with --compact or full JSON output show the extra fields.
  5. Handle errors — If the CLI fails (credentials/permissions/network), retry with the SDK fallback described in references/verification-method.md.

Core Commands

KooCLI format: hcloud --cli-region= [--key=value]

List all RDS instances (full JSON)

hcloud RDS ListInstances --cli-region={region} --cli-output=json

List only the RDS instance names

hcloud RDS ListInstances --cli-region={region} --cli-query="instances[].name"

Compact fields: name, id, status, engine

hcloud RDS ListInstances --cli-region={region} --cli-output=json \
  | jq -r '.instances[] | [.name, .id, .status, .datastore.type] | @tsv'

Filter by engine / type / name / VPC

hcloud RDS ListInstances --cli-region={region} --datastore_type=MySQL --cli-output=json
hcloud RDS ListInstances --cli-region={region} --type=Ha --cli-output=json
hcloud RDS ListInstances --cli-region={region} --name={instance-name} --cli-output=json
hcloud RDS ListInstances --cli-region={region} --vpc_id={vpc-id} --cli-output=json

Pagination

hcloud RDS ListInstances --cli-region={region} --limit=100 --offset=0 --cli-output=json
python3 scripts/list_rds_instances.py --region={region} --names-only
python3 scripts/list_rds_instances.py --region={region} --type Ha --limit 20 --compact

The wrapper tries the CLI first, falls back to the huaweicloudsdkrds SDK, and reports execution quality to the skillsopr console. Set SKILL_QUALITY_DISABLE=1 to disable reporting (local debugging).

Parameter Confirmation

ParameterRequiredDescriptionExample
{region}YesHuawei Cloud regioncn-north-4
--nameNoInstance name filter (exact or *fuzzy* match)rds-prod
--idNoInstance ID filter (exact or *fuzzy* match)e229f7f2...in01
--typeNoInstance type: Single/Ha/ReplicaHa
--datastore_typeNoEngine: MySQL/PostgreSQL/SQLServer/MariaDBMySQL
--vpc_idNoVPC ID filter81a7f347-...
--limitNoMax records per page (1–100, default 100)100
--offsetNoIndex offset (≥ 0, default 0)0
--names-onlyNoPrint only the instance names (one per line)--names-only
--compactNoPrint name/id/status/engine as TSV rows--compact

KooCLI Command Format Standard

The KooCLI command format is:

hcloud --cli-region= [--key=value ...]

Note: this is a generic format template, not an executable command — replace , , `` and the parameters with real values (e.g. hcloud RDS ListInstances --cli-region=cn-north-4).

  • Service name: RDS (starts with uppercase).
  • Operation name: PascalCase — ListInstances.
  • Region: always pass --cli-region=.
  • Simple parameters use --key=value, for example --name=rds-prod.
  • Pagination parameters: --limit=N, --offset=N (index offset).

Reference Documents

  • IAM Policies — Least-privilege IAM permissions
  • CLI Installation Guide — hcloud CLI setup and authentication
  • Verification Method — How to verify the skill works
  • Dataflow Diagram — Request flow diagram
  • Acceptance Criteria — Acceptance test checklist

Related skills

查询华为云账号下指定 Region 的关系型数据库服务(RDS)实例列表,输出精简的 实例名称 + ID + 状态 + 引擎类型 + 规格清单。 适合用于数据库资源盘点、运维巡检、故障排查与自动化脚本前置查询。

Full-scenario intelligent assistant for Huawei Cloud RDS (Relational Database Service, MySQL + PostgreSQL). Provides basic RDS Q&A, SQL performance optimization (slow-log analysis), daily instance operations, online fault location and troubleshooting, parameter tuning, and backup/restore guidance. Core scenario is ONLINE FAULT TROUBLESHOOTING: the skill guides the user step by step through symptoms (unreachable instance, slow queries, disk full, replication broken, connection limit exceeded, memory overrun) to diagnosis and resolution. Execution is CLI-first via `hcloud RDS ... --cli-region={region}` (KooCLI), falling back to the huaweicloudsdkrds Python SDK and then REST API. Output is interactive and guided — one diagnostic step at a time, with user confirmation before any mutating action (restart, parameter change, manual backup, restore). Triggers include: "RDS troubleshooting", "RDS故障排查", "数据库连不上", "RDS slow query", "RDS慢SQL", "RDS磁盘满", "RDS instance down", "RDS主备不同步", "RDS参数调优",

1 installs

查询华为云 RDS 实例列表、实例详情及监控指标(CPU/内存/磁盘)的只读 Skill,基于 Huawei Cloud SDK

Query the list of Huawei Cloud DDS (Document Database Service, 文档数据库服务) instances under the current tenant / project and return the DDS instance NAMES. By default the skill prints only the instance names (one per line); with extra flags it also returns id, status, mode, datastore engine, version and created time. Supports filtering by instance name, id, mode (Sharding/ReplicaSet/Single), datastore type (DDS-Community/DDS-Enhanced), VPC and subnet, plus pagination via limit/offset. Uses the KooCLI command `hcloud DDS ListInstances --cli-region={region}` (primary) or the huaweicloudsdkdds Python SDK (fallback). Read-only — never creates, modifies, deletes, restarts or stops any DDS instance. Use this skill whenever the user wants to list/inspect the DDS instances of the tenant or query the DDS instance name list, e.g. for database inventory, daily inspection, or cost review. Triggers include: "list DDS", "DDS list", "query DDS names", "DDS实例列表", "查询DDS", "DDS实例名称", "dds list", "how many

1 installs

Huawei Cloud RDS (Relational Database Service) full-scenario intelligent service covering all database engines (MySQL, PostgreSQL, SQL Server, MariaDB, GaussDB for MySQL, TaurusDB). Provides six capability domains: (1) Basic intelligent Q&A for RDS product features, best practices, and specifications; (2) SQL statement performance optimization with slow log analysis, top SQL, execution plan guidance, and index recommendations; (3) Database instance daily O&M including health inspection, restart, flavor resize, disk expansion, primary-standby switchover, and read replica management; (4) Online fault localization and troubleshooting via error logs, replication status, connection diagnostics, and recovery time window; (5) Parameter tuning with parameter group management, modification suggestions, and performance parameter adjustment guidance; (6) Backup and recovery guidance including backup policy management, manual backup creation, restore to new/existing instance, and point-in-time rec

by huaweiclouddev-dev

Query Huawei Cloud DCS (Distributed Cache Service) instance names and list all managed Redis/Memcached instances across a region. Provides read-only name lookup, name filtering, status-based filtering, and instance ID lookup for inventory reporting and daily inspection. Triggers include: DCS list, list DCS instances, query DCS names, DCS instance name, find DCS instance, DCS name lookup, DCS instance list, Redis instance names, cache instance names, DCS inventory, 查询DCS名称, DCS实例名称, 缓存实例名称, DCS列表, DCS实例列表, 查询缓存实例名称.