List sites
List all sites on a specific server.
GET/api/servers/{server}/sites
Get all sites
This endpoint returns all sites configured on a specific server.
Request
GET
/api/servers/{server}/sitescurl -G "https://ploi.io/api/servers/{server}/sites" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"
Response
{
"data": [
{
"id": 1,
"status": "active",
"server_id": 146,
"domain": "domain1.com",
"deploy_script": false,
"web_directory": "/public",
"project_type": "wordpress",
"project_root": "/",
"last_deploy_at": null,
"system_user": "ploi",
"php_version": "7.2",
"health_url": null,
"notification_urls": {
"slack": null,
"discord": null,
"webhook": null
},
"has_repository": false,
"created_at": "2019-07-29 10:27:30"
}
],
"links": {
"first": "https://ploi.io/api/servers/1/sites?page=1",
"last": "https://ploi.io/api/servers/1/sites?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"path": "https://ploi.io/api/servers/1/sites",
"per_page": 15,
"to": 4,
"total": 4
}
}