1. List Huawei Cloud RDS (cloud database) instances in a tenant region through KooCLI (hcloud RDS ListInstances — read-only GET /v3/{project_id}/instances), with an automatic fallback to the official huaweicloudsdkrds v3 SDK when hcloud is not installed. 2. Four output modes: full-field table (default, every returned field including 名称/ID/状态/引擎/规格/私网IP/可用区), --json (raw response array), --names-only (compact instance-name list), plus two local file exports: Markdown (--format md / --output <path>.md) and CSV (--format csv / --output <path>.csv, UTF-8 BOM + standard CSV escaping, Excel/pandas friendly), both with the same Chinese headers for inventory/patrol/ handover reports. 3. Supports --status / --name / --datastore-type / --instance-id filtering, region override, and automatic offset paging. --name / --datastore-type / --instance-id are real ListInstances query parameters; --status is applied client-side (full list fetched first, then filtered locally) because the real RDS ListInstances API has no status parameter. 4. Explicit error hints for empty instance lists (「当前区域无 RDS 实例」), 403 / insufficient IAM permission (「无权限访问 RDS,请检查 IAM 权限」), missing or invalid AK/SK credentials, and hcloud not installed. 5. Built-in write-intent guard: any mutating intent (create / delete / update / resize / restart / stop / restore) or any operation other than ListInstances is rejected before execution — this skill is strictly read-only. 6. Triggers include: "list RDS instances", "RDS instance list", "RDS 实例列表", "查询RDS实例", "云数据库列表", "RDS inventory", "list cloud database instances", "华为云RDS列表". 7. Offline unit tests (mocked hcloud subprocess) cover output modes, filters, paging, error scenarios, SDK fallback, Markdown/CSV export (BOM, escaping, atomic write, empty table, extension inference), and the write-intent guard.
---
name: huawei-cloud-rds-list
description: |
1. List Huawei Cloud RDS (cloud database) instances in a tenant region through
KooCLI (hcloud RDS ListInstances — read-only GET /v3/{project_id}/instances),
with an automatic fallback to the official huaweicloudsdkrds v3 SDK when
hcloud is not installed.
2. Four output modes: full-field table (default, every returned field including
名称/ID/状态/引擎/规格/私网IP/可用区), --json (raw response array),
--names-only (compact instance-name list), plus two local file exports:
Markdown (--format md / --output <path>.md) and CSV (--format csv /
--output <path>.csv, UTF-8 BOM + standard CSV escaping, Excel/pandas
friendly), both with the same Chinese headers for inventory/patrol/
handover reports.
3. Supports --status / --name / --datastore-type / --instance-id filtering,
region override, and automatic offset paging. --name / --datastore-type /
--instance-id are real ListInstances query parameters; --status is applied
client-side (full list fetched first, then filtered locally) because the
real RDS ListInstances API has no status parameter.
4. Explicit error hints for empty instance lists (「当前区域无 RDS 实例」), 403 /
insufficient IAM permission (「无权限访问 RDS,请检查 IAM 权限」), missing or
invalid AK/SK credentials, and hcloud not installed.
5. Built-in write-intent guard: any mutating intent (create / delete / update /
resize / restart / stop / restore) or any operation other than ListInstances
is rejected before execution — this skill is strictly read-only.
6. Triggers include: "list RDS instances", "RDS instance list", "RDS 实例列表",
"查询RDS实例", "云数据库列表", "RDS inventory", "list cloud database instances",
"华为云RDS列表".
7. Offline unit tests (mocked hcloud subprocess) cover output modes, filters,
paging, error scenarios, SDK fallback, Markdown/CSV export (BOM, escaping,
atomic write, empty table, extension inference), and the write-intent
guard.
tags: [huawei-cloud, rds, database, readonly, koo-cli]
---
# Huawei Cloud RDS Instance List
## Overview
Query the RDS instance list of a tenant region through KooCLI
`hcloud RDS ListInstances` (official read-only GET `/v3/{project_id}/instances`,
verified in the `huaweicloudsdkrds` v3 client `_list_instances_http_info`
metadata). The skill is aimed at RDS inventory inspection, daily operations
patrol, and as a pre-query step for other RDS skills that need an `instance_id`.
Architecture:
```text
agent → python3 scripts/list_rds.py → hcloud RDS ListInstances --cli-region=<region>
→ Huawei Cloud RDS OpenAPI (regional endpoint) → parsed JSON
→ table / --json / --names-only / Markdown or CSV file
(--format md|csv / --output)
(hcloud binary missing) → fallback: huaweicloudsdkrds v3 RdsClient.list_instances
```
Key properties:
- **Read-only by design** — the only API ever invoked is `ListInstances` (GET). A
write-intent guard scans user arguments and validates the operation name;
mutating intents (create / delete / update / resize / restart / stop /
restore ...) are rejected with an explicit message before any command runs.
- **CLI first, SDK fallback** — KooCLI is the primary execution path; when the
hcloud binary is absent, the script falls back to the official
`huaweicloudsdkrds` v3 SDK (`list_instances`). Credentials are always read by
the CLI profile / SDK environment — never handled by the script.
- **Full-field table output** — the default table renders the union of all
fields returned by ListInstances, with `datastore` flattened into
engine/engineVersion and `private_ips` joined for readability.
- **Optional Markdown export** — `--format md` (or `--output <path>`, which
implies md) writes a valid Markdown table (Chinese headers + separator +
rows) to a local file, atomically (temp file + `os.replace`). Omitting the
export flags keeps the existing terminal output byte-for-byte unchanged.
- **Optional CSV export** — `--format csv` (or `--output <path>.csv`, which
implies csv) writes the same columns behind the same Chinese headers as the
Markdown export, encoded UTF-8 **with BOM** (`utf-8-sig`, so Excel and
`pandas.read_csv` detect the encoding without extra flags), CRLF row
endings, and standard `csv`-module escaping for commas / double quotes /
newlines. Empty results still write the header row (exit 0), and writes are
atomic exactly like the Markdown path (`CSV 文件写出失败` on failure, no
partial file left behind).
- **Offline-testable** — every code path (paging, filters, error
classification, guard, SDK fallback, Markdown/CSV render/write) is covered by
unit tests that mock the hcloud subprocess.
Out of scope: every mutating RDS action (create / delete / resize / restart /
stop / restore backup / change password / read-replica management). Those
require a dedicated write-capable skill and explicit user confirmation.
## Prerequisites
1. **KooCLI (`hcloud`) installed** — see
[references/cli-installation-guide.md](references/cli-installation-guide.md).
Alternative: `pip install huaweicloudsdkrds` to enable the SDK fallback path.
2. **Active credential profile** — configure credentials out-of-band
(`hcloud configure` in your terminal, or credential environment variables).
Never paste AK/SK into chat; the script never reads, echoes, or stores
secrets itself — authentication is delegated entirely to the hcloud profile
/ SDK environment.
3. **IAM permission** — read-only `rds:instance:list`; least-privilege policy in
[references/iam-policies.md](references/iam-policies.md).
4. **Python 3.8+** (standard library only — argparse / json / subprocess).
5. **Outbound HTTPS** access to `*.myhuaweicloud.com`.
## Workflow
1. **Confirm the target region** (default `cn-north-4`); every RDS call is
region-scoped.
2. **Confirm hcloud readiness** (optional, read-only): `hcloud configure list`.
3. **Run the list script** with the desired output mode and filters.
4. **Read the result** — table for humans, `--json` for downstream tooling,
`--names-only` for a compact inventory, `--format md` / `--output` for a
Markdown report file, `--format csv` / `--output *.csv` for a CSV file
(Excel / pandas ready; inventory / patrol / handover).
5. **Handle the empty / error cases** per the Edge Cases table below (the
script prints an explicit hint for empty region, 403, missing AK/SK, and
Markdown / CSV write failures).
## Core Commands
```bash
# Full-field table (default)
python3 scripts/list_rds.py --region cn-north-4
# Raw JSON of every returned field
python3 scripts/list_rds.py --json
# Compact instance-name list only
python3 scripts/list_rds.py --names-only
# Filter by instance status (client-side: full list fetched, then filtered
# locally — the RDS ListInstances API has no status query parameter)
python3 scripts/list_rds.py --status ACTIVE
# Filter by engine / name
python3 scripts/list_rds.py --datastore-type MySQL --name rds-demo
# Combine filters
python3 scripts/list_rds.py --region cn-south-1 --status ACTIVE --names-only
# Export to Markdown (explicit file path; parent directories auto-created)
python3 scripts/list_rds.py --format md --output reports/rds-cn-north-4.md
# --output alone implies --format md; omitting it uses
# rds_instances_<region>_<timestamp>.md in the current directory
python3 scripts/list_rds.py --output reports/rds.md
python3 scripts/list_rds.py --format md
# Markdown + filters (empty result still writes header + 「无实例」note, exit 0)
python3 scripts/list_rds.py --format md --status ACTIVE --output reports/active.md
# Export to CSV (Excel / pandas friendly: UTF-8 BOM, CRLF, standard escaping)
python3 scripts/list_rds.py --format csv --output reports/rds-cn-north-4.csv
# --output *.csv alone implies --format csv; omitting it uses
# rds_instances_<region>_<timestamp>.csv in the current directory
python3 scripts/list_rds.py --output reports/rds.csv
python3 scripts/list_rds.py --format csv
# CSV + filters (empty result still writes the header row, exit 0)
python3 scripts/list_rds.py --format csv --status ACTIVE --output reports/active.csv
```
Markdown file layout: a title (`# 华为云 RDS 实例列表 — <region>`), a metadata
line, then a Chinese-header table (`实例 ID / 名称 / 状态 / 引擎 / 版本 / 规格 /
私有 IP / 可用区 / 区域 / 创建时间`) with a `---` separator and one row per
instance. `|` in a cell is escaped as `\|` and newlines are collapsed to spaces.
Writes are atomic (temp file + `os.replace`), so a failed write never leaves a
half-written file.
CSV file layout: the same ten Chinese headers and the same column order as the
Markdown table (`实例 ID / 名称 / 状态 / 引擎 / 版本 / 规格 / 私有 IP / 可用区 /
区域 / 创建时间`), one row per instance, encoded UTF-8 **with BOM** so Excel and
`pandas.read_csv` open it directly. The standard `csv` module escapes commas,
double quotes and embedded newlines; rows end with CRLF. An empty list still
writes the header row (exit 0), and the write is atomic like the Markdown path.
Equivalent direct KooCLI command (the script wraps exactly this call, with
paging):
```bash
hcloud RDS ListInstances --cli-region=cn-north-4 --limit=100 --offset=0
```
## Parameter Confirmation
| Parameter | Required | Description | Example |
| ----------- | ---------- | ------------- | --------- |
| `--region` / `-r` | No | Huawei Cloud region (default `cn-north-4`) | `cn-south-1` |
| `--json` | No | Output the raw instance array as JSON | — |
| `--names-only` | No | Output instance names only | — |
| `--status` | No | Filter by instance state — **applied client-side** (RDS ListInstances has no status API parameter; full list fetched, then filtered locally, case-insensitive) | `ACTIVE`, `FAILED`, `BUILDING` |
| `--name` | No | Filter by instance name | `rds-demo-01` |
| `--datastore-type` | No | Filter by engine | `MySQL`, `PostgreSQL`, `SQLServer` |
| `--instance-id` | No | Filter by exact instance ID | `rds-0001` |
| `--page-size` | No | Page size for ListInstances (default 100) | `100` |
| `--operation` | No | hcloud RDS operation name; only `ListInstances` is allowed | `ListInstances` |
| `--format` | No | Output format: `table` (default, terminal table), `md` (Markdown file) or `csv` (CSV file, UTF-8 BOM + standard escaping) | `md`, `csv` |
| `--output` / `-o` | No | Export file path; a `.csv` suffix **implies `--format csv`**, any other suffix (e.g. `.md`) keeps the Markdown semantics. Relative/absolute paths accepted, parent directories auto-created. Default file name `rds_instances_<region>_<timestamp>.md` / `.csv` in the current directory | `reports/rds.csv` |
Output-mode precedence: `--names-only` → `--json` → `--format md` / `--format
csv` → table (default). `--format md` / `--format csv` / `--output` are
**mutually exclusive** with `--json` / `--names-only` (exit code 2 with an
explicit message). An explicit `--format md` / `--format csv` wins over the
suffix implied by `--output`.
## Write-Intent Guard
- The script scans all user arguments plus the `--operation` value for mutating
vocabulary (`create`, `delete`, `update`, `resize`, `restart`, `stop`,
`restore`, and RDS operation names such as `CreateInstance`,
`DeleteInstance`, `ResizeFlavor`).
- Any hit raises `GuardError`, prints `[错误] 检测到写操作意图 ... 已被守卫拦截`, and
exits with code 1 **before** a single hcloud command is executed.
- Only `hcloud RDS ListInstances` (GET) — or the SDK `list_instances` call in
the fallback path — is ever constructed by `build_command()`; there is no
code path that can issue a mutating RDS API call.
## KooCLI Command Format Standard
```text
hcloud <Service> <Operation> --cli-region=<region> [--key=value ...]
```
- **Service name** — exact KooCLI title-case service name: `RDS`.
- **Operation name** — PascalCase: `ListInstances`.
- **Region parameter** — `--cli-region=<value>`, e.g. `--cli-region=cn-north-4`
(required for every concrete RDS call).
- **Simple parameter** — `--key=value`, e.g. `--limit=100`,
`--offset=20`, `--name=rds-01`, `--datastore_type=MySQL`, `--id=rds-01`.
There is **no `--status` parameter** on the real RDS ListInstances API
(verified via `hcloud RDS ListInstances --help`); status filtering is done
client-side by the script, never forwarded to the CLI/API.
- **REST path (official SDK `_http_info`)** —
`GET /v3/{project_id}/instances` (`huaweicloudsdkrds` v3
`_list_instances_http_info`); project_id is resolved by KooCLI from the
credential profile.
## Error Handling
| Scenario | Behavior |
| ---------- | --------- |
| Empty instance list | Exit 0, prints `当前区域(<x>)无 RDS 实例` (+ active filters) |
| 403 / insufficient IAM permission | Exit 1, `无权限访问 RDS,请检查 IAM 权限` hint |
| Missing / invalid AK-SK | Exit 1, explicit hint to configure hcloud credentials out-of-band (never in chat) |
| hcloud not installed | Exit 1 after SDK fallback also unavailable, hint to install KooCLI or `pip install huaweicloudsdkrds` |
| Network / API failure | Exit 1 with the hcloud stderr excerpt |
| KooCLI usage error (`[USE_ERROR] ...`, even with exit code 0) | Exit 1, explicit `hcloud 参数错误` hint pointing to `hcloud RDS ListInstances --help` |
| Write intent detected | Exit 1, `GuardError` message, no command executed |
| Markdown write failure (uncreatable directory / I/O error) | Exit 1, `[错误] Markdown 文件写出失败(...)` on stderr; no partial file left behind |
| CSV write failure (uncreatable directory / I/O error) | Exit 1, `[错误] CSV 文件写出失败(...)` on stderr; no partial / temp file left behind |
| `--format md` / `--format csv` / `--output` combined with `--json` / `--names-only` | Exit 2, explicit "不能同时使用" message, no query executed |
Exit codes: `0` success / empty region / empty Markdown or CSV export; `1`
config, auth, guard, API, or export write error; `2` mutually exclusive
arguments.
## Edge Cases
| Scenario | Handling |
| ---------- | --------- |
| `BUILDING` / `FAILED` instances | Reported with their state, not treated as failure |
| `--status` filter | Applied client-side after the full paged list is fetched (case-insensitive); the server API has no status parameter |
| Large instance count | Automatic `offset` paging (total_count aware, full-page fallback, max 100 pages) |
| Extra response fields | Table columns are built from the union of returned fields — new fields appear automatically |
| Field missing on an instance | Rendered as `-` in the table |
| Nested `datastore` / `nodes` / `private_ips` | Flattened into engine / engineVersion / availability_zone / privateIps for the table |
| Non-JSON hcloud output | `ApiError` with the raw excerpt (first 200 chars) |
| hcloud absent, SDK installed | Transparent fallback to `huaweicloudsdkrds` list_instances, same output modes |
| Empty result with `--format md` | Still writes title + header + separator + explicit `_当前区域(<x>)无 RDS 实例。_` note, exit 0 |
| Empty result with `--format csv` | Still writes the header row only, exit 0 |
| Markdown cell contains `|` / newline | Pipe escaped as `\|`, newlines collapsed to spaces (table stays valid) |
| CSV cell contains `,` / `"` / newline | Standard `csv`-module quoting (`"a,b"`, `"say ""hi"""`, quoted multi-line value); column count stays intact |
| `--output` suffix is `.csv` vs `.md` | `.csv` → CSV export; any other suffix keeps Markdown semantics; an explicit `--format` wins |
| Excel / pandas opening the CSV | UTF-8 BOM (`utf-8-sig`) + CRLF rows → opens without an encoding flag (`pandas.read_csv` yields one column per header) |
| `--output` points at a nested / relative path | Parent directories created automatically; atomic temp-file write |
| `--output` path contains mutating words | Local path values are excluded from the write-intent scan (no false positive) |
| User asks to create/delete/resize | Out of scope — blocked by the write-intent guard; a write-capable skill with explicit user confirmation is required |
## Testing
Offline unit tests with a mocked hcloud subprocess (no credentials, no network):
```bash
python3 -m unittest discover -s tests -v
```
Coverage: write-intent guard (read passes / create / delete / resize / restart
/ stop / restore / normalize variants / operation whitelist), command
construction (including "status never sent to the server"), JSON extraction,
failure classification (missing AK/SK, 403, generic, `[USE_ERROR]` with rc=0),
client-side status filtering (exact / case-insensitive / no-match / missing
field), paging (total / full-page / empty), SDK fallback (success and
unavailable; request construction matches the real `ListInstancesRequest`
signature — `status=` must raise TypeError), rendering (table with
engine/flavor/private IP fields / names / fallbacks), Markdown export
(render columns/escaping/empty note, explicit and default file names,
relative paths + parent-dir creation, atomic write, write-failure cleanup,
mutual exclusivity), CSV export (columns equal to the Markdown columns, BOM
written exactly once, `utf-8-sig` / plain-UTF-8 parseability, comma / quote /
newline escaping round-trip, CRLF rows, empty header-only file, `.csv` suffix
inference, default file name, relative paths, atomic write, `CSV 文件写出失败`
cleanup), and all main() output modes including empty, filter, and error paths.
## Reference Documents
| Document | Content |
| ---------- | --------- |
| [references/iam-policies.md](references/iam-policies.md) | Least-privilege read-only IAM policy |
| [references/cli-installation-guide.md](references/cli-installation-guide.md) | KooCLI installation and credential configuration |
| [references/verification-method.md](references/verification-method.md) | How the skill and its tests were verified |
| [references/dataflow-diagram.md](references/dataflow-diagram.md) | Mermaid data flow diagram |
| [references/acceptance-criteria.md](references/acceptance-criteria.md) | Acceptance criteria checklist |
don't have the plugin yet? install it then click "run inline in claude" again.
extracted implicit decision logic into explicit decision-point sections, documented external connections and credential handling, formalized error classification and edge-case handling, clarified procedure steps with explicit inputs/outputs, and structured output contract and outcome signals for all modes and error paths.
list all rds database instances in a huawei cloud region via koo-cli (hcloud) or the official huaweicloudsdkrds v3 sdk as fallback. outputs a full-field table by default, with optional json, names-only, or markdown export modes. supports filtering by status (client-side), name, engine type, and instance id. this skill is strictly read-only: the write-intent guard blocks any mutating operation before execution. use this for rds inventory inspection, daily ops patrol, and as a pre-query step for skills that need an instance_id.
external connections:
/v3/{project_id}/instances): credentials resolved from active koo-cli profile or environment variables. scope: rds:instance:list (least-privilege iam policy required).hcloud): primary execution path. if absent, the script falls back to the huaweicloudsdkrds v3 python sdk.environment / setup:
HUAWEI_CLOUD_AK: access key id (env var, optional if using koo-cli profile).HUAWEI_CLOUD_SK: secret access key (env var, optional if using koo-cli profile).HUAWEI_CLOUD_REGION: default region (env var, optional; script default is cn-north-4).hcloud configure (preferred: never paste ak/sk in chat).*.myhuaweicloud.com.script parameters:
--region / -r: huawei cloud region name (default cn-north-4). example: cn-south-1.--json: output raw instance array as json (mutually exclusive with --names-only, --format md, --output).--names-only: output instance names only, one per line (mutually exclusive with --json, --format md, --output).--status: filter by instance state (client-side, case-insensitive). values: ACTIVE, FAILED, BUILDING, etc. the real api has no status parameter, so the script fetches the full list, then filters locally.--name: filter by instance name (passed to api as query parameter).--datastore-type: filter by engine type (passed to api). values: MySQL, PostgreSQL, SQLServer.--instance-id: filter by exact instance id (passed to api).--page-size: page size for list instances (default 100, max per api limits).--operation: hcloud rds operation name (default ListInstances; only this operation is allowed by the write-intent guard).--format: output format: table (default, terminal table) or md (markdown file).--output / -o: markdown file path (implies --format md). relative or absolute paths accepted. parent directories auto-created. if omitted with --format md, defaults to rds_instances_<region>_<timestamp>.md in current directory.validate inputs and guard against write intent.
--operation value for mutating keywords: create, delete, update, resize, restart, stop, restore, or rds-specific operation names (CreateInstance, DeleteInstance, ResizeFlavor, etc.).GuardError, print [错误] 检测到写操作意图...已被守卫拦截 to stderr, exit code 1. no hcloud command is executed.--operation parameter.check output mode mutual exclusivity.
--json or --names-only) and (--format md or --output) both specified: print 不能同时使用 --json / --names-only 和 --format md / --output, exit code 2.resolve region and markdown output path.
--region value, or env var HUAWEI_CLOUD_REGION, or default cn-north-4.--output specified, use it; else if --format md, generate default filename rds_instances_<region>_<timestamp>.md in current directory.--region, --output, --format.check koo-cli availability and credential readiness (optional, for diagnostics).
hcloud configure list to verify koo-cli and active profile.--operation is not ListInstances, warn (but do not block; the upcoming list call will fail with a clear error).construct the list command.
hcloud RDS ListInstances --cli-region=<region> --limit=<page-size> --offset=0 with api query parameters for --name, --datastore-type, --instance-id (never --status; status is client-side only).huaweicloudsdkrds.RdsClient.list_instances() with equivalent parameters.--page-size, --name, --datastore-type, --instance-id, koo-cli availability.execute the list command with paging.
--offset=0.total_count.--offset by page_size, repeat until full list fetched or max 100 pages reached.classify errors and handle edge cases.
403 or Forbidden: print 无权限访问 RDS,请检查 IAM 权限, exit code 1.[USE_ERROR] (hcloud usage error, even if subprocess exits 0): print hcloud 参数错误,请运行 hcloud RDS ListInstances --help, exit code 1.pip install huaweicloudsdkrds, exit code 1.当前区域(<region>)无 RDS 实例, exit code 0 (not an error).当前区域(<region>)无 RDS 实例(当前筛选条件:...), exit code 0.apply client-side status filter (if --status specified).
state (or status field) matches --status (case-insensitive).--status parameter.render and output the result (by mode precedence).
--names-only: extract instance name field from each instance, print one per line, exit code 0.--json: json.dumps(instance_array, indent=2) to stdout, exit code 0.--format md / markdown file: render markdown table (see output contract), write atomically to file (temp file + os.replace), exit code 0. if write fails (uncreatable directory, i/o error): print [错误] Markdown 文件写出失败(...), exit code 1, no partial file left.-. print to stdout, exit code 0.exit with appropriate code.
decision: write-intent guard triggered?
decision: output mode conflict?
--json or --names-only) and (--format md or --output) both set: exit code 2, print conflict message.decision: koo-cli available?
huaweicloudsdkrds python sdk installed: use sdk fallback.decision: api call succeeded?
[USE_ERROR]: treat as usage error, exit code 1.Forbidden in stderr: print permission hint, exit code 1.decision: instance array empty?
当前区域(<region>)无 RDS 实例, exit code 0.当前区域(<region>)无 RDS 实例(当前筛选条件:...), exit code 0.decision: which output mode?
--names-only: output names only.--json: output raw json.--format md or --output set: render markdown and write to file.decision: markdown write succeeded?
success outputs:
--names-only mode: stdout contains one instance name per line (utf-8, newline-terminated). exit code 0.--json mode: stdout contains json array of instance objects, formatted with indent=2. each object has fields returned by the api (id, name, status/state, datastore, nodes, private_ips, etc.). exit code 0.-. rows correspond to instances (or filtered instances). exit code 0.--format md / --output mode: markdown file written to the specified path (or default rds_instances_<region>_<timestamp>.md in current directory). file contains:# 华为云 RDS 实例列表 , <region>| 实例 ID | 名称 | 状态 | 引擎 | 版本 | 规格 | 私有 IP | 可用区 | 区域 | 创建时间 || --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |\|, newlines as spaces)._当前区域(<region>)无 RDS 实例。_error outputs:
[错误] 检测到写操作意图...已被守卫拦截, exit code 1.不能同时使用 --json / --names-only 和 --format md / --output, exit code 2.无权限访问 RDS,请检查 IAM 权限, exit code 1.pip install huaweicloudsdkrds, exit code 1.[USE_ERROR]): stderr hcloud 参数错误,请运行 hcloud RDS ListInstances --help, exit code 1.[错误] Markdown 文件写出失败(...), exit code 1, no partial file left.empty-result outputs (exit code 0, not errors):
当前区域(<region>)无 RDS 实例.当前区域(<region>)无 RDS 实例(当前筛选条件:...)._当前区域(<region>)无 RDS 实例。_the skill worked if:
--names-only mode: stdout contains one or more instance names (or nothing if empty region). exit code 0.--json mode: stdout contains valid json (a non-empty array or [] for empty region). each object has expected fields (id, name, status, datastore, etc.). exit code 0.--format md / --output mode: markdown file exists at the specified path, contains valid markdown table with chinese headers, data rows (or empty-region note if no instances), and proper escaping (pipes and newlines). file is not partial (atomic write succeeded). exit code 0.