List volumes
client.volumes.list(RequestOptionsoptions?): VolumeListResponse { id, created_at, name, 2 more }
/volumes
List volumes
Returns
List volumes
import Hypeman from '@onkernel/hypeman';
const client = new Hypeman({
apiKey: 'My API Key',
});
const volumes = await client.volumes.list();
console.log(volumes);
[
{
"id": "vol-data-1",
"created_at": "2025-01-15T09:00:00Z",
"name": "my-data-volume",
"size_gb": 10,
"attachments": [
{
"instance_id": "inst-abc123",
"mount_path": "/mnt/data",
"readonly": false
}
]
}
]
Returns Examples
[
{
"id": "vol-data-1",
"created_at": "2025-01-15T09:00:00Z",
"name": "my-data-volume",
"size_gb": 10,
"attachments": [
{
"instance_id": "inst-abc123",
"mount_path": "/mnt/data",
"readonly": false
}
]
}
]