Get network rule

Retrieve details of a specific firewall rule.


GET/api/servers/{server}/network-rules/{id}

Get a network rule

This endpoint allows you to retrieve a network rule by providing its ID.

Request

GET
/api/servers/{server}/network-rules/{id}
curl -G "https://ploi.io/api/servers/{server}/network-rules/{id}" \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json"

Response

{
  "data": {
    "id": 1,
    "name": "Name Rule",
    "port": 100,
    "from_ip_address": null,
    "rule_type": "allow",
    "status": "created",
    "created_at": "2021-01-21 09:09:59"
  }
}