Ploi API
Ploi API

Get network rule

Get network rule in the server.

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

Example request:

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

Example response:

HTTP/1.1 200 OK
Content-Type: application/json

{
    "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"
    }
}