Layerbeat

List firewall rules

GET
/v1/vms/{id}/firewall-rules

Lists the VPS's current inbound firewall rules.

Access: API key: vm:read · Session: any workspace role.

Authorization

headerAuthorizationBearer <token>

Send Authorization: Bearer <token>. A token is an API key (lb_live_…, scoped, for programs) or a session (lb_sess_…, from signup or login, for people). See Authentication above.

Path Parameters

id*string

The resource id.

Header Parameters

X-Org-ID?string

Sessions only: act on this organization (you must be a member). Default: your first organization.

Response Body

Rules

application/json
  1. response
data*array<>
curl -X GET 'https://layerbeat.com/v1/vms/string/firewall-rules'
{  "data": [    {      "id": "fw_0c9e71aac8634b64",      "protocol": "tcp",      "port": "443",      "cidr": "0.0.0.0/0",      "action": "accept",      "description": "HTTPS"    }  ]}