GET
/
projects
/
{id}
/
vpc
/
firewall-rules
curl --request GET \
  --url https://api.mkinf.io/v0.1/projects/{id}/vpc/firewall-rules \
  --header 'Authorization: Bearer <token>'
{
  "items": [
    {
      "id": "c8c3d306-eff4-4d35-a09e-8efe320706c2",
      "name": "default-allow-subnet-tcp-udp-us-northcentral1-a",
      "direction": "ingress",
      "action": "allow",
      "vpc_network_id": "2d7fe075-b3d6-4201-b397-b17b754bece1",
      "state": "active",
      "sources": [
        {
          "cidr": "172.27.0.0/20",
          "resource_id": ""
        }
      ],
      "source_ports": [],
      "destinations": [
        {
          "cidr": "172.27.0.0/20",
          "resource_id": ""
        }
      ],
      "destination_ports": [],
      "protocols": [
        "tcp",
        "udp"
      ]
    }
  ]
}

List all firewall rules in a project. Returns detailed information about each rule including sources, destinations, and protocols.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Project id

Response

200 - application/json

The response is of type object.