To show information about an existing firewall, send a GET request to /v2/firewalls/$FIREWALL_ID
.
Name | Type | Required | Description | Default Value |
---|---|---|---|---|
firewall_id |
string | True | A unique ID that can be used to identify and reference a firewall. |
import os
from pydo import Client
client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))
resp = client.firewalls.get(firewall_id= "as9di9d")
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.