DewaVPS

Create CIDR in IPSet

POST
/instance/{instance_uuid}/firewall/ipset/{ipset_id}/cidr

Add a new CIDR entry to a specific IPSet.

Authorization

ApiKeyAuth
x-apikey<token>

In: header

Path Parameters

instance_uuid*string

UUID of the instance

Formatuuid
ipset_id*integer

ID of the IPSet

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/ipset/0/cidr" \  -H "Content-Type: application/x-www-form-urlencoded" \  -d 'cidr=string&description=string'
{
  "message": "IP/CIDR for IPSet successfully created",
  "data": {
    "cidr": "string"
  }
}