Get firewall details
Retrieve firewall by its ID and rules associated with it. Use this endpoint to view specific firewall configuration and rules.
Retrieve firewall by its ID and rules associated with it.
Use this endpoint to view specific firewall configuration and rules.
Authorizations
AuthorizationstringRequired
API Token authentication
Path parameters
firewallIdintegerRequiredExample:
Firewall ID
9449049Responses
200
Success response
application/json
idintegerOptionalExample:
Firewall ID
65224namestringOptionalExample:
Firewall name
HTTP and SSH onlyis_syncedbooleanOptionalExample:
Is current firewall synced with VPS
falsecreated_atstring · date-timeOptionalExample:
2021-09-01T12:00:00Zupdated_atstring · date-timeOptionalExample:
2021-09-01T12:00:00Z401
Unauthenticated response
application/json
500
Error response
application/json
get/api/vps/v1/firewall/{firewallId}
GET /api/vps/v1/firewall/{firewallId} HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": 65224,
"name": "HTTP and SSH only",
"is_synced": false,
"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"
}Last updated
Was this helpful?