dots.v2.volumes.get()
Generated on 13 Nov 2026
from DoTs version
v1.24.0
Usage
client.v2.volumes.get(requestConfiguration?: RequestConfiguration<VolumesRequestBuilderGetQueryParameters>): Promise<undefined | VolumesGetResponse>Description
To list all of the block storage volumes available on your account, send a GET request to /v2/volumes.
Filtering Results
By Region
The region may be provided as query parameter in order to restrict results to volumes available in a specific region. For example: /v2/volumes?region=nyc1
By Name
It is also possible to list volumes on your account that match a specified name. To do so, send a GET request with the volume’s name as a query parameter to /v2/volumes?name=$VOLUME_NAME.
Note: You can only create one volume per region with the same name.
By Name and Region
It is also possible to retrieve information about a block storage volume by name. To do so, send a GET request with the volume’s name and the region slug for the region it is located in as query parameters to /v2/volumes?name=$VOLUME_NAME®ion=nyc1.
Parameters
namestring optionalExample:
exampleThe block storage volume's name.
regionstring optionalThe slug identifier for the region where the resource is available.
perPageinteger optionalExample:
2Number of items returned per page
pageinteger optionalExample:
1Which 'page' of paginated results to return.
Request Sample
Pagination
This method returns paginated results. The response includes a links.pages object with URLs for navigating between pages. To retrieve the next page, parse the next URL and pass the page query parameter:
let response = await client.v2.volumes.get();
let pages = response?.links?.pages;
while (pages && "next" in pages && typeof pages.next === "string") {
const page = Number(new URL(pages.next).searchParams.get("page"));
response = await client.v2.volumes.get({
queryParameters: {
page,
},
});
pages = response?.links?.pages;
}Response Example
More Information
See /v2/volumes in the API reference for additional detail on responses, headers, parameters, and more.