dots.v2.projects.byProject_id().resources.get()
Generated on 5 Nov 2026
from DoTs version
v1.23.0
Usage
client.v2.projects.byProject_id(project_id).resources.get(requestConfiguration?: RequestConfiguration<ResourcesRequestBuilderGetQueryParameters>): Promise<undefined | ResourcesGetResponse>Description
To list all your resources in a project, send a GET request to /v2/projects/{project_id}/resources.
This endpoint will only return resources that you are authorized to see. For example, to see Droplets in a project, include the droplet:read scope.
Parameters
Path Parameters
project_idstring requiredExample:
4de7ac8b-495b-4884-9a69-1050c6793cd6A unique identifier for a project.
Query Parameters
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.projects
.byProject_id("4de7ac8b-495b-4884-9a69-1050c6793cd6").resources.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.projects
.byProject_id("4de7ac8b-495b-4884-9a69-1050c6793cd6").resources.get({
queryParameters: {
page,
},
});
pages = response?.links?.pages;
}Response Example
More Information
See /v2/projects/{project_id}/resources in the API reference for additional detail on responses, headers, parameters, and more.