DewaVPS

Update firewall rule

PATCH
/instance/{instance_uuid}/firewall/{firewall_id}/update

Update an existing firewall rule for a specific instance.

Authorization

ApiKeyAuth
x-apikey<token>

In: header

Path Parameters

instance_uuid*string

UUID of the instance

Formatuuid
firewall_id*string

ID of the firewall rule

Request Body

application/x-www-form-urlencoded

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X PATCH "https://api.dewavps.com/v1/instance/497f6eca-6276-4993-bfeb-53cbbbba6f08/firewall/string/update" \  -H "Content-Type: application/x-www-form-urlencoded" \  -d 'action=string&protocol=string&description=string'
{
  "message": "Firewall rule successfully updated",
  "data": {
    "id": "string"
  }
}