Ploi API
Ploi API

Get NGINX configuration

Get the webserver configuration for a specific tenant.

This call can take longer than usual because the actual file is retrieved on-demand from your server.

GET api/servers/{server}/sites/{site}/tenants/example.com/nginx-configuration

Example request:

curl -X GET "https://ploi.io/api/servers/{server}/sites/{site}/tenants/example.com/nginx-configuration" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"

Example response:

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

{
    "content": "..Contents of webserver configuration file.."
}