DewaVPS

Create firewall rule

POST
/instance/{instance_uuid}/firewall/create

Create a new firewall rule for a specific instance.

Authorization

ApiKeyAuth
x-apikey<token>

In: header

Path Parameters

instance_uuid*string

UUID of the instance

Formatuuid

Request Body

application/x-www-form-urlencoded

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

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