列出卷
GET
/e2b/volumes● 支持返回
200
错误按 E2B 格式返回,参见 错误码
请求示例
curl
curl https://api.deepraxis.com/e2b/volumes \
-H "X-API-Key: $PRAXIS_API_KEY"Python
from e2b import Volume
opts = dict(
api_key="$PRAXIS_API_KEY",
api_url="https://api.deepraxis.com/e2b",
domain="sandbox.praxisusercontent.com",
)
volumes = Volume.list(**opts)
print(volumes)TypeScript
import { Volume } from "e2b";
const opts = {
apiKey: "$PRAXIS_API_KEY",
apiUrl: "https://api.deepraxis.com/e2b",
domain: "sandbox.praxisusercontent.com",
};
const volumes = await Volume.list(opts);
console.log(volumes);响应示例 200
[
{
"volumeID": "sbv_d28b7b9a9b6c656f582d",
"name": "docs-sample"
}
]响应
HTTP 200
Successfully listed all team volumes
application/json
| 名称 | 类型 | 说明 |
|---|---|---|
| [].volumeID | string | ID of the volume |
| [].name | string | Name of the volume |