dots.v2.droplets.byDroplet_id().firewalls.get()
Generated on 5 Nov 2026
from DoTs version
v1.23.0
Usage
client.v2.droplets.byDroplet_id(droplet_id).firewalls.get(requestConfiguration?: RequestConfiguration<FirewallsRequestBuilderGetQueryParameters>): Promise<undefined | FirewallsGetResponse>Description
To retrieve a list of all firewalls available to a Droplet, send a GET request
to /v2/droplets/{droplet_id}/firewalls
The response will be a JSON object that has a key called firewalls. This will
be set to an array of firewall objects, each of which contain the standard
firewall attributes.
Parameters
Path Parameters
droplet_idinteger requiredExample:
3164444A unique identifier for a Droplet instance.
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.droplets
.byDroplet_id(3164444).firewalls.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.droplets
.byDroplet_id(3164444).firewalls.get({
queryParameters: {
page,
},
});
pages = response?.links?.pages;
}Response Example
More Information
See /v2/droplets/{droplet_id}/firewalls in the API reference for additional detail on responses, headers, parameters, and more.