Layerbeat

Delete a firewall rule

DELETE
/v1/vms/{id}/firewall-rules/{rule_id}

Removes a firewall rule from the VPS. Removing the port 22 rule can block SSH access.

Access: API key: vm:write · Session: developer, admin or owner.

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.

rule_id*string

A rule id from the list.

Header Parameters

X-Org-ID?string

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

Response Body

Deleted

curl -X DELETE 'https://layerbeat.com/v1/vms/string/firewall-rules/fw_0c9e71aac8634b64'
Empty