List firewall rules
GET
Lists the VPS's current inbound firewall rules.
Access: API key: vm:read · Session: any workspace role.
- Traffic that does not match an
acceptrule is blocked.
header
AuthorizationBearer <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.
id*stringThe resource id.
X-Org-ID?stringSessions only: act on this organization (you must be a member). Default: your first organization.
Rules
application/json- 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" } ]}