Website
Get logs for a website
get/v1/hosting/websites/{website_id}/logs
Request
- Base URLhttps://api.10web.io
- Authnone declared. Required headers: x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
website_idinteger required
Query parameters
type'access' | 'error' | 'php' required
Type of log to retrieve
linesinteger required
Number of log lines to retrieve
Headers
x-api-keystring required
API key for authentication
Response
Website logs retrieved successfully
Example response
{
"status": "ok",
"logs": "192.168.1.1 - - [10/Jun/2023:13:55:36 +0000] \"GET /wp-admin/ HTTP/1.1\" 200 2326 \"-\" \"Mozilla/5.0\"\n[10/Jun/2023:14:22:11 +0000] [error] 29#29: *1 FastCGI sent in stderr: \"PHP message: PHP Fatal error\""
}Changes
No recorded changes to this operation across all 1 revision of this API.