VPS: Firewall
Create new firewall
Create a new firewall.
Use this endpoint to set up new firewall configurations for VPS security.
post/api/vps/v1/firewall
Request body
Example request
{
"name": "My Firewall Group"
}Response
Success response
Example response
{
"id": 65224,
"name": "HTTP and SSH only",
"rules": [
{
"id": 24541,
"action": "accept",
"protocol": "TCP",
"port": "1024:2048",
"source": "any",
"source_detail": "any"
}
],
"created_at": "2021-09-01T12:00:00Z",
"updated_at": "2021-09-01T12:00:00Z"
}