Back to skills
SKILL.md
Sanmanager
ASecurityiSCSI Target、会话连接与 LUN 列表(只读)。 触发词:极空间 / NAS / iSCSI。
- 417 stars
- 0 votes
- 0 copies
- 0 views
- Added November 8, 2026
Works with
Security analysis
100/100npx -y skills add infometa/workbuddyskills --skill sanmanager --agent claude-codeAre you the author of Sanmanager?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/infometa-sanmanager)---
name: zspace-sanmanager
description: iSCSI Target、会话连接与 LUN 列表(只读)。 触发词:极空间 / NAS / iSCSI。
description_zh: iSCSI Target、会话连接与 LUN 列表(只读)。
description_en: iSCSI targets, sessions and LUNs (read-only).
version: 2.0.3
author: zspace
allowed-tools: iscsi_info,nas_query
---
# iSCSI(sanmanager / iSCSI)
iSCSI Target、会话连接与 LUN 列表(只读)。
- 服务类型:**应用商店类(需先安装应用)**
- 对应目录:`NasServices/sanmanager`
- 对外前缀:`/v1/zsanmanager/*`
- 依赖应用:`iSCSI` —— 调用前连接器会自动过门禁,未安装返回 `E_APP_NOT_INSTALLED`
- 真机状态:✅ 真机验证通过
## 1. 可用工具
| 工具 | 用途 | 风险 |
|---|---|---|
| `iscsi_info` | 「iSCSI」应用:查看 iSCSI Target 列表、当前会话连接、LUN 列表。仅查询,不改配置。 | 只读 |
| `nas_query` | 兜底只读查询:调用极空间上未封装成专用工具的**只读**接口(路径必须在只读白名单内)。仅当没有合适的专用工具时使用;写操作会被直接拒绝,请改用对应的专用工具。⚠️ 兜底路径**不做服务级整形、没有分页**:响应超过 max_bytes(默认 64KB)时会自动切片/摘要并回传 oversized 元信息(如 `/AppStore/v1/list` 实测 400KB+,应改用专用工具 `app_status`)。📌 返回结构:`{ok:true, data:{via:"fallback", path, data:<后端 data 字段>, ...}}` —— 后端载荷在 **`data.data`**,取用时别只看第一层(这是最常见的误读)。 | 只读 |
## 2. 关键接口
> 除下列已封装工具外,其余**只读**接口可用 `nas_query {path, method, params}` 兜底调用(须在只读白名单内)。
| 方法 | 路径 | 说明 | 风险 | nas_query 兜底 |
|---|---|---|---|---|
| GET | `/v1/zsanmanager/target/list` | Target 列表 | 只读 | ✅ 可直接调用 |
| GET | `/v1/zsanmanager/sessions` | 当前会话 | 只读 | ✅ 可直接调用 |
| GET | `/v1/zsanmanager/lun/list` | LUN 列表 | 只读 | ✅ 可直接调用 |
| GET | `/v1/zsanmanager/info` | 服务信息 | 只读 | ⚠️ 未收录(不可兜底) |
> **兜底用法(务必按接口要求调用)**:方法必须一致(POST 路由用 GET 调会 404);标 ⚠️ 的接口必须传全必填参数(如 `/v2/file/list` 必带 `path`),否则返回 `N001212 参数有误`。能用专用工具时优先用专用工具——参数与返回都已封装。
## 3. 典型用法
- 「iSCSI 有哪些目标/谁连着」→ `iscsi_info {include:["targets","sessions"]}`
## 5. 明确不提供
- `target/create|edit|delete`、`lun/create|edit|delete` 等写接口
## 6. 备注
- ⚠️ 该服务的 target/lun 接口通过 Cookie `username` 识别操作者;连接器已自动携带该 Cookie(否则返回「无权限进行此操作」)。
- 真机实测:`/info`、`/storageList`、`/sessions`、`/target/list`、`/lun/list` 均可用。
## 7. 参考
- 跨服务通用约定(响应外层 / 分页家族 / 错误码 / 路径映射 / 禁用清单):`skills/zfilev2/references/api-conventions.md`
Attribution
Related skills
View all in tools →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.