Create a Volume
Create Response
List Volumes
List Response
Get a Volume
Get Response
Next Step
- Continue to Mounting Volumes to attach volumes to a sandbox.
const created = await client.volumes.create({ name: "my-workspace" });
console.log(created.id, created.name);
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "my-workspace",
"size": 0,
"transferAmount": 0
}
const listed = await client.volumes.list();
console.log(listed.volumes.length);
{
"volumes": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "my-workspace",
"size": 0,
"transferAmount": 0
}
]
}
const volume = await client.volumes.get("550e8400-e29b-41d4-a716-446655440000");
console.log(volume.id, volume.name);
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "my-workspace"
}
Was this page helpful?