DigitalOcean.Firewall.update
You're seeing just the function
update
, go back to DigitalOcean.Firewall module for more information.
Link to this function
update(firewall_id, opts)
Specs
update(String.t(), Keyword.t()) :: DigitalOcean.Operation.t()
Update a firewall.
Examples
iex> DigitalOcean.Firewall.update(
...> "bb4b2611-3d72-467b-8602-280330ecd65c",
...> name: "firewall",
...> inbound_rules: [
...> %{
...> protocol: "tcp",
...> ports: "80",
...> sources: {
...> load_balancer_uids: ["4de7ac8b-495b-4884-9a69-1050c6793cd6"]
...> }
...> }
...> ],
...> outbound_rules: [
...> %{
...> protocol: "tcp",
...> ports: "80",
...> destinations: %{
...> addresses: [
...> "0.0.0.0/0",
...> "::/0"
...> ]
...> }
...> }
...> ],
...> droplet_ids: [8043964]
...> ) |> DigitalOcean.request()
{ :ok, %DigitalOcean.Response{} }